Pcornel
Virtualization · Virtualization Fundamentals

Overcommitment

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

Back to the Topic

Answer

CPU overcommit is common because runnable vCPUs can be time-scheduled over physical CPUs. Memory overcommit depends more heavily on platform mechanisms and workload behavior because active guest memory ultimately requires backing or reclamation.

Remember

  • Overcommitment does not create physical capacity.
  • Configured/assigned resources, actively used resources and guaranteed/reserved resources are different quantities.
  • CPU and memory overcommit have different failure/performance characteristics.
  • A host can remain “up” while workloads suffer latency from contention or reclamation.

First checks

  • virsh nodememstats — host memory use
  • esxtop (press c / m) — ESXi CPU ready and memory state
  • Get-Counter '\Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time' — Hyper-V CPU load

Verify in this order

allocations > physical → contention → ready/steal/swap

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.

Virtualization Fundamentals → Overcommitment reference map

BoundaryMeaningEvidence limit
ConfiguredVirtual resources assignedMay exceed physical total
DemandResources workload actually requestsChanges over time
Physical capacityFinite host backingHard shared boundary
ContentionDemand exceeds immediately serviceable capacityObserved in scheduler/memory metrics

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3417

Confirmation

Confirm action

Continue?