Use it when the symptom is “Memory Ballooning”: work through the layers in order and stop at the first one that fails.
Memory Ballooning
Separate reclaim intent from impact: host pressure/policy → balloon target → guest balloon driver → guest page reclamation → host memory returned → guest paging/workload response.
1. Active ballooning = host memory pressure.
2. Find which host and why.
3. Move VMs or add memory.
4. Check memory limits.
5. Set reservations for critical VMs.
host pressure → balloon inflation → guest pressure
Context & applicabilityCommon mistakes · platform/version boundaries
Observed ballooning shows a reclaim mechanism is active or requested, but it does not show ballooning is harmful unless guest pressure and workload impact correlate.
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
Host pressure/policy → balloon request → guest driver → page reclaim → host memory recovery → guest paging/latency → workload
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.
- Balloon target ≠ reclaimed memory until the guest driver responds and pages are actually released.
- Ballooning ≠ host swapping; both reclaim memory but at different layers and with different performance effects.
- Balloon activity ≠ memory leak; it may be an intentional response to overcommit or pressure.
- Balloon driver loaded ≠ guest has enough reclaimable memory without paging or workload impact.
virsh dommemstat <vm> | grep actual— balloon sizeesxtop— MCTLSZlsmod | grep virtio_balloon— driver
ReferenceWhat it is1 section · depth on demand
Reading balloon metrics
| Metric | Healthy | Problem |
|---|---|---|
| Balloon size | 0 or small and stable | Large and growing |
| Guest paging | None | Rising with balloon |
| Host free memory | Above reclaim threshold | Near zero |
Ballooning means the host is short of memory. Fix the host side (add RAM, move VMs, remove overcommit), not by disabling the balloon driver, which only moves the problem to host swapping.
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
Observed ballooning shows a reclaim mechanism is active or requested, but it does not show ballooning is harmful unless guest pressure and workload impact correlate.
and state what the evidence does not show.
In depth
How ballooning works on KVM / Proxmox VE
The guest's virtio-balloon driver "inflates" by allocating guest memory and handing it back to the host; deflating gives it back to the guest. The Proxmox VM chapter describes the balloon device and automatic memory allocation, where a Shares value weights which VMs give up memory first.
qm set 101 --memory 16384 --balloon 4096 # max 16 GiB, may shrink to 4 GiB
qm monitor 101
qm> info balloon
balloon: actual=9216
actual below memory means the VM is currently ballooned.
Requirements
| Guest | Needs |
|---|---|
| Linux | virtio_balloon module (standard in distribution kernels) |
| Windows | VirtIO balloon driver and the Balloon service from the VirtIO guest tools — without the service, memory reporting is wrong |
Why monitoring looks strange
Inflated balloon memory appears as used inside the guest (Linux: allocated by the driver; Windows: committed). A VM that shows 90 % RAM usage in the guest may be mostly balloon. Compare guest-reported usage with the hypervisor's actual value before resizing.
When ballooning hurts
| Situation | Effect |
|---|---|
| Guest has no free memory to return | Inflation pushes the guest into swapping |
| Databases with fixed buffer pools (SQL Server, Oracle SGA, Java heaps) | Balloon competes with the cache; performance drops sharply |
| Huge pages or PCI passthrough | Ballooning cannot return pinned memory — disable it |
| Many VMs ballooning at once | Host is overcommitted — capacity problem |
Recommended use
- Keep ballooning enabled with a sensible minimum for general-purpose VMs; it gives the host a safety valve.
- Disable it (
--balloon 0, which still allows memory statistics) for latency-sensitive and memory-fixed workloads. - Treat sustained ballooning across a node as an alarm for memory capacity, not as normal operation.
Method
Memory ballooning observed:
1. Confirm on the host: balloon size per VM and host free memory.
2. Check whether the host is genuinely short (overcommit, a failed host's VMs restarted here, new large VM).
3. Check reservations/limits: a memory limit lower than configured memory forces ballooning even on idle hosts.
4. Relieve: migrate VMs, add memory, reduce configured memory of oversized VMs.
esxtop (m) → MCTLSZ, MCTLTGT, MCTLMAX
virsh dommemstat vm1
Get-VM | Get-VMMemory | Select VMName,DynamicMemoryEnabled,Minimum,Maximum
Do not disable the balloon driver as a fix; it shifts the reclaim to host swapping.
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 Virtualization Troubleshooting → Memory Ballooning. 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
Virtualization Troubleshooting → Memory Ballooning troubleshooting map
Fast fault-isolation boundaries and proof limits for Virtualization Troubleshooting → Memory Ballooning.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Symptom/scope | Exact failing test, affected VM/host/cluster and incident time are defined | Symptom classification does not identify root cause |
| Observed boundary | Configuration, runtime and counters/logs for this Virtualization Troubleshooting → Memory Ballooning boundary are time-correlated | One healthy or failed status does not prove adjacent dependencies |
| Adjacent dependency | The next host, storage, network, device, guest or cluster dependency is tested independently | Local success does not prove end-to-end health |
| Verification | The original workload test succeeds after one controlled change and remains healthy in regression checks | Temporary recovery alone is not durable proof |