Skip to content

Commit d69a490

Browse files
rjarryhhaim
authored andcommitted
dpdk: use 1gb hugepages in priority
Even when 1GB hugepages are allocated on boot and available, trex will try to allocate 2MB pages and ignore the 1GB pages. Change the logic and see if 1GB hugepages can be used in priority. If there are not enough 1GB hugepages, fallback on 2MB. Signed-off-by: Robin Jarry <rjarry@redhat.com>
1 parent 5999b02 commit d69a490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dpdk_setup_ports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def verify_stf_file(self):
729729
pass # should we fail here?
730730

731731
def is_hugepage_file_exits(self,socket_id):
732-
t = ['2048','1048576']
732+
t = ['1048576', '2048']
733733
for obj in t:
734734
if map_driver.args.ignore_numa:
735735
filename = '/sys/kernel/mm/hugepages/hugepages-{}kB/nr_hugepages'.format(obj)

0 commit comments

Comments
 (0)