Use this when a VM is slow on CPU, when sizing vCPUs, or when choosing overcommit, pinning, NUMA or CPU model settings for a host or cluster.
CPU Virtualization
CPU virtualization lets many VMs share physical cores: the hypervisor schedules vCPUs onto cores using hardware extensions (Intel VT-x, AMD-V), and settings like overcommit, pinning and NUMA placement decide how well they perform.
1. CPU virtualization: vCPUs scheduled onto pCPUs.
2. Contention shows as ready/steal.
3. Right-size vCPUs.
4. Use pinning only when needed.
5. CPU model affects migration.
vCPU threads → scheduler → physical cores
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 Effective-state and workload closure Verify boundary
Local intent: CPU Virtualization reference area for virtualization architecture, operation and troubleshooting.
Step 2 Branching troubleshooting Narrow the fault
Path: Virtualization → CPU Virtualization. Local intent: CPU Virtualization reference area for virtualization architecture, operation and troubleshooting.
Step 3 Known-good and broken paths Narrow the fault
Field map: Correlate VM UUID/name, guest device, virtual controller/vNIC/vDisk, hypervisor object/state, host resource/path/uplink/datastore identifier, queue/latency/contention counters and guest-visible result.
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.
Subtopics
Go one level deeper into this subject.
vCPU scheduling is how the hypervisor places virtual CPUs onto physical cores over time.
Subtopic CPU ReadyCPU ready (steal time in Linux guests) is the time a vCPU was ready to run but waited for a physical core.
Subtopic CPU OvercommitCPU overcommit assigns more vCPUs than there are physical cores, relying on VMs not all being busy at once.
Subtopic CPU AffinityCPU affinity restricts which physical cores a VM's vCPUs may run on.
Subtopic CPU PinningCPU pinning maps each vCPU to a fixed physical core (for example virsh vcpupin or a Proxmox affinity setting) to give latency-sensitive or NUMA-aware workloads predictable performance, at the cost of flexibility and density.
Subtopic NUMANUMA (non-uniform memory access) splits a host into nodes, each with its own cores and local memory.
Subtopic vNUMAvNUMA presents a NUMA topology inside the VM that mirrors the host's nodes, so a large guest OS and its applications can place threads and memory locally.
Subtopic CPU CompatibilityCPU compatibility determines whether a VM can live-migrate between hosts: the destination must support every CPU feature the VM was started with, which is why clusters use EVC (vSphere), processor compatibility mode (Hyper-V) or a common CPU model (KVM).
Subtopic CPU PassthroughCPU passthrough (host-passthrough in KVM) exposes the host's exact CPU model and features to the guest for maximum performance and instruction support, but ties live migration to hosts with identical CPUs.
Subtopic Host CPU ModelThe host CPU model setting decides which CPU the guest sees: a generic or baseline model (for example x86-64-v2 or an EVC level) maximizes migration compatibility, while host-model or host-passthrough exposes more features and speed.
Subtopic CPU TroubleshootingTroubleshoot VM CPU problems by comparing guest CPU usage with host-side ready/steal time, co-stop and host load: high ready means contention, high guest usage with low ready means the VM itself needs more or faster CPU.
- High guest CPU ≠ host contention; check ready/steal time.
- More vCPUs ≠ faster VM; oversizing raises scheduling wait.
- CPU model choice affects both features and live migration.
virsh vcpuinfo <vm>— vCPU placementtop (st column) in guest— steal timeesxtop— %RDY on ESXi
ReferenceWhy it matters1 section · depth on demand
Internals and state
Local intent: CPU Virtualization reference area for virtualization architecture, operation and troubleshooting.
ReferenceHow it works2 sections · depth on demand
How it works
CPU Virtualization — execution path and state semantics. vCPU execution depends on guest runnable state, hypervisor scheduling, physical CPU availability, NUMA locality and contention/steal or ready time.
State
Anchor the same VM/guest operation from virtual device identity through hypervisor ownership to the exact physical CPU, memory, network or storage resource.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
CPU virtualization maps vCPUs to physical cores through the hypervisor scheduler. Each vCPU is a schedulable thread or world; a vCPU that wants to run but has no free core waits — measured as CPU ready (VMware), steal time (Linux guests) or wait time (Hyper-V).
| Metric | Where | Rough concern level |
|---|---|---|
| CPU ready % | esxtop %RDY per vCPU | > 5 % per vCPU |
| Co-stop % | esxtop %CSTP | > 3 % |
| Steal time | guest top st, vmstat | > 5–10 % |
| Hyper-V CPU wait time per dispatch | perfmon Hyper-V Hypervisor Virtual Processor | Rising trend |
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%