From 5b2a5e639c40856b9a12080b32c804cb73d22f3b Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Sat, 25 Apr 2026 20:28:51 +0100 Subject: [PATCH] tests: Reduce hugepages reservation Reduce `nr_hugepages` from 12 GB to 6 GB on both architectures. The number if huge pages needed (if all the tests run at once) is 4GiB so this gives 50% headroom. This should reduce the number of tests that fail/flake out due to lack of memory. Signed-off-by: Rob Bradford --- scripts/run_integration_tests_aarch64.sh | 2 +- scripts/run_integration_tests_x86_64.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run_integration_tests_aarch64.sh b/scripts/run_integration_tests_aarch64.sh index a9fc45837..320536b92 100755 --- a/scripts/run_integration_tests_aarch64.sh +++ b/scripts/run_integration_tests_aarch64.sh @@ -253,7 +253,7 @@ sudo bash -c "echo 1 > /sys/kernel/mm/ksm/run" # Both test_vfio and ovs-dpdk rely on hugepages HUGEPAGESIZE=$(grep Hugepagesize /proc/meminfo | awk '{print $2}') -PAGE_NUM=$((12288 * 1024 / HUGEPAGESIZE)) +PAGE_NUM=$((6144 * 1024 / HUGEPAGESIZE)) echo "$PAGE_NUM" | sudo tee /proc/sys/vm/nr_hugepages sudo chmod a+rwX /dev/hugepages diff --git a/scripts/run_integration_tests_x86_64.sh b/scripts/run_integration_tests_x86_64.sh index b9cb7babb..f847cd57b 100755 --- a/scripts/run_integration_tests_x86_64.sh +++ b/scripts/run_integration_tests_x86_64.sh @@ -194,7 +194,7 @@ sudo bash -c "echo 1 > /sys/kernel/mm/ksm/run" # Both test_vfio, ovs-dpdk and vDPA tests rely on hugepages HUGEPAGESIZE=$(grep Hugepagesize /proc/meminfo | awk '{print $2}') -PAGE_NUM=$((12288 * 1024 / HUGEPAGESIZE)) +PAGE_NUM=$((6144 * 1024 / HUGEPAGESIZE)) echo "$PAGE_NUM" | sudo tee /proc/sys/vm/nr_hugepages sudo chmod a+rwX /dev/hugepages