diff options
author | Michal Koutný <mkoutny@suse.com> | 2024-05-21 11:21:28 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-05-26 08:45:10 -1000 |
commit | 3f26a885a06805d456fc8a5f36fc3560ad831bf6 (patch) | |
tree | 32c628116daffa7b2729c4e5eb0c9ae1deaceea6 /Documentation/admin-guide/cgroup-v2.rst | |
parent | 385a635cacfe0d96d3b56633640a1ba65b3fddc3 (diff) | |
download | linux-3f26a885a06805d456fc8a5f36fc3560ad831bf6.tar.gz linux-3f26a885a06805d456fc8a5f36fc3560ad831bf6.tar.bz2 linux-3f26a885a06805d456fc8a5f36fc3560ad831bf6.zip |
cgroup/pids: Add pids.events.local
Hierarchical counting of events is not practical for watching when a
particular pids.max is being hit. Therefore introduce .local flavor of
events file (akin to memory controller) that collects only events
relevant to given cgroup.
The file is only added to the default hierarchy.
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Documentation/admin-guide/cgroup-v2.rst')
-rw-r--r-- | Documentation/admin-guide/cgroup-v2.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index c8390baef90b..f886c6ad704e 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -2220,6 +2220,11 @@ PID Interface Files The number of times the cgroup's total number of processes hit the pids.max limit (see also pids_localevents). + pids.events.local + Similar to pids.events but the fields in the file are local + to the cgroup i.e. not hierarchical. The file modified event + generated on this file reflects only the local events. + Organisational operations are not blocked by cgroup policies, so it is possible to have pids.current > pids.max. This can be done by either setting the limit to be smaller than pids.current, or attaching enough |