mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09: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 %.
This commit is contained in:
committed by
Luca Boccassi
parent
8c28dd2442
commit
8af38e5b04
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user