Use it when host memory is reclaimed from VMs or when guest available memory drops despite unchanged configured RAM.
Ballooning · Memory
Ballooning changes how much host-backed memory is effectively available to a guest without necessarily changing the VM's configured maximum. It requires a working guest balloon driver/agent path.
1. Ballooning reclaims guest memory by inflating a driver inside the guest.
2. Needs the balloon driver.
3. Causes guest swapping if overused.
4. Signals host memory pressure.
5. Set a sensible minimum.
host pressure → balloon inflates → guest frees pages → host reuses
Inspect guest paging and host pressure, then test workload response while ballooning changes.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show the workload has sufficient effective memory or that no other reclamation/swapping occurs.
Next check: Inspect guest paging and host pressure, then test workload response while ballooning changes.
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 allocation → host backing reclaimed → guest memory pressure → workload
Step 2 Effective-state and workload closure Verify boundary
Local intent: Ballooning is a cooperative memory-reclamation mechanism in which a guest driver allocates/pins guest pages so the hypervisor can reclaim corresponding host backing.
Step 3 Branching troubleshooting Narrow the fault
Path: Virtualization → Memory → Ballooning. Local intent: Ballooning is a cooperative memory-reclamation mechanism in which a guest driver allocates/pins guest pages so the hypervisor can reclaim corresponding host backing.
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/inflation and configured RAM are different quantities.
- A balloon driver must cooperate with the hypervisor.
- Inflation can force the guest to reclaim cache or page internally.
- Ballooning pressure can affect workload performance before a VM appears “out of memory”.
virsh dommemstat <vm> | grep actual— balloon sizeqm monitor <vmid> -> info balloon— Proxmox balloonlsmod | grep virtio_balloon— guest driver
ReferenceWhy it matters1 section · depth on demand
Internals and state
Ballooning, swapping, compression, huge pages and NUMA placement can change effective latency and reclamation.
Local intent: Ballooning is a cooperative memory-reclamation mechanism in which a guest driver allocates/pins guest pages so the hypervisor can reclaim corresponding host backing.
ReferenceHow it works1 section · depth on demand
How it works
Ballooning, swapping, compression, huge pages and NUMA placement can change effective latency and reclamation.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Balloon inflation shows cooperative reclamation occurred, not that the guest workload is unaffected or that host pressure is resolved.
Detailed balloon algorithms/metrics belong to Memory Virtualization.
Ballooning, swapping, compression, huge pages and NUMA placement can change effective latency and reclamation. and state what the evidence does not show.
In depth
Memory ballooning lets the hypervisor reclaim memory from a VM when the host is under pressure. A balloon driver in the guest allocates (inflates) memory inside the VM, so the guest OS pages out or frees its least useful memory, and the hypervisor can give those physical pages to other VMs.
| Technique | Order of preference |
|---|---|
| Transparent page sharing | Low cost (limited by default for security) |
| Ballooning | Guest chooses what to free — moderate impact |
| Compression | Compressed in host RAM |
| Host swapping | Slowest — significant performance impact |
Ballooning needs guest tools (VMware Tools, virtio-balloon, Hyper-V Dynamic Memory). Sustained ballooning means the host is overcommitted; disable it for latency-sensitive VMs with memory reservations.
virsh dommemstat app01
esxtop # memory view: MCTLSZ column shows balloon size
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 → 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
VM Hardware → Memory → Ballooning reference map
Fast VM-hardware boundaries for VM Hardware → Memory → Ballooning.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Configured RAM | VM policy ceiling/baseline | May stay unchanged |
| Balloon inflation | Guest pages pinned for reclamation | Reduces effective availability |
| Host reclaimed | Backing returned to host | Pressure response |
| Guest effect | Cache/page pressure possible | Measure workload |