From 2fa4dc6338bcef0db6ab1195c99b637e1020ee2d Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Sun, 6 Oct 2024 14:09:00 +0100 Subject: [PATCH] tests: Limit number of test thread on aarch64 This system has a lot of cores (80) resulting in all the tests being spawned simultaneously and leading to exhaustion of the available memory. Instead limit the number of threads. Signed-off-by: Rob Bradford --- scripts/run_integration_tests_aarch64.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_integration_tests_aarch64.sh b/scripts/run_integration_tests_aarch64.sh index 7e3d204d7..0632fd925 100755 --- a/scripts/run_integration_tests_aarch64.sh +++ b/scripts/run_integration_tests_aarch64.sh @@ -237,7 +237,7 @@ echo "$PAGE_NUM" | sudo tee /proc/sys/vm/nr_hugepages sudo chmod a+rwX /dev/hugepages # Run all direct kernel boot (Device Tree) test cases in mod `parallel` -time cargo test "common_parallel::$test_filter" --target "$BUILD_TARGET" -- ${test_binary_args[*]} +time cargo test "common_parallel::$test_filter" --target "$BUILD_TARGET" -- --test-threads=$(($(nproc) / 4)) ${test_binary_args[*]} RES=$? # Run some tests in sequence since the result could be affected by other tests