Use this when VMs compete for CPU, memory, storage or network and you must find which.
Resource Contention
Resource contention happens when VMs demand more CPU, memory, storage or network than the host can deliver. It shows as CPU ready, ballooning or swapping, high disk latency or dropped packets, and is fixed by rebalancing, right-sizing or adding capacity.
1. Contention = demand > supply on CPU, memory, disk or network.
2. Symptoms: ready/steal, ballooning, latency, drops.
3. Find the noisy VM.
4. Rebalance, right-size or add capacity.
5. Use controls only after.
demand > supply → wait/reclaim/queue
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 Checks Verify boundary
- Compare host utilisation with VM demand at the same time.
- Find the noisy VM (top consumer).
- Use shares/reservations or move VMs; add capacity if contention is regular.
Step 2 Common mistakes Narrow the fault
- Adding vCPUs to a VM suffering from CPU ready (makes it worse).
- Ignoring storage contention from backup jobs.
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.
- Find the scarce resource first.
- Contention metrics prove it.
- Fix by rebalance, right-size or add.
esxtop— %RDY, MCTL, DAVG per VMvmstat 1; iostat -x 1— host contentionGet-Counter '\Hyper-V Hypervisor Virtual Processor(*)\CPU Wait Time Per Dispatch'— Hyper-V CPU wait
ReferenceWhy it matters1 section · depth on demand
How contention shows
| Resource | Sign |
|---|---|
| CPU | High ready/steal time |
| Memory | Ballooning, compression, host swapping |
| Storage | High device/queue latency |
| Network | Drops and saturated uplinks |
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Resource contention shows up as waiting, not as "100 % used":
| Resource | Contention metric |
|---|---|
| CPU | CPU ready, co-stop, steal time |
| Memory | Balloon, swap, compression, Hyper-V pressure > 100 |
| Storage | Latency (KAVG/DAVG), queue depth, throttling |
| Network | Drops, retransmits, egress queue drops |
Find the noisy neighbour by sorting per-VM usage when contention starts (esxtop, virt-top, Get-VM | Measure-VM with resource metering enabled), then move, limit or right-size it.
Fixing contention
1. Find the top consumers at the time of contention.
2. Right-size oversized VMs.
3. Apply shares or limits to noisy workloads.
4. Move VMs (DRS/manual) to balance hosts.
5. Add capacity if contention is routine.
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 Resource Management → Resource Contention. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/html/libvirt-libvirt-domain.html · confidence 94%