Re: [PATCH v3 1/2] cgroup/rstat: Tracking cgroup-level niced CPU time

2024-09-26 Thread Michal Koutný
On Mon, Sep 23, 2024 at 07:20:05AM GMT, Joshua Hahn wrote: > static void cgroup_base_stat_flush(struct cgroup *cgrp, int cpu) > @@ -535,7 +537,10 @@ void __cgroup_account_cputime_field(struct cgroup *cgrp, > > switch (index) { > case CPUTIME_USER: > + rstatc->bstat.cput

[PATCH v3 1/2] cgroup/rstat: Tracking cgroup-level niced CPU time

2024-09-23 Thread Joshua Hahn
From: Joshua Hahn Cgroup-level CPU statistics currently include time spent on user/system processes, but do not include niced CPU time (despite already being tracked). This patch exposes niced CPU time to the userspace, allowing users to get a better understanding of their hardware limits and can