Pcornel
Virtualization · Memory Virtualization

Memory Overcommit

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

Back to the Topic

Answer

Memory overcommit assigns more RAM to VMs than the host physically has, relying on unused memory, page sharing and ballooning. It raises density, but heavy use leads to host swapping and severe performance loss.

Remember

  • Works only while not all VMs need their RAM.
  • Swapping is the failure mode.
  • Don't overcommit latency-sensitive VMs.

First checks

  • virsh nodememstats — committed vs physical
  • esxtop — MCTL, SWCUR, ZIP
  • Get-VM | measure MemoryAssigned -Sum — Hyper-V assigned total

Verify in this order

allocated > RAM → reclaim

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.

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

Confirmation

Confirm action

Continue?