memtune
--domain
domain-identifier
--hard-limit
kb
--soft-limit
kb
--swap-hard-limit
kb
--min-guarantee
kb
Name | Required? | Description |
---|---|---|
--domain domain-identifier
|
required
|
The name, id, or UUID of the guest domain
The word "--domain" itself is optional.
|
--hard-limit kb
|
optional
|
Maximum memory the guest domain can use, in kilobytes. QEMU and LXC only.
|
--soft-limit kb
|
optional
|
Minimum memory guaranteed for the guest domain during contention, in kilobytes. QEMU and LXC only.
|
--swap-hard-limit kb
|
optional
|
Maximum swap memory the guest domain can use, in kilobytes. QEMU and LXC only.
|
--min-guarantee kb
|
optional
|
Minimum amount of memory required to start a guest domain, in kilobytes. VMware ESX and vSphere only.
|
virsh # memtune domain-id
virsh # memtune domain-id --hard-limit kilobytes
virsh # memtune domain-id --soft-limit kilobytes
virsh # memtune domain-id --swap-hard-limit kilobytes
<memtune> <hard_limit>131072</hard_limit> <soft_limit>65536</soft_limit> <swap_hard_limit>262144</swap_hard_limit> </memtune>
virsh # memtune lxcbb1 hard_limit : 131072 soft_limit : 65536 swap_hard_limit: 262144
virsh # memtune lxcbb1 --hard-limit 262144
virsh # memtune lxcbb1 hard_limit : 262144 soft_limit : 65536 swap_hard_limit: 262144