Can HugeTLB be utilized by KVM guests in Proxmox?

  • Thread starter Thread starter mfarroyo
  • Start date Start date
M

mfarroyo

Guest
First off, thanks to all the Proxmox developers and contributors, for the wonderful work!

In the interest of maximizing the potential for KVM performance, I came across this link: http://artipc10.vub.ac.be/wordpress/2011/05/27/linux-performance-improvements/ . In this blog, it discusses the use of HugeTLB for KVM. I have noticed that upon boot up, the kernel is already set to use HugeTLBs. I tried reserving an amount by putting this in /etc/rc.local: echo 1024 > /proc/sys/vm/nr_hugepages

This I verified by looking at the contents of /proc/meminfo.

However, even after I start my KVM guests, I notice that the HugePages_Total = HugePages_Free, which implies that the KVM guest did not utilize the allocated memory. Do I need to do something (like maybe modify the guest config file), to take advantage of this?

Thanks in advance ...