I suggest reading through the /proc/*/sched files looking for se.statistics.nr_wakeups or se.statistics.wait_count lines that don't change for an hour. I don't know off-hand which one would give you 'better' results, but try both :) and see which one gives you answers like you expect.
发布评论
评论(1)
/proc/pid/sched
文件包含大量调度数据:我建议通读
/proc/*/sched
文件,查找se.statistics .nr_wakeups
或se.statistics.wait_count
行一小时内不会发生变化。我不知道哪一个会给你“更好”的结果,但尝试两者:),看看哪一个给你像你期望的答案。The
/proc/pid/sched
file contains a metric ton of scheduling data:I suggest reading through the
/proc/*/sched
files looking forse.statistics.nr_wakeups
orse.statistics.wait_count
lines that don't change for an hour. I don't know off-hand which one would give you 'better' results, but try both :) and see which one gives you answers like you expect.