Memory
Cheat sheet · https://pcornel.dk/topic.php?topic=3455
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 statsGet-VMMemory <vm>— Hyper-V memory configfree -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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Configured memory | Guest memory policy/limit | Control-plane value |
| Host backing | Physical/virtual host pages | Can vary |
| Guest memory | OS-visible/managed RAM | Guest perspective |
| Workload | Consumes memory | Outcome 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