aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorMike Galbraith <efault@gmx.de>2008-10-24 05:06:14 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-24 06:51:01 -0400
commit0d13033bc9257fe65c1aa25e84568b1608da0901 (patch)
tree312a3bbad942d2c27ee7e394bd5328dd9fe58fe1 /kernel/sched_fair.c
parent1af5f730fc1bf7c62ec9fb2d307206e18bf40a69 (diff)
sched: weaken sync hint
Mysql+oltp and pgsql+oltp peaks are still shifted right. The below puts the peaks back to 1 client/server pair per core. Use the avg_overlap information to weaken the sync hint. Signed-off-by: Mike Galbraith <efault@gmx.de> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index b27ccc52f6aa..b71ee2c62297 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1123,10 +1123,9 @@ wake_affine(struct sched_domain *this_sd, struct rq *this_rq,
1123 if (!(this_sd->flags & SD_WAKE_AFFINE) || !sched_feat(AFFINE_WAKEUPS)) 1123 if (!(this_sd->flags & SD_WAKE_AFFINE) || !sched_feat(AFFINE_WAKEUPS))
1124 return 0; 1124 return 0;
1125 1125
1126 if (!sync && sched_feat(SYNC_WAKEUPS) && 1126 if (sync && (curr->se.avg_overlap > sysctl_sched_migration_cost ||
1127 curr->se.avg_overlap < sysctl_sched_migration_cost && 1127 p->se.avg_overlap > sysctl_sched_migration_cost))
1128 p->se.avg_overlap < sysctl_sched_migration_cost) 1128 sync = 0;
1129 sync = 1;
1130 1129
1131 /* 1130 /*
1132 * If sync wakeup then subtract the (maximum possible) 1131 * If sync wakeup then subtract the (maximum possible)