summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2018-06-08 17:33:14 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-07-12 08:21:43 +0200
commit484226357789991de0b3363beb69258be06b4c92 (patch)
tree346b883c553860ce6d4b7b87f14a0493957760ba /man
parent11c9846e31b0091b07d20ccc664a24b5df88412c (diff)
downloadsystemd-484226357789991de0b3363beb69258be06b4c92.tar.gz
core: add MemoryMin
The kernel added support for a new cgroup memory controller knob memory.min in bf8d5d52ffe8 ("memcg: introduce memory.min") which was merged during v4.18 merge window. Add MemoryMin to support memory.min.
Diffstat (limited to 'man')
-rw-r--r--man/systemd.resource-control.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml
index af839a1ee0..8ebd162be7 100644
--- a/man/systemd.resource-control.xml
+++ b/man/systemd.resource-control.xml
@@ -217,6 +217,27 @@
</varlistentry>
<varlistentry>
+ <term><varname>MemoryMin=<replaceable>bytes</replaceable></varname></term>
+
+ <listitem>
+ <para>Specify the memory usage protection of the executed processes in this unit. If the memory usages of
+ this unit and all its ancestors are below their minimum boundaries, this unit's memory won't be reclaimed.</para>
+
+ <para>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 <literal>memory.min</literal> control group attribute. For details about this
+ control group attribute, see <ulink
+ url="https://www.kernel.org/doc/Documentation/cgroup-v2.txt">cgroup-v2.txt</ulink>.</para>
+
+ <para>Implies <literal>MemoryAccounting=true</literal>.</para>
+
+ <para>This setting is supported only if the unified control group hierarchy is used and disables
+ <varname>MemoryLimit=</varname>.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><varname>MemoryLow=<replaceable>bytes</replaceable></varname></term>
<listitem>