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 <james.r.harris@intel.com>
Change-Id: I777153a6ad4f89311bb4e2f50bf69ee09e628eea

Reviewed-on: https://review.gerrithub.io/416214
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Jim Harris 2018-06-20 01:21:17 -07:00 committed by Daniel Verkamp
parent d733654b5c
commit 696d9eaed0

View File

@ -61,8 +61,12 @@ config_params='--enable-debug --enable-werror'
export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1' export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1'
# Override the default HUGEMEM in scripts/setup.sh # 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 export HUGEMEM=8192
fi
DEFAULT_RPC_ADDR=/var/tmp/spdk.sock DEFAULT_RPC_ADDR=/var/tmp/spdk.sock