Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Memory Ballooning

Direct answer

Separate reclaim intent from impact: host pressure/policy → balloon target → guest balloon driver → guest page reclamation → host memory returned → guest paging/workload response.

When to use this

Use it when the symptom is “Memory Ballooning”: work through the layers in order and stop at the first one that fails.

First 30 seconds

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.

Operational verification

host pressure → balloon inflation → guest pressure

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
virtualization
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization
Scope / prerequisiteUse it when the symptom is “Memory Ballooning”: work through the layers in order and stop at the first one that fails.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • virsh dommemstat <vm> | grep actual — balloon size
  • esxtop — MCTLSZ
  • lsmod | grep virtio_balloon — driver
ReferenceWhat it is1 section · depth on demand

Reading balloon metrics

MetricHealthyProblem
Balloon size0 or small and stableLarge and growing
Guest pagingNoneRising with balloon
Host free memoryAbove reclaim thresholdNear 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

GuestNeeds
Linuxvirtio_balloon module (standard in distribution kernels)
WindowsVirtIO 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

SituationEffect
Guest has no free memory to returnInflation 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 passthroughBallooning cannot return pinned memory — disable it
Many VMs ballooning at onceHost 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.
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization current

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%
Terminology layer

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.

Aliases that resolve here
memory ballooning problemvm ballooningballoon driverguest memory reclaim
Embedded reference data

Quick lookup tables

Virtualization Troubleshooting → Memory Ballooning troubleshooting map

Fast fault-isolation boundaries and proof limits for Virtualization Troubleshooting → Memory Ballooning.

BoundaryWhat to verifyEvidence limit
Symptom/scopeExact failing test, affected VM/host/cluster and incident time are definedSymptom classification does not identify root cause
Observed boundaryConfiguration, runtime and counters/logs for this Virtualization Troubleshooting → Memory Ballooning boundary are time-correlatedOne healthy or failed status does not prove adjacent dependencies
Adjacent dependencyThe next host, storage, network, device, guest or cluster dependency is tested independentlyLocal success does not prove end-to-end health
VerificationThe original workload test succeeds after one controlled change and remains healthy in regression checksTemporary recovery alone is not durable proof
Confirmation

Confirm action

Continue?