]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer/Memory.pm
add hugepages option
authorAlexandre Derumier <aderumier@odiso.com>
Wed, 15 Jun 2016 03:04:02 +0000 (05:04 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 22 Jun 2016 07:11:11 +0000 (09:11 +0200)
commit7023f3ea168b50bebb7586829d4217b0ea19f6a1
tree5f4d581dd2d24788661037305edd81d923daa561
parent062669f9a019b3da899c5affbdb8905903f6ef9b
add hugepages option

vm configuration
----------------
hugepages: (any|2|1024)

any: we'll try to allocate 1GB hugepage if possible, if not we use 2MB hugepage
2: we want to use 2MB hugepage
1024: we want to use 1GB hugepage. (memory need to be multiple of 1GB in this case)

optionnal host configuration for 1GB hugepages
----------------------------------------------
1GB hugepages can be allocated at boot if user want it.
hugepages need to be contiguous, so sometime it's not possible to reserve them on the fly

/etc/default/grub : GRUB_CMDLINE_LINUX_DEFAULT="quiet hugepagesz=1G hugepages=x"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/QemuServer.pm
PVE/QemuServer/Memory.pm