dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
c2dfb7
From 556375ae1d8d0b460d691888f2fb7ea520fe9a6b Mon Sep 17 00:00:00 2001
c2dfb7
From: Chris Down <chris@chrisdown.name>
c2dfb7
Date: Tue, 30 Apr 2019 14:22:04 -0400
c2dfb7
Subject: [PATCH] cgroup: Polish hierarchically aware protection docs a bit
c2dfb7
c2dfb7
I missed adding a section in `systemd.resource-control` about
c2dfb7
DefaultMemoryMin in #12332.
c2dfb7
c2dfb7
Also, add a NEWS entry going over the general concept.
c2dfb7
c2dfb7
(cherry picked from commit acdb4b5236f38bbefbcc4a47fdbb9cd558b4b5c5)
c2dfb7
c2dfb7
Related: #1763435
c2dfb7
---
c2dfb7
 doc/TRANSIENT-SETTINGS.md        | 1 +
c2dfb7
 man/systemd.resource-control.xml | 8 ++++++--
c2dfb7
 2 files changed, 7 insertions(+), 2 deletions(-)
c2dfb7
c2dfb7
diff --git a/doc/TRANSIENT-SETTINGS.md b/doc/TRANSIENT-SETTINGS.md
c2dfb7
index 5a8fa0727e..1a4e79190a 100644
c2dfb7
--- a/doc/TRANSIENT-SETTINGS.md
c2dfb7
+++ b/doc/TRANSIENT-SETTINGS.md
c2dfb7
@@ -222,6 +222,7 @@ All cgroup/resource control settings are available for transient units
c2dfb7
 ✓ AllowedCPUs=
c2dfb7
 ✓ AllowedMemoryNodes=
c2dfb7
 ✓ MemoryAccounting=
c2dfb7
+✓ DefaultMemoryMin=
c2dfb7
 ✓ MemoryMin=
c2dfb7
 ✓ DefaultMemoryLow=
c2dfb7
 ✓ MemoryLow=
c2dfb7
diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml
c2dfb7
index 27f16001dd..d3bff29169 100644
c2dfb7
--- a/man/systemd.resource-control.xml
c2dfb7
+++ b/man/systemd.resource-control.xml
c2dfb7
@@ -283,6 +283,10 @@
c2dfb7
 
c2dfb7
           <para>This setting is supported only if the unified control group hierarchy is used and disables
c2dfb7
           <varname>MemoryLimit=</varname>.</para>
c2dfb7
+
c2dfb7
+          <para>Units may have their children use a default <literal>memory.min</literal> value by specifying
c2dfb7
+          <varname>DefaultMemoryMin=</varname>, which has the same semantics as <varname>MemoryMin=</varname>. This setting
c2dfb7
+          does not affect <literal>memory.min</literal> in the unit itself.</para>
c2dfb7
         </listitem>
c2dfb7
       </varlistentry>
c2dfb7
 
c2dfb7
@@ -306,8 +310,8 @@
c2dfb7
           <para>This setting is supported only if the unified control group hierarchy is used and disables
c2dfb7
           <varname>MemoryLimit=</varname>.</para>
c2dfb7
 
c2dfb7
-          <para>Units may can have their children use a default <literal>memory.low</literal> value by specifying
c2dfb7
-          <varname>DefaultMemoryLow=</varname>, which has the same usage as <varname>MemoryLow=</varname>. This setting
c2dfb7
+          <para>Units may have their children use a default <literal>memory.low</literal> value by specifying
c2dfb7
+          <varname>DefaultMemoryLow=</varname>, which has the same semantics as <varname>MemoryLow=</varname>. This setting
c2dfb7
           does not affect <literal>memory.low</literal> in the unit itself.</para>
c2dfb7
         </listitem>
c2dfb7
       </varlistentry>