* [PATCH] docs: cgroup-v2: fix misc.events key format description
@ 2026-08-24 10:55 Cheng Lingfei via B4 Relay
2026-08-24 11:15 ` Michal Koutný
0 siblings, 1 reply; 2+ messages in thread
From: Cheng Lingfei via B4 Relay @ 2026-08-24 10:55 UTC (permalink / raw)
To: Tejun Heo, Johannes Weiner, Michal Koutný, Jonathan Corbet,
Shuah Khan, Randy Dunlap
Cc: cgroups, linux-doc, linux-kernel, Cheng Lingfei
From: Cheng Lingfei <chenglingfei@foxmail.com>
In misc cgroup, misc.events does not output a simple "max" key. Instead,
each registered misc resource outputs a separate key suffixed with ".max"
(e.g., "res_a.max <val>").
Update the documentation to clarify the per-resource nature of the events
file and provide an example matching the rest of the Misc section.
Signed-off-by: Cheng Lingfei <chenglingfei@foxmail.com>
---
Documentation/admin-guide/cgroup-v2.rst | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
index 7c2a8ed80..cfd6cdc0e 100644
--- a/Documentation/admin-guide/cgroup-v2.rst
+++ b/Documentation/admin-guide/cgroup-v2.rst
@@ -3059,14 +3059,17 @@ resources (res_a and res_b) are registered then:
file.
misc.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. All fields in
- this file are hierarchical.
+ A read-only flat-keyed file which exists on non-root cgroups. It
+ shows, per resource, the number of times the resource usage of the
+ cgroup and its children was about to go over the max boundary.
+ Unless specified otherwise, a value change in this file generates a
+ file modified event. All fields in this file are hierarchical::
- max
- The number of times the cgroup's resource usage was
- about to go over the max boundary.
+ $ cat misc.events
+ res_a.max 0
+ res_b.max 0
+
+ Each entry is keyed by the resource name suffixed with ``.max``.
misc.events.local
Similar to misc.events but the fields in the file are local to the
---
base-commit: 0a0d1d55dad570724bf8c7ea83409639cfb4be9b
change-id: 20260824-master-0bec5f79e6c8
Best regards,
--
Cheng Lingfei <chenglingfei@foxmail.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] docs: cgroup-v2: fix misc.events key format description
2026-08-24 10:55 [PATCH] docs: cgroup-v2: fix misc.events key format description Cheng Lingfei via B4 Relay
@ 2026-08-24 11:15 ` Michal Koutný
0 siblings, 0 replies; 2+ messages in thread
From: Michal Koutný @ 2026-08-24 11:15 UTC (permalink / raw)
To: chenglingfei
Cc: Tejun Heo, Johannes Weiner, Jonathan Corbet, Shuah Khan,
Randy Dunlap, cgroups, linux-doc, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]
Hi Lingfei.
On Mon, Aug 24, 2026 at 06:55:04PM +0800, Cheng Lingfei via B4 Relay <devnull+chenglingfei.foxmail.com@kernel.org> wrote:
> misc.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. All fields in
> - this file are hierarchical.
> + A read-only flat-keyed file which exists on non-root cgroups. It
> + shows, per resource, the number of times the resource usage of the
> + cgroup and its children was about to go over the max boundary.
> + Unless specified otherwise, a value change in this file generates a
> + file modified event. All fields in this file are hierarchical::
>
> - max
> - The number of times the cgroup's resource usage was
> - about to go over the max boundary.
> + $ cat misc.events
> + res_a.max 0
> + res_b.max 0
> +
> + Each entry is keyed by the resource name suffixed with ``.max``.
I reckon the docs won't list the key names verbatim. The proposed change
somewhat hides the potentiality of multiple types of events.
To correct the printed key name, I think a smaller change would make do.
@@ -2991,7 +2991,7 @@ resources (res_a and res_b) are registered then:
change in this file generates a file modified event. All fields in
this file are hierarchical.
- max
+ <res>.max
The number of times the cgroup's resource usage was
about to go over the max boundary.
Thanks,
Michal
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-24 11:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24 10:55 [PATCH] docs: cgroup-v2: fix misc.events key format description Cheng Lingfei via B4 Relay
2026-08-24 11:15 ` Michal Koutný
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox