Use this when deciding how many vCPUs a host can carry, or when CPU contention appears after adding VMs.
CPU Overcommit
CPU overcommit assigns more vCPUs than there are physical cores, relying on VMs not all being busy at once. Moderate ratios are normal; too high a ratio shows up as rising CPU ready or steal time.
1. CPU overcommit ratio = total vCPUs / physical cores.
2. Typical 3–5:1 for general workloads.
3. Lower for latency-sensitive.
4. Ready/steal is the real indicator.
5. Reduce oversized VMs first.
vCPUs > pCPUs → scheduling contention
Context & applicabilityCommon mistakes · platform/version boundaries
- Applying a fixed ratio without measuring CPU ready.
- Overcommitting latency-sensitive VMs (VoIP, real-time) together with batch workloads.
- Counting hyperthreads as full cores when sizing.
- Forgetting failover capacity — ratios rise when a host fails.
Operational reference
Fast context before you go deeper.
esxtop → c (%RDY, %CSTP, %USED)Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
esxtop → c (%RDY, %CSTP, %USED)
mpstat 1 # guest %steal
Compute the ratio: total vCPUs of running VMs ÷ physical cores per host. Track it with ready time — the ratio alone says little.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Ratio is a guide; ready time is the proof.
- Idle vCPUs still cost scheduling.
- Large VMs suffer first under overcommit.
virsh nodeinfo— host pCPU countvirsh list --name | xargs -n1 virsh vcpucount --current --live 2>/dev/null— sum vCPUs (approx.)esxtop— ready time
ReferenceWhy it matters1 section · depth on demand
Typical ratios
| Workload | vCPU : physical core |
|---|---|
| Latency-sensitive, databases | 1:1 to 2:1 |
| General servers | 3:1 to 5:1 |
| VDI | 6:1 to 10:1 or more |
The ratio is only a starting point; ready time and actual host CPU usage show whether the cluster is overcommitted. Leave headroom for a host failure (N+1).
ReferenceImportant terms & boundaries2 sections · depth on demand
Typical starting ratios
| Workload | vCPU : core |
|---|---|
| VDI / light office | 6–10 : 1 |
| General servers | 3–5 : 1 |
| Databases / latency-sensitive | 1–2 : 1 |
Starting points only — adjust using CPU ready and steal measurements.
In depth
CPU overcommit ratio = total vCPUs ÷ physical cores. Practical starting points:
| Workload | vCPU : pCore |
|---|---|
| Latency-sensitive / databases | 1:1 – 2:1 |
| General server VMs | 3:1 – 5:1 |
| VDI | 6:1 – 10:1 |
| Dev/test | Higher, measured |
Worked example: 2 hosts × 32 cores = 64 cores; with N+1 the surviving host has 32 cores. 120 vCPUs on one surviving host = 3.75:1 — acceptable for general workloads if CPU ready stays below ~5 % per vCPU during peaks.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in CPU Virtualization → CPU Overcommit. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%