aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2015-09-18 17:54:22 -0400
committerTejun Heo <tj@kernel.org>2015-09-18 17:54:22 -0400
commit4a07c222d3afb00e1113834fee38d23a8e5d71dc (patch)
tree10000327cd4426ba55b75b5c9d8954a8bd0bf2a5 /Documentation
parent9e10a130d9b62af976d17d120c95f3650769312c (diff)
cgroup: replace "cgroup.populated" with "cgroup.events"
memcg already uses "memory.events" for event reporting and other controllers may need event reporting too. Let's standardize on "$SUBSYS.events" interface file for reporting events which don't happen too frequently and thus can share event notification. "cgroup.populated" is replaced with "populated" field in "cgroup.events" and documentation is updated accordingly. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Li Zefan <lizefan@huawei.com> Cc: Johannes Weiner <hannes@cmpxchg.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/cgroups/unified-hierarchy.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/Documentation/cgroups/unified-hierarchy.txt b/Documentation/cgroups/unified-hierarchy.txt
index e0975c2cf03d..176b940f8327 100644
--- a/Documentation/cgroups/unified-hierarchy.txt
+++ b/Documentation/cgroups/unified-hierarchy.txt
@@ -341,11 +341,11 @@ is riddled with issues.
341 unnecessarily complicated and probably done this way because event 341 unnecessarily complicated and probably done this way because event
342 delivery itself was expensive. 342 delivery itself was expensive.
343 343
344Unified hierarchy implements an interface file "cgroup.populated" 344Unified hierarchy implements "populated" field in "cgroup.events"
345which can be used to monitor whether the cgroup's subhierarchy has 345interface file which can be used to monitor whether the cgroup's
346tasks in it or not. Its value is 0 if there is no task in the cgroup 346subhierarchy has tasks in it or not. Its value is 0 if there is no
347and its descendants; otherwise, 1. poll and [id]notify events are 347task in the cgroup and its descendants; otherwise, 1. poll and
348triggered when the value changes. 348[id]notify events are triggered when the value changes.
349 349
350This is significantly lighter and simpler and trivially allows 350This is significantly lighter and simpler and trivially allows
351delegating management of subhierarchy - subhierarchy monitoring can 351delegating management of subhierarchy - subhierarchy monitoring can
@@ -435,6 +435,11 @@ may be specified in any order and not all pairs have to be specified.
435 the first entry in the file. Specific entries can use "default" as 435 the first entry in the file. Specific entries can use "default" as
436 its value to indicate inheritance of the default value. 436 its value to indicate inheritance of the default value.
437 437
438- For events which are not very high frequency, an interface file
439 "events" should be created which lists event key value pairs.
440 Whenever a notifiable event happens, file modified event should be
441 generated on the file.
442
438 443
4395-4. Per-Controller Changes 4445-4. Per-Controller Changes
440 445