From b62087d4d06777ccde9eb9e7a97abc7b8945d5f5 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Mon, 30 Sep 2019 14:23:32 +0100 Subject: [PATCH] cgroup: docs: Mention unbounded protection for memory.{low,min} I got asked why Memory{Low,Min} don't allow "infinity". They do, but the docs don't say that like they already do for Memory{High,Max}. --- man/systemd.resource-control.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index 98a0741359..a832587fa8 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -269,7 +269,9 @@ Takes a memory size in bytes. If the value is suffixed with K, M, G or T, the specified memory size is 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 installed physical memory on the - system. This controls the memory.min control group attribute. For details about this + system. If assigned the special value infinity, all available memory is protected, which may be + useful in order to always inherit all of the protection afforded by ancestors. + This controls the memory.min control group attribute. For details about this control group attribute, see cgroup-v2.txt. @@ -293,7 +295,9 @@ Takes a memory size in bytes. If the value is suffixed with K, M, G or T, the specified memory size is 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 installed physical memory on the - system. This controls the memory.low control group attribute. For details about this + system. If assigned the special value infinity, all available memory is protected, which may be + useful in order to always inherit all of the protection afforded by ancestors. + This controls the memory.low control group attribute. For details about this control group attribute, see cgroup-v2.txt.