Skip to content

Commit d7c4e40

Browse files
syaakovhhaim
authored andcommitted
Fixed mounting of hugepages.
1 parent 00dd875 commit d7c4e40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/dpdk_setup_ports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,12 +745,12 @@ def config_hugepages(self, wanted_count = None):
745745
mount_output = subprocess.check_output('mount', stderr = subprocess.STDOUT).decode(errors='replace')
746746
nodes = 2
747747

748-
if 'hugetlbfs' not in mount_output:
748+
if '/mnt/huge type hugetlbfs' not in mount_output:
749749
huge_mnt_dir = '/mnt/huge'
750750
if not os.path.isdir(huge_mnt_dir):
751751
print("Creating huge node")
752752
os.makedirs(huge_mnt_dir)
753-
os.system('mount -t hugetlbfs nodev %s' % huge_mnt_dir)
753+
os.system('mount -t hugetlbfs -o pagesize=1G nodev %s' % huge_mnt_dir)
754754

755755
if map_driver.args.ignore_numa:
756756
nodes = 1

0 commit comments

Comments
 (0)