Skip to content

Commit 689bca3

Browse files
gthelenJiri Kosina
authored andcommitted
memcg: clarify use_hierarchy documentation
The memcg code does not allow changing memory.use_hierarchy if the parent cgroup has enabled use_hierarchy. Update documentation to match the code. Signed-off-by: Greg Thelen <gthelen@google.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent c23cf8b commit 689bca3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎Documentation/cgroups/memory.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,9 @@ The feature can be disabled by
485485

486486
# echo 0 > memory.use_hierarchy
487487

488-
NOTE1: Enabling/disabling will fail if the cgroup already has other
489-
cgroups created below it.
488+
NOTE1: Enabling/disabling will fail if either the cgroup already has other
489+
cgroups created below it, or if the parent cgroup has use_hierarchy
490+
enabled.
490491

491492
NOTE2: When panic_on_oom is set to "2", the whole system will panic in
492493
case of an OOM event in any cgroup.

0 commit comments

Comments
 (0)