Static Memory
Cheat sheet · https://pcornel.dk/topic.php?topic=3456
Answer
With static memory, the VM is presented a defined memory size while running. Host implementation may still use paging, sharing or other mechanisms, so “static” describes VM assignment policy rather than guaranteed dedicated DRAM.
Remember
- Static memory keeps guest-visible assignment fixed during the run.
- Fixed assignment does not automatically mean physically reserved or locked RAM.
- Host overcommit/pressure can still affect backing depending on platform.
- A reboot/power cycle may be required for size changes when hot-add is not available.
First checks
qm config <vmid> | grep -E 'memory|balloon'— balloon 0 = static (Proxmox)Set-VMMemory <vm> -DynamicMemoryEnabled $false -StartupBytes 8GB— static (Hyper-V)virsh dumpxml <vm> | grep -E 'memory|currentMemory'— libvirt memory
Verify in this order
fixed allocation → guest sees full memory
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 → Static Memory reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Guest size | Fixed while VM runs | Static assignment |
| Host reservation | May or may not exist | Platform/policy dependent |
| Host pressure | Can still occur | Separate evidence |
| Resize | May need reboot/hot-add | Capability dependent |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3456