I'm trying to run multiple KVM VMs with hugepages enabled on Proxmox VE 4.4-12/e71b7a74. I've followed instructions on the web to set the vm.nr_hugepages using sysctl in order to reserve the amount of memory that I plan to use with my VMs. However, once I start the first VM, the number of free hugepages gets set to 0 and I get the error below when I try to start my second VM.
TASK ERROR: start failed: hugepage allocation failed at /usr/share/perl5/PVE/QemuServer/Memory.pm line 532.
If I run sysctl to re-reserve my pool of hugepages, I'm then able to start the second VM, but again the number of free hugepages gets set back to 0.
After digging around the internet for several days trying to figure out what was going on, I think that the patch in http://pve.proxmox.com/pipermail/pve-devel/2016-June/021585.html was what enabled this behavior. Since this behavior only works with a single VM that uses hugepages I suggest that the behavior be modified to not set the number of free hugepages to 0 in order to allow multiple VMs with hugepages.
Thanks,
Jonathan
TASK ERROR: start failed: hugepage allocation failed at /usr/share/perl5/PVE/QemuServer/Memory.pm line 532.
If I run sysctl to re-reserve my pool of hugepages, I'm then able to start the second VM, but again the number of free hugepages gets set back to 0.
After digging around the internet for several days trying to figure out what was going on, I think that the patch in http://pve.proxmox.com/pipermail/pve-devel/2016-June/021585.html was what enabled this behavior. Since this behavior only works with a single VM that uses hugepages I suggest that the behavior be modified to not set the number of free hugepages to 0 in order to allow multiple VMs with hugepages.
Thanks,
Jonathan