Huge Pages - Notes
September 11, 2023•142 words
Set hugepages permanently
Set the vm.nr_hugepages and vm.nr_hugepages_mempolicy values in /etc/sysctl.conf
These values are the "page count" as in how many pages you want.
Each page is 2mb in size so 15000 pages would be 30GB of memory.
sudo sysctl -a | grep -i huge
vm.hugepages_treat_as_movable = 0
vm.hugetlb_shm_group = 0
vm.nr_hugepages = 15000
vm.nr_hugepages_mempolicy = 15000
vm.nr_overcommit_hugepages = 0
Set hugepages temporarily
echo 15000 > /proc/sys/vm/nr_hugepages
Check curr...
Read post