aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2013-05-16 18:53:32 +0200
committerVincent Guittot <vincent.guittot@linaro.org>2013-05-16 18:53:32 +0200
commit8add37ad27eac6e614733e54d0d4f5b110eefac5 (patch)
treee9c74fe6d3f840e7f8eb4a9183f254c3e4a5ca27
parentf722406faae2d073cc1d01063d1123c35425939e (diff)
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.c2
-rw-r--r--kernel/sched/features.h2
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