Re: [PATCH v3] cgroup/cpu: document cpu.stat.local and clarify cpu.stat behavior

From: Michal Koutný

Date: Mon Jun 29 2026 - 09:50:38 EST


On Mon, Jun 29, 2026 at 02:06:36PM +0800, Sun Shaojie <sunshaojie@xxxxxxxxxx> wrote:
> Add documentation for the cpu.stat.local interface file, which reports
> the throttled_usec stat -- the actual throttling time incurred by the
> cgroup's own runqueues, which may include throttling inherited from
> ancestor cgroup bandwidth limits. Unlike cpu.stat's throttled_usec
> which only accounts for throttling caused by the cgroup's own CFS
> bandwidth limit.
>
> When the controller is not enabled, the stat is not reported.
>
> Also clarify cpu.stat descriptions: note that the three base CPU usage
> stats (usage_usec, user_usec, system_usec) include descendant cgroups,
> and that the five CFS bandwidth stats are non-hierarchical -- they only
> account for throttling caused by the cgroup's own bandwidth limit.
>
> Signed-off-by: Sun Shaojie <sunshaojie@xxxxxxxxxx>
> ---
> Changes in v3:
> - Clarify that the three base CPU usage stats include descendant
> cgroups.
> - Add a note explaining that the five CFS bandwidth stats are
> non-hierarchical.
> ---
> Documentation/admin-guide/cgroup-v2.rst | 23 ++++++++++++++++++++++-
> 1 file changed, 22 insertions(+), 1 deletion(-)

Acked-by: Michal Koutný <mkoutny@xxxxxxxx>

Thanks!

Attachment: signature.asc
Description: PGP signature