Pcornel
Virtualization · VM Hardware › Memory

Memory Overcommit

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

Back to the Topic

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 memory
  • esxtop (memory view: MCTLSZ, SWCUR) — ESXi balloon and swap
  • free -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

BoundaryMeaningEvidence limit
Configured claimsSum of VM memory settingsCan exceed RAM
Active demandConcurrent working setsDrives real pressure
Physical RAMFinite backing boundaryShared resource
ReclamationBalloon/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

Confirmation

Confirm action

Continue?