Memory Overcommit
Cheat sheet · https://pcornel.dk/topic.php?topic=3459
Answer
Memory overcommit is a capacity policy: the sum of configured VM memory can exceed physical RAM. Actual safety depends on active working sets, reservations, ballooning, sharing, compression or swapping mechanisms available on the platform.
Remember
- Overcommitment does not create physical memory.
- Configured totals alone do not prove pressure; concurrent working sets matter.
- Memory overcommit has stronger failure/latency consequences than simply time-slicing idle CPU.
- Reservations/guarantees reduce the capacity available for overcommit.
First checks
virsh nodememstats— host memoryesxtop (memory view: MCTLSZ, SWCUR)— ESXi balloon and swapfree -m— host free/available
Verify in this order
allocations > RAM → reclaim → performance impact
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 → Memory Overcommit reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Configured claims | Sum of VM memory settings | Can exceed RAM |
| Active demand | Concurrent working sets | Drives real pressure |
| Physical RAM | Finite backing boundary | Shared resource |
| Reclamation | Balloon/share/swap/etc. | Can add latency |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3459