5 lines
214 B
Bash
5 lines
214 B
Bash
|
#!/bin/bash
|
||
|
sysctl -w vm.nr_hugepages=1300
|
||
|
sh -c ' echo 3 >/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages'
|
||
|
# check if the pages are enabled
|
||
|
cat /sys/kernel/mm/hugepages/hugepages-1048576kB/free_hugepages
|