diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2013-05-16 18:53:32 +0200 |
---|---|---|
committer | Vincent Guittot <vincent.guittot@linaro.org> | 2013-05-16 18:53:32 +0200 |
commit | 8add37ad27eac6e614733e54d0d4f5b110eefac5 (patch) | |
tree | e9c74fe6d3f840e7f8eb4a9183f254c3e4a5ca27 | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) |
sched: enable LB_MIN featureupstream-sched-use-LB_MIN-feature-v2-v3.10-rc1
The Packing Small Tasks patches ensures that the small tasks are placed to
the best CPU so the Periodic Load Balance can focus on Long running tasks
The threshold is tuned to be coherent with the Packing Small Task threshold
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
-rw-r--r-- | kernel/sched/fair.c | 2 | ||||
-rw-r--r-- | kernel/sched/features.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index c61a614465c..799519b32ed 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4030,7 +4030,7 @@ static int move_tasks(struct lb_env *env) load = task_h_load(p); - if (sched_feat(LB_MIN) && load < 16 && !env->sd->nr_balance_failed) + if (sched_feat(LB_MIN) && ((load << 10) < (task_h_load(p) * 180))) // && !env->sd->nr_balance_failed) goto next; if ((load / 2) > env->imbalance) diff --git a/kernel/sched/features.h b/kernel/sched/features.h index 99399f8e479..08d4f9e75c1 100644 --- a/kernel/sched/features.h +++ b/kernel/sched/features.h @@ -58,7 +58,7 @@ SCHED_FEAT(TTWU_QUEUE, true) SCHED_FEAT(FORCE_SD_OVERLAP, false) SCHED_FEAT(RT_RUNTIME_SHARE, true) -SCHED_FEAT(LB_MIN, false) +SCHED_FEAT(LB_MIN, true) /* * Apply the automatic NUMA scheduling policy. Enabled automatically |