Use this when ballooning appears on VMs and you need to know whether the host is short of memory.
Ballooning · Memory Virtualization
Ballooning lets the hypervisor reclaim memory through a driver inside the guest (vmmemctl, virtio-balloon, Hyper-V Dynamic Memory) that inflates and hands unused guest pages back to the host under memory pressure.
1. Balloon driver reclaims memory from guests.
2. Active ballooning = host pressure.
3. Guest may swap.
4. Set min memory.
5. Fix root cause: add host RAM or move VMs.
host pressure → balloon → guest frees memory
Context & applicabilityCommon mistakes · platform/version boundaries
- Balloon driver not installed (VMware Tools, virtio-balloon, Hyper-V integration services).
- Guests with memory reservations or large pages that cannot balloon.
- Applications such as Java or databases reacting badly when the balloon takes memory.
- Ballooning disabled on VMs that should be able to give memory back.
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 Checking ballooning Verify boundary
| Platform | Where |
|---|---|
| ESXi | esxtop memory view MCTLSZ per VM; vCenter "Ballooned memory" |
| KVM/Proxmox | virsh dommemstat <vm> (actual vs available), Proxmox "Ballooning" setting |
| Hyper-V | Dynamic Memory "Memory Demand" vs "Assigned" |
Ballooning without guest paging is harmless; ballooning that pushes the guest into paging hurts performance.
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 in a VM = host pressure.
- Balloon driver needs guest tools.
- Limits can force ballooning on idle hosts.
virsh dommemstat <vm>— actual vs availableesxtop (MCTLSZ)— balloon sizelsmod | grep balloon— guest driver
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Ballooning reclaims memory by asking a driver inside the guest to allocate ("inflate") memory, which the guest takes from its least valuable pages — often cache — and the hypervisor then frees the backing host pages.
esxtop (m): MCTLSZ = balloon size per VM
virsh dommemstat vm1 # actual, rss, balloon stats
qm monitor 120 → info balloon
Small, temporary ballooning is fine. Large or persistent ballooning means the host is overcommitted — guests start paging and performance drops. Never disable the balloon driver as a "fix"; it shifts pressure to host swapping, which is worse.
ReferenceConfiguration & state1 section · depth on demand
Configuration
# Proxmox
qm set 101 --memory 8192 --balloon 4096 # min 4 GB, max 8 GB
# libvirt
<memballoon model='virtio'/>
# Hyper-V
Set-VMMemory vm01 -DynamicMemoryEnabled $true -MinimumBytes 2GB -StartupBytes 4GB -MaximumBytes 8GB
Documented example, not captured output.
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 → Ballooning. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%