Pcornel
Virtualization

Memory Virtualization

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

Back to the Topic

Answer

Memory virtualization maps each VM's guest-physical memory onto host RAM using hardware page tables (EPT/NPT), and lets the host reclaim or overcommit memory with ballooning, page sharing, compression and swapping.

Remember

  • Consumed host memory ≠ active guest memory.
  • Ballooning means host pressure, not a guest problem.
  • Host swapping is the slowest reclaim — treat it as an incident.

First checks

  • virsh dommemstat <vm> — VM memory stats
  • free -h — host memory
  • esxtop (m) — ESXi memory

Verify in this order

guest page → SLAT → host page

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=3488

Confirmation

Confirm action

Continue?