Skip to content

Commit

Permalink
DPDK: Fix underallocation of hugepages for multiple numa nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgov committed Jan 21, 2025
1 parent 729a424 commit eab356f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion microsoft/testsuites/dpdk/dpdkutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit eab356f

Please sign in to comment.