sched/fair: Add cfs bandwidth burst statistics
authorHuaixin Chang <changhuaixin@linux.alibaba.com>
Mon, 30 Aug 2021 03:22:14 +0000 (11:22 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Oct 2021 13:51:40 +0000 (15:51 +0200)
commitbcb1704a1ed2de580a46f28922e223a65f16e0f5
tree5b33b07af19e88ce693c70fb5bff4570ff775451
parent2cae3948edd488ebdef4deaf1d1043f92f47e665
sched/fair: Add cfs bandwidth burst statistics

Two new statistics are introduced to show the internal of burst feature
and explain why burst helps or not.

nr_bursts:  number of periods bandwidth burst occurs
burst_time: cumulative wall-time (in nanoseconds) that any cpus has
    used above quota in respective periods

Co-developed-by: Shanpei Chen <shanpeic@linux.alibaba.com>
Signed-off-by: Shanpei Chen <shanpeic@linux.alibaba.com>
Co-developed-by: Tianchen Ding <dtcccc@linux.alibaba.com>
Signed-off-by: Tianchen Ding <dtcccc@linux.alibaba.com>
Signed-off-by: Huaixin Chang <changhuaixin@linux.alibaba.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20210830032215.16302-2-changhuaixin@linux.alibaba.com
kernel/sched/core.c
kernel/sched/fair.c
kernel/sched/sched.h