From: Steve Traylen Date: Wed, 3 Jul 2024 12:19:08 +0000 (+0200) Subject: Document that MemorySwapMax supports % configuration X-Git-Tag: v257-rc1~851 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8af38e5b0475f514141d314088dcf9fffd7edc37;p=thirdparty%2Fsystemd.git 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 %. --- diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index 3773a38d628..2ffc279a35f 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -462,7 +462,8 @@ CPUWeight=20 DisableControllers=cpu / \ Specify the absolute limit on swap usage of the executed processes in this unit. 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 infinity, no swap limit is applied. These settings control the memory.swap.max control group attribute. For details about this control group attribute, see Memory Interface Files.