Tuning virtual memory
A configured soft limit allows the host to limit the physical host memory resources used for the virtual server memory in case the host experiences high swapping activity.
About this task
For more information about memory tuning, see Memory management.
Procedure
Use the memtune element to group memory tuning elements.
Specify a soft limit by using the soft_limit element (see <soft_limit>).
| soft_limit element: | <soft-limit-size> |
| soft_limit unit attribute: | <unit of the soft-limit-size> |
Example
<domain type="kvm">
<name>vserv1</name>
....
<memory unit="MB">512</memory>
<memtune>
<soft_limit unit="MB">256</soft_limit>
</memtune>
...
</domain>
The memory configured for virtual server vserv1 is 512 MB. In case the host is under memory pressure, it might limit the physical host memory usage of vserv1 to 256 MB.