Pcornel
Virtualization · Capacity Planning

Overcommit Ratio

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

Back to the Topic

Answer

The overcommit ratio is allocated virtual resources divided by physical ones, such as vCPU:pCore or configured RAM:host RAM. Safe values depend on workload; monitor ready time and memory pressure rather than a fixed rule.

Remember

  • Ratio is a symptom; contention metrics are truth.
  • Memory overcommit is riskier than CPU.
  • Different workloads tolerate different ratios.

First checks

  • virsh list --name | while read v; do [ -n "$v" ] && virsh vcpucount $v --current --live; done | awk '{s+=$1} END {print s}' — total vCPUs (approx.)
  • nproc — physical threads
  • Get-VM | measure ProcessorCount -Sum — Hyper-V total vCPUs

Verify in this order

allocated ÷ physical → ratio

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

Confirmation

Confirm action

Continue?