Use it when consolidation ratios exceed physical RAM or when investigating memory contention caused by concurrent demand.
Memory Overcommit · Memory
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.
1. Memory overcommit allocates more than physical RAM.
2. Reclaim order: sharing, ballooning, compression, swap.
3. Host swap is very slow.
4. Keep committed memory under a ratio.
5. Monitor reclaim metrics.
allocations > RAM → reclaim → performance impact
Test peak/failover demand and tune guarantees/density based on measured pressure.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show a universal safe ratio or future headroom under different workload/failure conditions.
Next check: Test peak/failover demand and tune guarantees/density based on measured pressure.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
aggregate VM claims → concurrent demand → reclamation/backing → host physical RAM → guest pressure → workload
Step 2 Effective-state and workload closure Verify boundary
Local intent: Memory Overcommit configures aggregate VM memory claims above physical host RAM, relying on non-concurrent demand and platform reclamation/backing mechanisms.
Step 3 Branching troubleshooting Narrow the fault
Path: Virtualization → Memory → Memory Overcommit. Local intent: Memory Overcommit configures aggregate VM memory claims above physical host RAM, relying on non-concurrent demand and platform reclamation/backing mechanisms.
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.
- 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.
virsh nodememstats— host memoryesxtop (memory view: MCTLSZ, SWCUR)— ESXi balloon and swapfree -m— host free/available
ReferenceWhy it matters1 section · depth on demand
Internals and state
Local intent: Memory Overcommit configures aggregate VM memory claims above physical host RAM, relying on non-concurrent demand and platform reclamation/backing mechanisms.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A high configured ratio does not show contention, while low average demand does not show peak-time headroom.
Deep overcommit/reclamation belongs to Memory Virtualization and Capacity Planning.
and state what the evidence does not show.
Worked example
Memory overcommit lets the sum of configured VM memory exceed host RAM. The hypervisor reclaims memory in order of cost:
| Technique | Cost |
|---|---|
| Page sharing (KSM/TPS) | CPU for scanning; little guest impact |
| Ballooning | Guest pages out its own least-useful memory |
| Compression (VMware) | CPU, small latency |
| Host swapping | Severe: guest memory on disk |
Worked example: 256 GB host, 40 VMs × 8 GB = 320 GB configured (1.25:1). If active memory averages 5 GB per VM (200 GB) the host copes; during a patch day with every VM busy it will balloon and possibly swap. Keep production at ~1:1 configured or ensure ballooning can cover the gap.
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 VM Hardware → Memory → Memory Overcommit. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
VM Hardware → Memory → Memory Overcommit reference map
Fast VM-hardware boundaries for VM Hardware → Memory → Memory Overcommit.
| 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 |