Use this when hosts start reclaiming memory and you need to find the cause before performance drops.
Memory Pressure
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.
1. Memory pressure = demand near or over supply.
2. Signals: PSI, ballooning, swapping, page faults.
3. Find the VM(s) driving demand.
4. Rebalance or add RAM.
5. Alert before swap.
demand ↑ → reclaim → pressure metrics
Context & applicabilityCommon mistakes · platform/version boundaries
- Watching only guest memory, missing host-level reclaim.
- Treating ballooning as a problem by itself — host swapping is the real danger.
- Adding RAM to the busiest VM, which increases host pressure.
- Not separating memory-heavy VMs across hosts.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
| Platform | Pressure signs |
|---|---|
| ESXi | Host memory state soft/hard/low, MCTL, SWCUR, ZIP |
| KVM | /proc/pressure/memory (PSI), swap in/out, KSM activity |
| Hyper-V | Memory\Available MBytes on host, VM MemoryStatus |
PSI some avg10 above a few percent means tasks are stalling on memory.
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.
- Pressure shows first as ballooning.
- Swap-in rate shows user impact.
- Consumed memory alone misleads.
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
ReferenceWhy it matters1 section · depth on demand
Reclaim order and signs
Hypervisors reclaim in roughly this order: page sharing → ballooning → compression → host swapping. Ballooning is mostly harmless; compression and especially host swapping cause severe latency.
| Platform | Where to look |
|---|---|
| ESXi | esxtop memory view: MCTL (balloon), ZIP, SWCUR, SWR/s |
| KVM/Proxmox | free, /proc/meminfo, virsh dommemstat <vm> |
| Hyper-V | Hyper-V Dynamic Memory counters, Get-VM | Select MemoryDemand,MemoryAssigned |
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Memory pressure builds in stages: free memory falls → page sharing and ballooning increase → compression → host swapping. Each stage costs more performance.
| Platform | State indicators |
|---|---|
| VMware | Host memory state: high / clear / soft / hard / low |
| KVM | /proc/pressure/memory (PSI), free memory, KSM, balloon |
| Hyper-V | Memory demand vs assigned, Average Pressure counter |
cat /proc/pressure/memory # some/full avg10 > a few % = stalls
Get-Counter '\Hyper-V Dynamic Memory VM(*)\Average Pressure'
Hyper-V Average Pressure above 100 means demand exceeds assigned memory.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Memory Virtualization → Memory Pressure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%