]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgroup: Polish hierarchically aware protection docs a bit
authorChris Down <chris@chrisdown.name>
Tue, 30 Apr 2019 18:22:04 +0000 (14:22 -0400)
committerChris Down <chris@chrisdown.name>
Wed, 8 May 2019 11:06:32 +0000 (12:06 +0100)
I missed adding a section in `systemd.resource-control` about
DefaultMemoryMin in #12332.

Also, add a NEWS entry going over the general concept.

NEWS
docs/TRANSIENT-SETTINGS.md
man/systemd.resource-control.xml

diff --git a/NEWS b/NEWS
index 057484cbae83ba76915655f51ffce87179a87145..57ed27a61d599072170819cf34f503bcfcaa17ae 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,11 @@ CHANGES WITH 243 in spe:
           are harder to type, but we believe the change from 5 digit PIDs to 7
           digit PIDs is not too hampering for usability.
 
+        * MemoryLow and MemoryMin gained hierarchy-aware counterparts,
+          DefaultMemoryLow and DefaultMemoryMin, which can be used to
+          hierarchically set default memory protection values for a particular
+          subtree of the unit hierarchy.
+
           …
 
 CHANGES WITH 242:
index 3aa68c0a2629d18766547f5d33545f4f06601294..469ef7ce31563c9e160ac34ff327fe31bd412a90 100644 (file)
@@ -227,6 +227,7 @@ All cgroup/resource control settings are available for transient units
 ✓ CPUQuota=
 ✓ CPUQuotaPeriodSec=
 ✓ MemoryAccounting=
+✓ DefaultMemoryMin=
 ✓ MemoryMin=
 ✓ DefaultMemoryLow=
 ✓ MemoryLow=
index e7fb46873c3af24d3654e73b2ddd30aacad0ab90..95209a8a6aa39b1f1a1ce647d610a31f8bdc2132 100644 (file)
 
           <para>This setting is supported only if the unified control group hierarchy is used and disables
           <varname>MemoryLimit=</varname>.</para>
+
+          <para>Units may have their children use a default <literal>memory.min</literal> value by specifying
+          <varname>DefaultMemoryMin=</varname>, which has the same semantics as <varname>MemoryMin=</varname>. This setting
+          does not affect <literal>memory.min</literal> in the unit itself.</para>
         </listitem>
       </varlistentry>
 
           <para>This setting is supported only if the unified control group hierarchy is used and disables
           <varname>MemoryLimit=</varname>.</para>
 
-          <para>Units may can have their children use a default <literal>memory.low</literal> value by specifying
-          <varname>DefaultMemoryLow=</varname>, which has the same usage as <varname>MemoryLow=</varname>. This setting
+          <para>Units may have their children use a default <literal>memory.low</literal> value by specifying
+          <varname>DefaultMemoryLow=</varname>, which has the same semantics as <varname>MemoryLow=</varname>. This setting
           does not affect <literal>memory.low</literal> in the unit itself.</para>
         </listitem>
       </varlistentry>