File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
automated/linux/libhugetlbfs Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -68,12 +68,19 @@ parse_output() {
68
68
}
69
69
70
70
libhugetlbfs_setup () {
71
- mount_point=" /mnt/hugetlb/"
72
71
# Allocate hugepages
73
- echo 200 > /proc/sys/vm/nr_hugepages
72
+ # 2M pages
73
+ mount_point=" /mnt/hugetlb-2M/"
74
+ echo 200 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
74
75
umount " ${mount_point} " > /dev/null 2>&1 || true
75
76
mkdir -p " ${mount_point} "
76
- mount -t hugetlbfs hugetlbfs " ${mount_point} "
77
+ mount -t hugetlbfs hugetlbfs -o pagesize=2M " ${mount_point} "
78
+ # 64K pages
79
+ mount_point=" /mnt/hugetlb-64K/"
80
+ echo 200 > /sys/kernel/mm/hugepages/hugepages-64kB/nr_hugepages
81
+ umount " ${mount_point} " > /dev/null 2>&1 || true
82
+ mkdir -p " ${mount_point} "
83
+ mount -t hugetlbfs hugetlbfs -o pagesize=64kB " ${mount_point} "
77
84
}
78
85
79
86
libhugetlbfs_cleanup () {
You can’t perform that action at this time.
0 commit comments