Commit a56d97b3 authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

autotest: Distribute memory evenly across NUMA nodes for crypto tests



This is needed in case QAT devices and their VFs end up on different
node than node0.

Change-Id: I34386c71dff6232e191a8625a7f26c90ea2cad6d
Signed-off-by: default avatarMichal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5464


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarKarol Latecki <karol.latecki@intel.com>
parent fb732cb7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -153,6 +153,11 @@ rdma_device_init
timing_exit nvmf_setup

if [[ $SPDK_TEST_CRYPTO -eq 1 || $SPDK_TEST_REDUCE -eq 1 ]]; then
	# Make sure that memory is distributed across all NUMA nodes - by default, all goes to
	# node0, but if QAT devices are attached to a different node, all of their VFs will end
	# up under that node too and memory needs to be available there for the tests.
	CLEAR_HUGE=yes HUGE_EVEN_ALLOC=yes ./scripts/setup.sh
	./scripts/setup.sh status
	if grep -q '#define SPDK_CONFIG_IGB_UIO_DRIVER 1' $rootdir/include/spdk/config.h; then
		./scripts/qat_setup.sh igb_uio
	else