Swapping
Cheat sheet · https://pcornel.dk/topic.php?topic=3494
Answer
Hypervisor swapping moves VM memory pages to disk when host RAM is exhausted. It is the last and slowest reclaim method, so any sustained host swap-in activity means the host is overcommitted and needs more memory or fewer VMs.
Remember
- Hypervisor swap is last resort.
- Any sustained swap-in is a problem.
- Swap file location affects speed.
First checks
vmstat 1 (si/so)— swap in/outswapon --show— host swapesxtop (SWCUR, SWR/s)— ESXi VM swap
Verify in this order
memory shortage → swap → latency
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=3494