Pcornel
Virtualization · Capacity Planning

Memory Capacity

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

Back to the Topic

Answer

Memory capacity planning sums the configured and actively used RAM of VMs against host memory, minus hypervisor overhead and failover reserve, because memory is usually the first resource to run out in a cluster.

Remember

  • Configured RAM ≠ active RAM, but plan for configured.
  • Hypervisor and VM overhead are real.
  • Overcommit hides until pressure arrives.

First checks

  • free -g — host memory
  • Get-VMHost | fl MemoryCapacity — Hyper-V
  • virsh nodememstats — libvirt

Commands

journalctl -k

Verify in this order

RAM − reserve → VM allocations

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; 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=3675

Confirmation

Confirm action

Continue?