Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

CPU Capacity

Direct answer

CPU capacity planning compares total physical cores and GHz per cluster with the vCPUs and actual CPU demand of the VMs, keeping CPU ready low and leaving headroom for host failure and growth.

When to use this

Use this when planning how much CPU a cluster needs for current and future VMs, including failover reserve.

First 30 seconds

1. CPU capacity = physical cores × utilisation target.

2. Hyper-threads add about 20–30 %, not 100 %.

3. Track vCPU:pCPU ratio and ready.

4. Keep headroom for HA.

5. Licensing may count cores.

Operational verification

physical cores → target utilisation → VM vCPU demand

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Sizing on configured vCPUs instead of measured demand.
  • Ignoring failover capacity.
  • Counting hyperthreads as full cores.
Platform / version applicability
virtualization
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization
Scope / prerequisiteUse this when planning how much CPU a cluster needs for current and future VMs, including failover reserve.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Key points
  • Plan on demand, not configured vCPUs alone.
  • Reserve one host's worth for N+1.
  • Ready time validates the plan.
Key checks
  • nproc; lscpu — physical cores/threads
  • virsh nodeinfo — host CPUs
  • esxtop — ready under load
ReferenceWhy it matters1 section · depth on demand

Sizing method

1. Measure peak CPU demand of all VMs (GHz or cores at the 95th percentile).

2. Add growth for the planning period.

3. Divide by usable capacity per host (cores × clock × target utilisation, e.g. 70 %).

4. Add one host for failover (N+1), or more for maintenance during failures.

Also check the vCPU:pCore ratio and per-core licensing (Windows Server, SQL) which can make fewer, faster cores cheaper.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

Capacity in physical cores, guard rails in ratios

MetricHealthy range (general-purpose VMs)
vCPU : physical core ratio2:1 – 4:1 typical; 1:1 for latency-critical or CPU-heavy VMs
Host CPU usage (95th percentile)Below ~70–80 %
Steal / ready per vCPUBelow ~5 % sustained
Largest VM vCPUs≤ physical cores of one NUMA node (preferably)

The ratio is a guard rail, not capacity — eight idle 4-vCPU VMs cost little, two busy 16-vCPU VMs can saturate a host.

Worked check

ItemValue
Host: 2 × 24 cores (SMT off for the calculation)48 cores
Running VMs' vCPUs160 → ratio 3.3:1
Host CPU 95th percentile62 %
Median steal across VMs1.2 %
ConclusionCapacity is fine; ratio alone would have looked high

Hyper-threading adds roughly 15–30 % throughput for mixed workloads, not 100 % — count physical cores for planning and treat SMT as headroom.

NUMA and big VMs

The libvirt domain format lets you define guest topology and NUMA cells. A VM larger than one host NUMA node pays a cross-node memory penalty unless its topology mirrors the host; very large VMs also reduce placement flexibility during failover.

CPU models and migration

A cluster mixing CPU generations needs a common CPU model (for example x86-64-v2-AES or a specific named model) so VMs can live-migrate. Using host gives the best performance but ties a VM to identical CPUs. Count this choice in planning: buying a newer generation into an existing cluster may require a lower common model.

Collect the right data

Per host: CPU utilisation and run-queue length; per VM: CPU usage and steal/wait time (virsh domstats --vcpu, guest st). Plan from peaks over months, not from yesterday's average.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Sizing method

Required cores ≈ Σ(VM peak CPU in GHz) / (core GHz × target utilisation), then add N+1 for host failure.

Example: VMs peak at 120 GHz total, cores at 2.8 GHz, target 70 % → 120 / (2.8 × 0.7) ≈ 61 cores. With 32-core hosts that is 2 hosts, plus 1 for failover = 3 hosts. Use measured peaks (95th percentile), not configured vCPUs.

Worked example

CPU capacity for a cluster is planned in physical cores (and GHz) after subtracting the failover reserve.

Worked example: 4 hosts × 32 cores = 128 cores. N+1 leaves 96 cores. Current demand at the 95th percentile is 60 cores' worth of CPU time, growing 1.5 cores per month. Target maximum 75 % of N+1 capacity = 72 cores → about 8 months until more hosts are needed. vCPU count matters for overcommit ratios and CPU ready; core-hours of demand matter for capacity.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization current

Authoritative/upstream documentation reviewed for bounded claims in Capacity Planning → CPU Capacity. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/html/libvirt-libvirt-domain.html · confidence 94%
Confirmation

Confirm action

Continue?