Skip to content

Exposing nice CPU usage to userspace

Joshua Hahn [email protected] cgroups linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Tracking cgroup-level niced CPU timeinclude/linux/cgroup-defs.h kernel/cgroup/rstat.c+14 -32 replies
2/2Selftests for niced CPU statisticstools/testing/selftests/cgroup/test_cpu.c+72 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

From: Joshua Hahn <[email protected]>

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 processes based on /proc/stat alone, since host-level metrics do not provide this cgroup-level granularity.

Exposing this metric will allow load balancers to correctly probe the niced CPU metric for each workload, and make more informed decisions when directing higher priority tasks.

Joshua Hahn (2):
Tracking cgroup-level niced CPU time
Selftests for niced CPU statistics

 include/linux/cgroup-defs.h               |  1 +
 kernel/cgroup/rstat.c                     | 16 ++++-
 tools/testing/selftests/cgroup/test_cpu.c | 72 +++++++++++++++++++++++
 3 files changed, 86 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.5