From 8af38e5b0475f514141d314088dcf9fffd7edc37 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 3 Jul 2024 14:19:08 +0200 Subject: [PATCH] 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 %. --- man/systemd.resource-control.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index 3773a38d62..2ffc279a35 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.