Use this when deciding whether to assign more memory to VMs than the host has.
Memory Overcommit · Memory Virtualization
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.
1. Memory overcommit relies on reclaim.
2. Keep it modest; prefer right-sizing.
3. HA failover adds load.
4. Watch ballooning and swap.
5. Static memory for critical VMs.
allocated > RAM → reclaim
Context & applicabilityCommon mistakes · platform/version boundaries
- Overcommitting without balloon drivers in guests.
- Overcommitting VMs with large reservations or pinned memory.
- Planning on averages; memory peaks often line up (backups, patching).
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Works only while not all VMs need their RAM.
- Swapping is the failure mode.
- Don't overcommit latency-sensitive VMs.
virsh nodememstats— committed vs physicalesxtop— MCTL, SWCUR, ZIPGet-VM | measure MemoryAssigned -Sum— Hyper-V assigned total
ReferenceWhy it matters1 section · depth on demand
Overcommitting safely
- Start with a ratio near 1:1 for production; overcommit only when active memory is clearly below configured memory.
- Install balloon drivers/guest tools in every VM.
- Watch balloon and swap metrics; any host swapping means the ratio is too high.
- Do not overcommit hosts running databases or latency-sensitive VMs; use reservations there.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Memory overcommit at the virtualization layer means configured VM memory exceeds host RAM. It works when VMs' active memory is lower than configured and reclaim techniques (sharing, ballooning, compression) can close the gap before host swapping starts.
Watch the ratio of active (or consumed) memory to host RAM, not configured to RAM. When a host fails in an HA cluster, the survivors suddenly carry more VMs — design overcommit so that the failover state still fits without swapping.
Signs you went too far
- Sustained ballooning on many VMs.
- Host swapping or compression (ESXi SWCUR/ZIP > 0).
- Guest paging and slow applications.
- HA admission control blocking power-on after a host failure.
Overcommit is safest with many similar VMs and when active memory is well below configured memory.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Memory Virtualization → Memory Overcommit. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%