Commit aefa398d authored by Joshua Hahn's avatar Joshua Hahn Committed by Tejun Heo
Browse files

cgroup/rstat: Tracking cgroup-level niced CPU time



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 facilitate more informed workload distribution.

A new field 'ntime' is added to struct cgroup_base_stat as opposed to
struct task_cputime to minimize footprint.

Signed-off-by: default avatarJoshua Hahn <joshua.hahnjy@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 95a616d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment