Commit 93b75217 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

sched: disable source/target_load bias

The bias given by source/target_load functions can be very large, disable
it by default to get faster convergence.
Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Cc: Mike Galbraith <efault@gmx.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent cb5ef42a
...@@ -2000,7 +2000,7 @@ static unsigned long source_load(int cpu, int type) ...@@ -2000,7 +2000,7 @@ static unsigned long source_load(int cpu, int type)
struct rq *rq = cpu_rq(cpu); struct rq *rq = cpu_rq(cpu);
unsigned long total = weighted_cpuload(cpu); unsigned long total = weighted_cpuload(cpu);
if (type == 0) if (type == 0 || !sched_feat(LB_BIAS))
return total; return total;
return min(rq->cpu_load[type-1], total); return min(rq->cpu_load[type-1], total);
...@@ -2015,7 +2015,7 @@ static unsigned long target_load(int cpu, int type) ...@@ -2015,7 +2015,7 @@ static unsigned long target_load(int cpu, int type)
struct rq *rq = cpu_rq(cpu); struct rq *rq = cpu_rq(cpu);
unsigned long total = weighted_cpuload(cpu); unsigned long total = weighted_cpuload(cpu);
if (type == 0) if (type == 0 || !sched_feat(LB_BIAS))
return total; return total;
return max(rq->cpu_load[type-1], total); return max(rq->cpu_load[type-1], total);
......
...@@ -8,3 +8,4 @@ SCHED_FEAT(SYNC_WAKEUPS, 1) ...@@ -8,3 +8,4 @@ SCHED_FEAT(SYNC_WAKEUPS, 1)
SCHED_FEAT(HRTICK, 1) SCHED_FEAT(HRTICK, 1)
SCHED_FEAT(DOUBLE_TICK, 0) SCHED_FEAT(DOUBLE_TICK, 0)
SCHED_FEAT(ASYM_GRAN, 1) SCHED_FEAT(ASYM_GRAN, 1)
SCHED_FEAT(LB_BIAS, 0)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment