Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Ballooning · Memory

Direct answer

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.

When to use this

Use it when host memory is reclaimed from VMs or when guest available memory drops despite unchanged configured RAM.

First 30 seconds

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.

Operational verification

host pressure → balloon inflates → guest frees pages → host reuses

Evidence · next step

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
Common mistakes
Common traps

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.

Platform / version applicability
virtualization-hardware
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-hardware
Scope / prerequisiteUse it when host memory is reclaimed from VMs or when guest available memory drops despite unchanged configured RAM.
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.

3 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 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 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/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”.
Key checks
  • virsh dommemstat <vm> | grep actual — balloon size
  • qm monitor <vmid> -> info balloon — Proxmox balloon
  • lsmod | 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.

TechniqueOrder of preference
Transparent page sharingLow cost (limited by default for security)
BallooningGuest chooses what to free — moderate impact
CompressionCompressed in host RAM
Host swappingSlowest — 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
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-hardware current

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%
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 ballooningballoon driver vmvirtio balloon
Embedded reference data

Quick lookup tables

VM Hardware → Memory → Ballooning reference map

Fast VM-hardware boundaries for VM Hardware → Memory → Ballooning.

BoundaryMeaningEvidence limit
Configured RAMVM policy ceiling/baselineMay stay unchanged
Balloon inflationGuest pages pinned for reclamationReduces effective availability
Host reclaimedBacking returned to hostPressure response
Guest effectCache/page pressure possibleMeasure workload
Confirmation

Confirm action

Continue?