Memory Pressure
Cheat sheet · https://pcornel.dk/topic.php?topic=3497
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 faultsGet-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