From 696d9eaed023361b4976333406ae45130153553f Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Wed, 20 Jun 2018 01:21:17 -0700 Subject: [PATCH] autotest: reduce HUGEMEM allocation to 2GB on FreeBSD The FreeBSD contigmem driver has problems allocating contiguous memory after a large number of unloads/reloads. Since we run a very limited subset of SPDK tests on FreeBSD, reduce the HUGEMEM allocation from 8GB to 2GB to help alleviate the problem and reduce the frequency of test failures due to contigmem panics. Signed-off-by: Jim Harris Change-Id: I777153a6ad4f89311bb4e2f50bf69ee09e628eea Reviewed-on: https://review.gerrithub.io/416214 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- test/common/autotest_common.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 18c9493a9..252a20bf8 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -61,8 +61,12 @@ config_params='--enable-debug --enable-werror' export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1' -# Override the default HUGEMEM in scripts/setup.sh -export HUGEMEM=8192 +# On Linux systems, override the default HUGEMEM in scripts/setup.sh to +# allocate 8GB in hugepages. +# FreeBSD runs a much more limited set of tests, so keep the default 2GB. +if [ `uname -s` = "Linux" ]; then + export HUGEMEM=8192 +fi DEFAULT_RPC_ADDR=/var/tmp/spdk.sock