Pcornel
Virtualization · Virtualization Troubleshooting

Memory Ballooning

Cheat sheet · https://pcornel.dk/topic.php?topic=3820

Back to the Topic

Answer

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

Remember

  • 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.

First checks

  • virsh dommemstat <vm> | grep actual — balloon size
  • esxtop — MCTLSZ
  • lsmod | grep virtio_balloon — driver

Verify in this order

host pressure → balloon inflation → guest pressure

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Virtualization Troubleshooting → Memory Ballooning troubleshooting map

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3820

Confirmation

Confirm action

Continue?