From acdb4b5236f38bbefbcc4a47fdbb9cd558b4b5c5 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Tue, 30 Apr 2019 14:22:04 -0400 Subject: [PATCH] cgroup: Polish hierarchically aware protection docs a bit I missed adding a section in `systemd.resource-control` about DefaultMemoryMin in #12332. Also, add a NEWS entry going over the general concept. --- NEWS | 5 +++++ docs/TRANSIENT-SETTINGS.md | 1 + man/systemd.resource-control.xml | 8 ++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 057484c..57ed27a 100644 --- 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: diff --git a/docs/TRANSIENT-SETTINGS.md b/docs/TRANSIENT-SETTINGS.md index 3aa68c0..469ef7c 100644 --- a/docs/TRANSIENT-SETTINGS.md +++ b/docs/TRANSIENT-SETTINGS.md @@ -227,6 +227,7 @@ All cgroup/resource control settings are available for transient units ✓ CPUQuota= ✓ CPUQuotaPeriodSec= ✓ MemoryAccounting= +✓ DefaultMemoryMin= ✓ MemoryMin= ✓ DefaultMemoryLow= ✓ MemoryLow= diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index e7fb468..95209a8 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -245,6 +245,10 @@ This setting is supported only if the unified control group hierarchy is used and disables MemoryLimit=. + + Units may have their children use a default memory.min value by specifying + DefaultMemoryMin=, which has the same semantics as MemoryMin=. This setting + does not affect memory.min in the unit itself. @@ -266,8 +270,8 @@ This setting is supported only if the unified control group hierarchy is used and disables MemoryLimit=. - Units may can have their children use a default memory.low value by specifying - DefaultMemoryLow=, which has the same usage as MemoryLow=. This setting + Units may have their children use a default memory.low value by specifying + DefaultMemoryLow=, which has the same semantics as MemoryLow=. This setting does not affect memory.low in the unit itself. -- 2.7.4