Pcornel
Virtualization · Monitoring

Memory Usage

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

Back to the Topic

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.

Remember

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

First checks

  • virsh dommemstat <vm> — VM memory
  • Get-VM | ft Name,MemoryAssigned,MemoryDemand — Hyper-V
  • free -h — host

Verify in this order

guest demand → host memory

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.

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

Confirmation

Confirm action

Continue?