Pcornel
Virtualization · VM Hardware › Memory

Dynamic Memory

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

Back to the Topic

Answer

Dynamic memory changes effective VM memory according to platform policy, guest demand signals and configured minimum/startup/maximum constraints. Exact mechanisms vary by hypervisor.

Remember

  • Dynamic memory is policy-driven, not a promise that all configured maximum memory is physically available immediately.
  • Startup/minimum/maximum concepts are distinct.
  • Guest cooperation or platform-specific drivers may be required.
  • Memory changes can affect NUMA placement and workload latency.

First checks

  • Get-VMMemory <vm> | fl DynamicMemoryEnabled,Minimum,Maximum,Startup — Hyper-V dynamic memory
  • Get-VM | ft Name,MemoryDemand,MemoryAssigned — demand vs assigned
  • qm config <vmid> | grep balloon — Proxmox balloon min

Verify in this order

demand measured → host adds/removes memory → guest

Where it usually breaks

First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.

VM Hardware → Memory → Dynamic Memory reference map

BoundaryMeaningEvidence limit
MinimumLower policy boundNot target under all conditions
StartupInitial assignmentMay differ from steady state
MaximumUpper policy boundNot reservation
AssignedCurrent memory providedTime-varying

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

Confirmation

Confirm action

Continue?