Commit 450e749
sched/fair: Fix SMT4 group_smt_balance handling
For SMT4, any group with more than 2 tasks will be marked as
group_smt_balance. Retain the behaviour of group_has_spare by marking
the busiest group as the group which has the least number of idle_cpus.
Also, handle rounding effect of adding (ncores_local + ncores_busy) when
the local is fully idle and busy group imbalance is less than 2 tasks.
Local group should try to pull at least 1 task in this case so imbalance
should be set to 2 instead.
Fixes: fee1759 ("sched/fair: Determine active load balance for SMT sched groups")
Acked-by: Shrikanth Hegde <sshegde@linux.vnet.ibm.com>
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/6cd1633036bb6b651af575c32c2a9608a106702c.camel@linux.intel.com1 parent f8858d9 commit 450e749
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9580 | 9580 | | |
9581 | 9581 | | |
9582 | 9582 | | |
9583 | | - | |
| 9583 | + | |
9584 | 9584 | | |
9585 | 9585 | | |
9586 | 9586 | | |
| |||
9768 | 9768 | | |
9769 | 9769 | | |
9770 | 9770 | | |
| 9771 | + | |
| 9772 | + | |
| 9773 | + | |
| 9774 | + | |
| 9775 | + | |
| 9776 | + | |
| 9777 | + | |
| 9778 | + | |
| 9779 | + | |
9771 | 9780 | | |
9772 | 9781 | | |
9773 | 9782 | | |
| |||
9807 | 9816 | | |
9808 | 9817 | | |
9809 | 9818 | | |
| 9819 | + | |
9810 | 9820 | | |
9811 | 9821 | | |
9812 | 9822 | | |
| |||
0 commit comments