public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] load balancing fixes
@ 2014-07-28 18:16 riel
  2014-07-28 18:16 ` [PATCH 1/2] sched: fix and clean up calculate_imbalance riel
  2014-07-28 18:16 ` [PATCH 2/2] sched: make update_sd_pick_busiest return true on a busier sd riel
  0 siblings, 2 replies; 21+ messages in thread
From: riel @ 2014-07-28 18:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: peterz, vincent.guittot, mikey, mingo, jhladky, ktkhai,
	tim.c.chen, nicolas.pitre

Currently update_sd_pick_busiest only identifies the busiest sd
that is either overloaded, or has a group imbalance. When no
sd is imbalanced or overloaded, the load balancer fails to find
the busiest domain.

This breaks load balancing between domains that are not overloaded,
in the !SD_ASYM_PACKING case. This patch makes update_sd_pick_busiest
return true when the busiest sd yet is encountered.

Groups are ranked in the order overloaded > imbalanced > other,
with higher ranked groups getting priority even when their load
is lower. This is necessary due to the possibility of unequal
capacities and cpumasks between domains within a sched group.

Calculate_imbalance knows how to deal with the situation where
a less loaded group is picked, but will only do so when
sgs->group_imb is set.  This handling needs to be extended to
all situations where the busiest load is below the average load.



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2014-08-12 14:55 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 18:16 [PATCH 0/2] load balancing fixes riel
2014-07-28 18:16 ` [PATCH 1/2] sched: fix and clean up calculate_imbalance riel
2014-07-29  9:04   ` Vincent Guittot
2014-07-29 14:53     ` Rik van Riel
2014-07-29 15:31       ` Vincent Guittot
2014-07-29 15:39         ` Rik van Riel
2014-07-29 14:59     ` Peter Zijlstra
2014-07-29 15:15       ` Rik van Riel
2014-07-29 15:49         ` Peter Zijlstra
2014-07-29 17:04           ` Rik van Riel
2014-07-29 15:27       ` Peter Zijlstra
2014-07-30  9:32         ` Vincent Guittot
2014-07-30 10:13           ` Peter Zijlstra
2014-08-12 14:52         ` [tip:sched/core] sched/fair: Allow calculate_imbalance() to move idle cpus tip-bot for Peter Zijlstra
2014-07-29 14:49   ` [PATCH 1/2] sched: fix and clean up calculate_imbalance Peter Zijlstra
2014-07-29 14:53     ` Peter Zijlstra
2014-07-29 15:26       ` Peter Zijlstra
2014-08-12 14:52         ` [tip:sched/core] sched/fair: Make calculate_imbalance() independent tip-bot for Peter Zijlstra
2014-07-28 18:16 ` [PATCH 2/2] sched: make update_sd_pick_busiest return true on a busier sd riel
2014-07-29 15:27   ` Peter Zijlstra
2014-08-12 14:52     ` [tip:sched/core] sched/fair: Make update_sd_pick_busiest() return 'true' " tip-bot for Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox