Huge Pages
Cheat sheet · https://pcornel.dk/topic.php?topic=3461
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 hostvirsh dumpxml <vm> | grep -A2 memoryBacking— VM uses huge pagesqm 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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Page size | Translation granularity | Larger pages reduce entry count |
| Host pool | Available large pages | Can be fragmented/exhausted |
| VM backing | Memory mapped with huge pages | Platform policy |
| Application | May use guest large pages | Separate evidence |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3461