PVE: Enable hugepages for HAOS KVM (VM 100) #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current state
nr_hugepages = 0. HAOS KVM (VM 100) allocates 32 GiB of RAM using 4 KiB pages — ~8M TLB entries. Hugepages (2 MiB) reduce this to ~16K entries, lowering TLB miss overhead.Steps
32768 MB / 2 MB = 16384hugepages + ~10% overhead = 18000/etc/sysctl.conf:vm.nr_hugepages = 18000hugepages=1to VM 100 hardware config in PVERisk
Medium — requires VM restart. Memory must be physically available at allocation time. Coordinate with CT101 right-sizing.