Hugepages - why is it missing?
sudo sysctl -w vm.nr_hugepages=2048
sysctl: cannot stat /proc/sys/vm/nr_hugepages: No such file or directory
grep HUGETLB /boot/config-4.4.0-36-generic
CONFIGARCHWANTGENERALHUGETLB=y
CONFIGCGROUPHUGETLB=y
CONFIG_HUGETLBFS=y
CONFIGHUGETLBPAGE=y
Kernel supports hugepages.
Not enabled in KVM? Why?
2 Replies
$ uname -r
By default, Linodes boot to Linode-supplied kernels. I don't know if hugepages are enabled in Linode's kernel (its configuration is in /proc/config.gz if you wish to check). If you wish to boot to a kernel supplied by your distribution, you'll want to make some changes to your Linode's configuration profile as documented at