Can HugeTLB be utilized by KVM guests in Proxmox?

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 ...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!