mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
Document that MemorySwapMax supports % configuration
Certainly on systemd 252 at least a configuration of ``` MemorySwapMax=40% ``` is supported but this was missing from the man page. Only MemoryMax was documented as supporting a %. (cherry picked from commit 8af38e5b0475f514141d314088dcf9fffd7edc37)
This commit is contained in:
parent
1922d49fd6
commit
766af3f782
@ -462,7 +462,8 @@ CPUWeight=20 DisableControllers=cpu / \
|
||||
<para>Specify the absolute limit on swap usage of the executed processes in this unit.</para>
|
||||
|
||||
<para>Takes a swap size in bytes. If the value is suffixed with K, M, G or T, the specified swap size is
|
||||
parsed as Kilobytes, Megabytes, Gigabytes, or Terabytes (with the base 1024), respectively. If assigned the
|
||||
parsed as Kilobytes, Megabytes, Gigabytes, or Terabytes (with the base 1024), respectively. Alternatively, a
|
||||
percentage value may be specified, which is taken relative to the specified swap size on the system. If assigned the
|
||||
special value <literal>infinity</literal>, no swap limit is applied. These settings control the
|
||||
<literal>memory.swap.max</literal> control group attribute. For details about this control group attribute,
|
||||
see <ulink url="https://docs.kernel.org/admin-guide/cgroup-v2.html#memory-interface-files">Memory Interface Files</ulink>.</para>
|
||||
|
Loading…
x
Reference in New Issue
Block a user