Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d13033b authored by Mike Galbraith's avatar Mike Galbraith Committed by Ingo Molnar
Browse files

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: default avatarMike Galbraith <efault@gmx.de>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 1af5f730
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1123,10 +1123,9 @@ wake_affine(struct sched_domain *this_sd, struct rq *this_rq,
	if (!(this_sd->flags & SD_WAKE_AFFINE) || !sched_feat(AFFINE_WAKEUPS))
		return 0;

	if (!sync && sched_feat(SYNC_WAKEUPS) &&
	    curr->se.avg_overlap < sysctl_sched_migration_cost &&
	    p->se.avg_overlap < sysctl_sched_migration_cost)
		sync = 1;
	if (sync && (curr->se.avg_overlap > sysctl_sched_migration_cost ||
			p->se.avg_overlap > sysctl_sched_migration_cost))
		sync = 0;

	/*
	 * If sync wakeup then subtract the (maximum possible)