PVE: Enable hugepages for HAOS KVM (VM 100) #4

Open
opened 2026-05-23 09:18:48 +00:00 by fkrebs · 0 comments
Owner

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

  1. Calculate: 32768 MB / 2 MB = 16384 hugepages + ~10% overhead = 18000
  2. Add to /etc/sysctl.conf: vm.nr_hugepages = 18000
  3. Add hugepages=1 to VM 100 hardware config in PVE
  4. Verify KVM boots and performance improves

Risk

Medium — requires VM restart. Memory must be physically available at allocation time. Coordinate with CT101 right-sizing.

## 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 1. Calculate: `32768 MB / 2 MB = 16384` hugepages + ~10% overhead = 18000 2. Add to `/etc/sysctl.conf`: `vm.nr_hugepages = 18000` 3. Add `hugepages=1` to VM 100 hardware config in PVE 4. Verify KVM boots and performance improves ## Risk Medium — requires VM restart. Memory must be physically available at allocation time. Coordinate with CT101 right-sizing.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: fkrebs/docs#4