Virsh Memory Commands
virsh memtune
Get or set memory parametersvirsh setmaxmem VM_MACHINE 16G
(VM must be stopped) change maximum memory limitvirsh setmem VM_MACHINE 8G
(VM must be running) change memory allocationvirsh dommemstat
VM_MACHINE get memory statistics for a domainvirsh freecell
NUMA free memoryvirsh node-memory-tune
Get or set node memory parametersvirsh nodememstats
Prints memory stats of the node.
Related commands
virsh dominfo VM_MACHINE | grep memory
virsh dominfo VM_MACHINE | grep "CPU(s)"
virsh setvcpu
virsh domstats --memory
(Added inlibvirt
v6.0.0 (2020-01-15))
Related changelog
- QEMU 4.2.0.12/12/2019 ARM: “virt” machine now supports memory hotplugging
See also
- virsh Memory Commands:
virsh setmaxmem
,virsh setmem
,virsh dommemstat
virsh
: Storage information, Connecting, Operations, Memory, Snapshots, Networking, CPU, release notes,virsh nodedev-list
- KVM, Installation, QEMU,
virsh
,virtinst
,libguestfs-tools
, libvirt, qemu, Red Hat Virtualization (RHV), MacVTap, Virtio, oVirt, KVM services, KVM networking, KVM graphics, CPU, KVM on ARM - Memory: memory pages, RAM, virsh Memory Commands, OOM, meminfo,
vmstat
, NAND, DDR,lsmem
,/dev/shm
,/proc/meminfo
,sar -r
, IOMMU,pmem
, Memory management, Garbage collector, THP, Linux Huge Page TLB
Advertising: