Pcornel
Virtualization · VM Hardware

Memory

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

Back to the Topic

Answer

VM memory configuration defines the addressable memory presented to the guest. Depending on platform/configuration, the active host backing can be fixed, dynamically adjusted, reclaimed or overcommitted.

Remember

  • Configured memory is not always equal to current host physical backing.
  • Guest free/used memory and host memory pressure are different views.
  • Dynamic memory/ballooning can change the effective memory available to the guest.
  • NUMA and huge-page choices can influence placement and performance.

First checks

  • virsh dommemstat <vm> — VM memory stats
  • Get-VMMemory <vm> — Hyper-V memory config
  • free -m — guest view

Verify in this order

config → host allocation → guest view

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 reference map

BoundaryMeaningEvidence limit
Configured memoryGuest memory policy/limitControl-plane value
Host backingPhysical/virtual host pagesCan vary
Guest memoryOS-visible/managed RAMGuest perspective
WorkloadConsumes memoryOutcome must be measured

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

Confirmation

Confirm action

Continue?