alinux: sched: Add cgroup's scheduling latency histograms
to #28739709
This patch adds cpuacct.cgroup_wait_latency interface. It exports the
histogram of the sched entity's schedule latency. Unlike wait_latency,
the sched entity is a cgroup rather than task.
This is useful when tasks are not directly clustered under one cgroup.
For examples:
cgroup1 --- cgroupA --- task1
--- cgroupB --- task2
cgroup2 --- cgroupC --- task3
--- cgroupD --- task4
This is a common cgroup hierarchy used by many applications. With
cgroup_wait_latency, we can just read from cgroup1 to know aggregated
wait latency information of task1 and task2.
The interface output format is identical to cpuacct.wait_latency.
Signed-off-by: NYihao Wu <wuyihao@linux.alibaba.com>
Acked-by: NMichael Wang <yun.wang@linux.alibaba.com>
Showing
想要评论请 注册 或 登录