Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Resource Management

Direct answer

Resource management controls how VMs share host capacity: reservations guarantee a minimum, limits cap the maximum, shares set priority under contention, and resource pools group VMs so these rules apply together.

When to use this

Use this when deciding how VMs share host capacity, or when a VM is slow despite free host resources because of limits, shares or reservations.

First 30 seconds

1. Resource controls: shares (priority), reservations (guarantee), limits (cap).

2. Use shares first; limits rarely.

3. Reservations reduce admission capacity.

4. Apply to pools, not single VMs, where possible.

5. Measure contention before tuning.

Operational verification

demand → shares/reservations/limits → scheduler/allocator

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Using limits instead of shares to prioritise.
  • Reservations on many VMs, blocking HA restart.
  • Resource pools used as folders.
  • Settings copied from templates without review.
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 deciding how VMs share host capacity, or when a VM is slow despite free host resources because of limits,…
What next?2 suggested next steps
Child topics (this level)11
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
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic Resource Pools

Resource pools group VMs and assign them shares, reservations and limits as a unit, for example per department or environment.

Subtopic CPU Limits

A CPU limit caps how much CPU (in MHz or percent) a VM may use even when the host is idle.

Subtopic CPU Reservations

A CPU reservation guarantees a VM a minimum amount of CPU capacity.

Subtopic CPU Shares

CPU shares set a VM's relative priority only when the host is contended: a VM with twice the shares gets about twice the CPU.

Subtopic Memory Limits

A memory limit caps the physical RAM a VM can use below its configured size; anything above the limit is ballooned or swapped even if the host has free memory.

Subtopic Memory Reservations

A memory reservation guarantees that part or all of a VM's memory is always backed by physical RAM and never swapped.

Subtopic Memory Shares

Memory shares decide which VMs keep their memory when the host runs short: under pressure, VMs with fewer shares are ballooned or swapped first.

Subtopic Disk Limits

Disk limits cap a VM's IOPS or throughput (for example vSphere IOPS limits, Hyper-V Storage QoS, libvirt iotune) so one busy VM cannot starve others on the same datastore.

Subtopic Network Limits

Network limits cap or shape a VM's or port group's bandwidth (traffic shaping, Network I/O Control, Hyper-V bandwidth management, tc on Linux) so one VM or traffic type cannot saturate a shared uplink.

Subtopic QoS

Virtualization QoS combines shares, reservations and limits for CPU, memory, storage and network so important workloads keep performance when resources are contended, and noisy neighbours are contained.

Subtopic Resource Contention

Resource contention happens when VMs demand more CPU, memory, storage or network than the host can deliver.

Key points
  • Limits apply even when the host is idle.
  • Shares only matter under contention.
  • Reservations reduce what others and HA can use.
Key checks
  • virsh schedinfo <vm> — CPU shares/quota (libvirt)
  • Get-VMProcessor <vm> | fl Reserve,Maximum,RelativeWeight — Hyper-V CPU controls
  • qm config <vmid> | grep -E 'cpulimit|cpuunits|memory' — Proxmox controls
ReferenceWhy it matters1 section · depth on demand

Controls summary

ControlCPUMemoryStorageNetwork
Reservation (guarantee)MHzMBIOPS (some)Mbit/s (NIOC)
Limit (cap)MHzMBIOPS, MB/sTraffic shaping
Shares (priority under contention)YesYesSIOCNIOC

Prefer shares and right-sizing; use reservations for critical VMs and limits only deliberately.

ReferenceHow it works1 section · depth on demand

In depth

Resource controls decide who gets CPU, memory, disk and network when there is contention:

ControlEffectWhen it matters
ReservationGuaranteed minimumAlways (blocks other VMs from using it)
LimitHard maximumAlways (even if resources are idle)
Shares/weightRelative priorityOnly under contention

Prefer shares for prioritisation, reservations for critical VMs that must always get their minimum, and limits only for metering, tenants or noisy neighbours — limits silently throttle VMs even when the host is idle.

ReferenceImportant terms & boundaries1 section · depth on demand

Order of effect

1. Reservations guarantee resources and are honoured first.

2. Limits cap resources even when the host is idle.

3. Shares split what remains when there is contention.

Most VMs need none of these. Use reservations for critical VMs, avoid limits, and use shares or resource pools to prioritise groups.

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 Resource Management. 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?