diff options
author | Tejun Heo <tj@kernel.org> | 2015-09-18 17:54:22 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-09-18 17:54:22 -0400 |
commit | 4a07c222d3afb00e1113834fee38d23a8e5d71dc (patch) | |
tree | 10000327cd4426ba55b75b5c9d8954a8bd0bf2a5 /Documentation | |
parent | 9e10a130d9b62af976d17d120c95f3650769312c (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.txt | 15 |
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 | ||
344 | Unified hierarchy implements an interface file "cgroup.populated" | 344 | Unified hierarchy implements "populated" field in "cgroup.events" |
345 | which can be used to monitor whether the cgroup's subhierarchy has | 345 | interface file which can be used to monitor whether the cgroup's |
346 | tasks in it or not. Its value is 0 if there is no task in the cgroup | 346 | subhierarchy has tasks in it or not. Its value is 0 if there is no |
347 | and its descendants; otherwise, 1. poll and [id]notify events are | 347 | task in the cgroup and its descendants; otherwise, 1. poll and |
348 | triggered when the value changes. | 348 | [id]notify events are triggered when the value changes. |
349 | 349 | ||
350 | This is significantly lighter and simpler and trivially allows | 350 | This is significantly lighter and simpler and trivially allows |
351 | delegating management of subhierarchy - subhierarchy monitoring can | 351 | delegating 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 | ||
439 | 5-4. Per-Controller Changes | 444 | 5-4. Per-Controller Changes |
440 | 445 | ||