forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
sched/core: Force idle accounting per cgroup
Accounting for "force idle" time per cgroup, which is the time the tasks of the cgroup forced its SMT siblings into idle. Force idle time per cgroup is displayed via /sys/fs/cgroup/cpuacct/$cg/cpuacct.forceidle. Force idle time per cgroup per cpu is displayed via /sys/fs/cgroup/cpuacct/$cg/cpuacct.forceidle_percpu. The unit is ns. It also requires that schedstats is enabled. We can get the total system forced idle time by looking at the root cgroup, and we can get how long the cgroup forced it SMT siblings into idle. If the force idle time of a cgroup is high, that can be rectified by making some changes(ie. affinity, cpu budget, etc.) to the cgroup. Signed-off-by: Cruz Zhao <CruzZhao@linux.alibaba.com>
- Loading branch information
1 parent
41abb28
commit 363ef949b487441383f2719bdff3dc9156779565
Showing
3 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters