test/env: specify base-virtaddr in the dpdk_post_init test
Default DPDK base virtaddr falls into a region reserved by ASAN. DPDK 18.11+ will try to find the nearest available address space by trying to do mmap over and over, which will take ages to finish. We speed up the process by specifying an address that's not supposed to be reserved by ASAN. Regular SPDK applications do this implicitly, so now we also do it in the env_dpdk_post_init test. Change-Id: Ic070813a92d719933ebdaa138a62ef6795390de5 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/439897 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
310df31b88
commit
1f3644e208
12
test/env/env.sh
vendored
12
test/env/env.sh
vendored
@ -21,7 +21,17 @@ $testdir/pci/pci_ut
|
||||
timing_exit pci
|
||||
|
||||
timing_enter env_dpdk_post_init
|
||||
$testdir/env_dpdk_post_init/env_dpdk_post_init
|
||||
argv=""
|
||||
if [ `uname` = Linux ]; then
|
||||
# The default base virtaddr falls into a region reserved by ASAN.
|
||||
# DPDK will try to find the nearest available address space by
|
||||
# trying to do mmap over and over, which will take ages to finish.
|
||||
# We speed up the process by specifying an address that's not
|
||||
# supposed to be reserved by ASAN. Regular SPDK applications do
|
||||
# this implicitly.
|
||||
argv+="--base-virtaddr=0x200000000000"
|
||||
fi
|
||||
$testdir/env_dpdk_post_init/env_dpdk_post_init $argv
|
||||
timing_exit env_dpdk_post_init
|
||||
|
||||
report_test_completion "env"
|
||||
|
Loading…
Reference in New Issue
Block a user