Re: [PATCH 0/2] Exposing nice CPU usage to userspace

2024-08-26 Thread Joshua Hahn
Hello, thank you for reviewing the patch. On Mon, Aug 26, 2024 at 10:43 AM Michal Koutný wrote: > The difference between the two metrics is in cputime.c: > index = (task_nice(p) > 0) ? CPUTIME_NICE : CPUTIME_USER; > > > Exposing this metric will allow load balancers to correctly probe the

Re: [PATCH 0/2] Exposing nice CPU usage to userspace

2024-08-26 Thread Michal Koutný
Hello. On Fri, Aug 23, 2024 at 01:05:16PM GMT, joshuahahnjoshua.ha...@gmail.com wrote: > Niced CPU usage is a metric reported in host-level /proc/stat, but is > not reported in cgroup-level statistics in cpu.stat. However, when a > host contains multiple tasks across different workloads, it become

[PATCH 0/2] Exposing nice CPU usage to userspace

2024-08-23 Thread Joshua
From: Joshua Hahn Niced CPU usage is a metric reported in host-level /proc/stat, but is not reported in cgroup-level statistics in cpu.stat. However, when a host contains multiple tasks across different workloads, it becomes difficult to gauage how much of the task is being spent on niced process