Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Memory Usage

Direct answer

Monitor VM memory with guest-visible usage and host-side metrics: active memory, ballooning, compression and swap-in. Ballooning or host swap shows host pressure; high guest usage with paging shows the VM is undersized.

When to use this

Use this when reading VM memory metrics and deciding whether the VM or the host is the problem.

First 30 seconds

1. Memory usage: assigned, active, consumed, host free.

2. Guest cache inflates "used".

3. Watch ballooning and swap.

4. Alert on host available memory.

5. Plan N+1.

Operational verification

guest demand → host memory

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Alerting on guest "used" memory that is mostly cache.
  • Ignoring host-level ballooning and swapping.
  • Not tracking memory trends for capacity planning.
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
Key commandesxtop → m
Scope / prerequisiteUse this when reading VM memory metrics and deciding whether the VM or the host is the problem.
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 Checks Verify boundary
esxtop → m
virsh dommemstat vm01
Get-VM | Select Name,MemoryAssigned,MemoryDemand,MemoryStatus

On Hyper-V, MemoryStatus = Warning/Low means Dynamic Memory cannot meet demand.

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
  • Active memory is what the guest recently touched; consumed is what the host allocated.
  • Ballooning and swap-in show host pressure.
  • Paging inside the guest shows the VM itself is too small.
Key checks
  • virsh dommemstat <vm> — VM memory
  • Get-VM | ft Name,MemoryAssigned,MemoryDemand — Hyper-V
  • free -h — host
ReferenceWhy it matters1 section · depth on demand

Key metrics

MetricHealthyProblem
Guest used vs configuredBelow ~80 %Guest paging
Active / consumed (host)StableClose to host total
Balloon0Rising: host pressure
Swap-in rate0Any sustained value: severe slowdown

Alert on host swapping and ballooning, not on guest "used" memory alone, because guests use free RAM as cache.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Memory usage counters differ:

CounterMeaning
Configured / assignedWhat the VM was given
Consumed / host memoryHost RAM backing it
ActiveRecently touched (estimate)
Guest used / availableGuest OS view incl. cache
Balloon / swapped / compressedReclaim in progress

Right-size by guest-side working set plus headroom; use host-side balloon/swap to detect host overcommit. "Consumed" near configured is normal for VMs with large caches and does not mean the VM needs more memory.

ReferenceConfiguration & state1 section · depth on demand
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 Monitoring → Memory Usage. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/html/libvirt-libvirt-domain.html · confidence 94%
Confirmation

Confirm action

Continue?