Files
linux/kernel
Vincent Guittot 4ad4e481bd sched/fair: Fix rounding bug for asym packing
When check_asym_packing() is triggered, the imbalance is set to:

  busiest_stat.avg_load * busiest_stat.group_capacity / SCHED_CAPACITY_SCALE

But busiest_stat.avg_load equals:

  sgs->group_load * SCHED_CAPACITY_SCALE / sgs->group_capacity

These divisions can generate a rounding that will make imbalance
slightly lower than the weighted load of the cfs_rq.  But this is
enough to skip the rq in find_busiest_queue() and prevents asym
migration from happening.

Directly set imbalance to busiest's sgs->group_load to remove the
rounding.

Signed-off-by: Vincent Guittot <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
2019-01-27 12:29:37 +01:00
..
…
…
…
2018-11-26 18:41:21 -05:00
2018-11-26 18:41:21 -05:00
…
…
2018-11-28 11:57:07 +01:00
2018-12-19 13:52:44 -05:00
…
…
…
…
…
…
…
…
…
…
2018-12-28 12:42:30 -08:00
2018-10-31 08:54:16 -07:00
…
…
2019-01-15 09:43:12 -08:00
…
…
…
…
…
…
2019-01-11 18:05:40 -08:00
…