Pcornel
Virtualization · Memory Virtualization

Memory Pressure

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

Back to the Topic

Answer

Memory pressure is the state where VM demand approaches host RAM, so the host starts reclaiming with ballooning, compression and swapping. Watch active memory, balloon size and swap rates, not only consumed memory.

Remember

  • Pressure shows first as ballooning.
  • Swap-in rate shows user impact.
  • Consumed memory alone misleads.

First checks

  • cat /proc/pressure/memory — PSI memory pressure (host)
  • virsh dommemstat <vm> — VM swap/major faults
  • Get-Counter '\Hyper-V Dynamic Memory VM(*)\Average Pressure' — Hyper-V pressure

Commands

virsh dommemstat <vm>

Verify in this order

demand ↑ → reclaim → pressure metrics

Where it usually breaks

First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; 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=3497

Confirmation

Confirm action

Continue?