Skip to content

Commit 5ff55bc

Browse files
traylenatorbluca
authored andcommitted
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 8af38e5) (cherry picked from commit 766af3f) (cherry picked from commit 69681c2)
1 parent adfc8d2 commit 5ff55bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

man/systemd.resource-control.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ CPUWeight=20 DisableControllers=cpu / \
437437
<para>Specify the absolute limit on swap usage of the executed processes in this unit.</para>
438438

439439
<para>Takes a swap size in bytes. If the value is suffixed with K, M, G or T, the specified swap size is
440-
parsed as Kilobytes, Megabytes, Gigabytes, or Terabytes (with the base 1024), respectively. If assigned the
440+
parsed as Kilobytes, Megabytes, Gigabytes, or Terabytes (with the base 1024), respectively. Alternatively, a
441+
percentage value may be specified, which is taken relative to the specified swap size on the system. If assigned the
441442
special value <literal>infinity</literal>, no swap limit is applied. These settings control the
442443
<literal>memory.swap.max</literal> control group attribute. For details about this control group attribute,
443444
see <ulink url="https://docs.kernel.org/admin-guide/cgroup-v2.html#memory-interface-files">Memory Interface Files</ulink>.</para>

0 commit comments

Comments
 (0)