* [PATCH -next] docs, cgroup: add entries for pids to cgroup-v2.rst
@ 2024-04-18 12:30 Xiu Jianfeng
2024-04-18 16:00 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: Xiu Jianfeng @ 2024-04-18 12:30 UTC (permalink / raw
To: tj, lizefan.x, hannes, corbet; +Cc: cgroups, linux-doc, linux-kernel
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 <xiujianfeng@huawei.com>
---
Documentation/admin-guide/cgroup-v2.rst | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
index d8b00f0ea96d..6f6fe744452e 100644
--- a/Documentation/admin-guide/cgroup-v2.rst
+++ b/Documentation/admin-guide/cgroup-v2.rst
@@ -2188,11 +2188,25 @@ PID Interface Files
Hard limit of number of processes.
pids.current
- A read-only single value file which exists on all cgroups.
+ A read-only single value file which exists on non-root cgroups.
The number of processes currently in the cgroup and its
descendants.
+ pids.peak
+ A read-only single value file which exists on non-root cgroups.
+
+ The maximum value that the number of processes in the cgroup and its
+ descendants has ever reached.
+
+ pids.events
+ A read-only flat-keyed file which exists on non-root cgroups. The
+ following entries are defined. Unless specified otherwise, a value
+ change in this file generates a file modified event.
+
+ max
+ Number of times fork failed because limit was hit.
+
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
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] docs, cgroup: add entries for pids to cgroup-v2.rst
2024-04-18 12:30 [PATCH -next] docs, cgroup: add entries for pids to cgroup-v2.rst Xiu Jianfeng
@ 2024-04-18 16:00 ` Tejun Heo
0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2024-04-18 16:00 UTC (permalink / raw
To: Xiu Jianfeng
Cc: lizefan.x, hannes, corbet, cgroups, linux-doc, linux-kernel,
Michal Koutný
(cc'ing Michal for potential conflict in the pids controller documentation)
On Thu, Apr 18, 2024 at 12:30:12PM +0000, Xiu Jianfeng wrote:
> 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 <xiujianfeng@huawei.com>
Applied to cgroup/for-6.10.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-18 16:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-18 12:30 [PATCH -next] docs, cgroup: add entries for pids to cgroup-v2.rst Xiu Jianfeng
2024-04-18 16:00 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).