Repository navigation
Commit e0f5f3a
sched/fair: Make load tracking frequency scale-invariant
Apply frequency scaling correction factor to per-entity load tracking to
make it frequency invariant. Currently, load appears bigger when the CPU
is running slower which affects load-balancing decisions.
Each segment of the sched_avg.load_sum geometric series is now scaled by
the current frequency so that the sched_avg.load_avg of each sched entity
will be invariant from frequency scaling.
Moreover, cfs_rq.runnable_load_sum is scaled by the current frequency as
well.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Dietmar Eggemann <Dietmar.Eggemann@arm.com>
Cc: Juri Lelli <Juri.Lelli@arm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: daniel.lezcano@linaro.org
Cc: mturquette@baylibre.com
Cc: pang.xunlei@zte.com.cn
Cc: rjw@rjwysocki.net
Cc: sgurrappadi@nvidia.com
Cc: yuyang.du@intel.com
Link: http://lkml.kernel.org/r/1439569394-11974-2-git-send-email-morten.rasmussen@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>1 parent 2a59572 commit e0f5f3a
2 files changed
Lines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1177 | 1177 | | |
1178 | 1178 | | |
1179 | 1179 | | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1183 | 1183 | | |
1184 | 1184 | | |
1185 | 1185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2515 | 2515 | | |
2516 | 2516 | | |
2517 | 2517 | | |
| 2518 | + | |
| 2519 | + | |
2518 | 2520 | | |
2519 | 2521 | | |
2520 | 2522 | | |
| |||
2547 | 2549 | | |
2548 | 2550 | | |
2549 | 2551 | | |
2550 | | - | |
| 2552 | + | |
2551 | 2553 | | |
2552 | | - | |
| 2554 | + | |
2553 | 2555 | | |
2554 | 2556 | | |
2555 | 2557 | | |
| |||
2585 | 2587 | | |
2586 | 2588 | | |
2587 | 2589 | | |
| 2590 | + | |
2588 | 2591 | | |
2589 | | - | |
2590 | | - | |
2591 | | - | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
2592 | 2597 | | |
2593 | 2598 | | |
2594 | | - | |
| 2599 | + | |
2595 | 2600 | | |
2596 | 2601 | | |
2597 | 2602 | | |
| |||
2608 | 2613 | | |
2609 | 2614 | | |
2610 | 2615 | | |
| 2616 | + | |
2611 | 2617 | | |
2612 | 2618 | | |
2613 | 2619 | | |
2614 | 2620 | | |
2615 | 2621 | | |
2616 | 2622 | | |
2617 | | - | |
| 2623 | + | |
2618 | 2624 | | |
2619 | 2625 | | |
2620 | 2626 | | |
| 2627 | + | |
2621 | 2628 | | |
2622 | | - | |
| 2629 | + | |
2623 | 2630 | | |
2624 | | - | |
| 2631 | + | |
2625 | 2632 | | |
2626 | 2633 | | |
2627 | | - | |
| 2634 | + | |
2628 | 2635 | | |
2629 | 2636 | | |
2630 | 2637 | | |
| |||
0 commit comments