Skip to content

Commit c916929

Browse files
Xiu Jianfenghtejun
authored andcommitted
docs, cgroup: add entries for pids to cgroup-v2.rst
This patch add two entries (pids.peak and pids.events) for pids controller, and also update pids.current because it's on non-root. Signed-off-by: Xiu Jianfeng <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 15a0b5f commit c916929

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Documentation/admin-guide/cgroup-v2.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,11 +2184,25 @@ PID Interface Files
21842184
Hard limit of number of processes.
21852185

21862186
pids.current
2187-
A read-only single value file which exists on all cgroups.
2187+
A read-only single value file which exists on non-root cgroups.
21882188

21892189
The number of processes currently in the cgroup and its
21902190
descendants.
21912191

2192+
pids.peak
2193+
A read-only single value file which exists on non-root cgroups.
2194+
2195+
The maximum value that the number of processes in the cgroup and its
2196+
descendants has ever reached.
2197+
2198+
pids.events
2199+
A read-only flat-keyed file which exists on non-root cgroups. The
2200+
following entries are defined. Unless specified otherwise, a value
2201+
change in this file generates a file modified event.
2202+
2203+
max
2204+
Number of times fork failed because limit was hit.
2205+
21922206
Organisational operations are not blocked by cgroup policies, so it is
21932207
possible to have pids.current > pids.max. This can be done by either
21942208
setting the limit to be smaller than pids.current, or attaching enough

0 commit comments

Comments
 (0)