Pcornel
Virtualization · VM Hardware › Memory

Huge Pages

Cheat sheet · https://pcornel.dk/topic.php?topic=3461

Back to the Topic

Answer

Huge-page backing can improve efficiency for translation-heavy workloads by reducing the number of page-table/TLB entries, but it changes allocation, fragmentation and reservation behavior.

Remember

  • Huge pages are larger page-size backing, not “more memory”.
  • They can reduce TLB pressure but may increase allocation rigidity/fragmentation concerns.
  • Host huge-page availability and guest page usage are separate layers.
  • Performance benefit is workload-dependent.

First checks

  • grep -i huge /proc/meminfo — huge pages on host
  • virsh dumpxml <vm> | grep -A2 memoryBacking — VM uses huge pages
  • qm config <vmid> | grep hugepages — Proxmox setting

Verify in this order

reserved huge pages → VM memory backing → fewer TLB misses

Where it usually breaks

First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.

VM Hardware → Memory → Huge Pages reference map

BoundaryMeaningEvidence limit
Page sizeTranslation granularityLarger pages reduce entry count
Host poolAvailable large pagesCan be fragmented/exhausted
VM backingMemory mapped with huge pagesPlatform policy
ApplicationMay use guest large pagesSeparate evidence

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3461

Confirmation

Confirm action

Continue?