Use this when deciding how much CPU or memory to overcommit and checking whether the current ratio is safe.
Overcommit Ratio
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.
1. Overcommit ratio = allocated / physical.
2. CPU 3–5:1 general; 1:1 for latency-sensitive.
3. Memory ideally ≤1:1 for production.
4. Ratio is a guide; contention metrics decide.
5. Document ratios per cluster.
allocated ÷ physical → ratio
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 Common mistakes Narrow the fault
- Using a fixed ratio as a rule instead of measuring.
- Counting hyperthreads as cores.
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 symptom; contention metrics are truth.
- Memory overcommit is riskier than CPU.
- Different workloads tolerate different ratios.
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 threadsGet-VM | measure ProcessorCount -Sum— Hyper-V total vCPUs
ReferenceWhy it matters1 section · depth on demand
Typical ratios
| Resource | Ratio | Comment |
|---|---|---|
| vCPU : pCore | 3–5:1 general, 1–2:1 critical | Watch CPU ready |
| vRAM : RAM | 1–1.2:1 | Higher only with confirmed low active memory |
| Thin provisioned : physical storage | 1.5–2:1 | Strict free-space alerts |
Calculate with one host removed (N+1), not with the full cluster.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Overcommit ratios summarise how far virtual allocations exceed physical resources:
| Ratio | Formula | Typical production target |
|---|---|---|
| vCPU : pCore | total vCPUs ÷ physical cores | 3–5:1 general |
| Memory | configured VM memory ÷ host RAM | ≤ 1.0–1.2:1 |
| Storage | provisioned ÷ usable | Depends on monitoring; ≤ 2:1 common |
Calculate them for the N+1 state (one host down), because that is when contention actually happens.
Calculating
Overcommit ratio = Σ configured vCPUs ÷ physical cores (or Σ configured RAM ÷ host RAM).
Example: 160 vCPUs on hosts with 2 × 32 cores = 2.5:1. Validate with CPU ready/steal, not the ratio alone.
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 Capacity Planning → Overcommit Ratio. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/html/libvirt-libvirt-domain.html · confidence 94%