Pcornel
Virtualization · Resource Management

Resource Contention

Cheat sheet · https://pcornel.dk/topic.php?topic=3621

Back to the Topic

Answer

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.

Remember

  • Find the scarce resource first.
  • Contention metrics prove it.
  • Fix by rebalance, right-size or add.

First checks

  • esxtop — %RDY, MCTL, DAVG per VM
  • vmstat 1; iostat -x 1 — host contention
  • Get-Counter '\Hyper-V Hypervisor Virtual Processor(*)\CPU Wait Time Per Dispatch' — Hyper-V CPU wait

Verify in this order

demand > supply → wait/reclaim/queue

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3621

Confirmation

Confirm action

Continue?