From a56d97b3fca6db514b7ba0efc84ff0b17bd812be Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Mon, 7 Dec 2020 13:15:41 +0100 Subject: [PATCH] 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: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5464 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Reviewed-by: Karol Latecki --- autotest.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autotest.sh b/autotest.sh index 3ca78a6a1..5f0d4f7ca 100755 --- a/autotest.sh +++ b/autotest.sh @@ -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