memtune

Specifies a soft limit for the physical host memory requirements of the virtual server memory.

Syntax


1  memtune!  --domain <VS>?   --soft-limit <limit-in-KB>
Where:
<limit-in-KB>
Is the minimum physical host memory in kilobytes remaining available for the virtual server memory in case the physical host memory resources are reduced.
<VS>
Is the name, ID, or UUID of the virtual server.

Selected options

--soft-limit
Specifies the minimum physical host memory remaining available for the virtual server in case the memory resources are reduced.
Warning: Do not use the options --hard-limit and --swap_hard_limit. Their use might lead to a virtual server crash.

Usage

Example

This example allows the host to limit the physical host memory usage of vserv1 memory to 256 MB in case the host is under memory pressure:
# virsh memtune vserv1 --soft-limit 256000
This example displays the memory tuning parameters of vserv1. Be sure not to modify the hard_limit and swap_hard_limit parameters.
# virsh memtune vserv1
hard_limit     : unlimited
soft_limit     : 256000
swap_hard_limit: unlimited