Linux: config: getdelays; TASK_DELAY_ACCT;CONFIG_TASKSTATS;CONFIG_SCHEDSTATS;CONFIG_SCHED_INFO

参考

https://davejingtian.org/2016/09/06/getdelays-get-delay-accounting-information-from-the-kernel/
https://www.kernel.org/doc/html/latest/accounting/delay-accounting.html

疑问

为什么没有将这个getdelay上做到其他rpm包里,方便使用。不然的话还需个人来现编译才能用。可能的原因是,功能单一,作用不是很明显。而且即使可以知道哪里有delay,还需要依靠其他的工具继续做调试。To find the performance bottleneck, strace/ltrace/dtrace/lttng/perf/gprof should be considered as the next step。但是这个工具,可以给出一个概览出来,其实还是比较适合做debug用。所依赖的config也还是不少。

nodelayacct

可以在内核启动的cmdline里加入这个参数来,取消延迟计数的功能。

getdelays

这里的CPU count是取的:tsk->sched_info.pcount; 这个值
下面的count值是每个类型实际的执

猜你喜欢

转载自blog.csdn.net/qq_36428903/article/details/132940010