From eab356fa86b2c6c789b1a6d322a091aef3d68d10 Mon Sep 17 00:00:00 2001 From: Matthew G McGovern Date: Tue, 21 Jan 2025 14:03:30 -0800 Subject: [PATCH] DPDK: Fix underallocation of hugepages for multiple numa nodes --- microsoft/testsuites/dpdk/dpdkutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/microsoft/testsuites/dpdk/dpdkutil.py b/microsoft/testsuites/dpdk/dpdkutil.py index 84074dad0d..bb42c1c04c 100644 --- a/microsoft/testsuites/dpdk/dpdkutil.py +++ b/microsoft/testsuites/dpdk/dpdkutil.py @@ -346,8 +346,9 @@ def initialize_node_resources( # init and enable hugepages (required by dpdk) hugepages = node.tools[Hugepages] + numa_nodes = node.tools[Lscpu].get_numa_node_count() try: - hugepages.init_hugepages(hugepage_size, minimum_gb=4) + hugepages.init_hugepages(hugepage_size, minimum_gb=4 * numa_nodes) except NotEnoughMemoryException as err: raise SkippedException(err)