Re: [PATCH] docs: cgroup-v2: fix misc.events key format description

From: Michal Koutný

Date: Mon Aug 24 2026 - 07:19:11 EST


Hi Lingfei.

On Mon, Aug 24, 2026 at 06:55:04PM +0800, Cheng Lingfei via B4 Relay <devnull+chenglingfei.foxmail.com@xxxxxxxxxx> 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: signature.asc
Description: PGP signature