Commit 3905cb6
committed
sched: Report the different kinds of imbalances in /proc/schedstat
JIRA: https://issues.redhat.com/browse/RHEL-24185
commit 3b2a793
Author: Swapnil Sapkal <swapnil.sapkal@amd.com>
Date: Fri Dec 20 06:32:21 2024 +0000
sched: Report the different kinds of imbalances in /proc/schedstat
In /proc/schedstat, lb_imbalance reports the sum of imbalances
discovered in sched domains with each call to sched_balance_rq(), which is
not very useful because lb_imbalance does not mention whether the imbalance
is due to load, utilization, nr_tasks or misfit_tasks. Remove this field
from /proc/schedstat.
Currently there is no field in /proc/schedstat to report different types
of imbalances. Introduce new fields in /proc/schedstat to report the
total imbalances in load, utilization, nr_tasks or misfit_tasks.
Added fields to /proc/schedstat:
- lb_imbalance_load: Total imbalance due to load.
- lb_imbalance_util: Total imbalance due to utilization.
- lb_imbalance_task: Total imbalance due to number of tasks.
- lb_imbalance_misfit: Total imbalance due to misfit tasks.
Signed-off-by: Swapnil Sapkal <swapnil.sapkal@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Link: https://lore.kernel.org/r/20241220063224.17767-4-swapnil.sapkal@amd.com
Signed-off-by: Phil Auld <pauld@redhat.com>1 parent e50f97d commit 3905cb6
3 files changed
+32
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11718 | 11718 | | |
11719 | 11719 | | |
11720 | 11720 | | |
| 11721 | + | |
| 11722 | + | |
| 11723 | + | |
| 11724 | + | |
| 11725 | + | |
| 11726 | + | |
| 11727 | + | |
| 11728 | + | |
| 11729 | + | |
| 11730 | + | |
| 11731 | + | |
| 11732 | + | |
| 11733 | + | |
| 11734 | + | |
| 11735 | + | |
| 11736 | + | |
| 11737 | + | |
| 11738 | + | |
| 11739 | + | |
| 11740 | + | |
| 11741 | + | |
| 11742 | + | |
11721 | 11743 | | |
11722 | 11744 | | |
11723 | 11745 | | |
| |||
11768 | 11790 | | |
11769 | 11791 | | |
11770 | 11792 | | |
11771 | | - | |
| 11793 | + | |
11772 | 11794 | | |
11773 | 11795 | | |
11774 | 11796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| |||
0 commit comments