mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 16:40:59 +07:00
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>
This commit is contained in:
parent
1af5f730fc
commit
0d13033bc9
@ -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))
|
if (!(this_sd->flags & SD_WAKE_AFFINE) || !sched_feat(AFFINE_WAKEUPS))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!sync && sched_feat(SYNC_WAKEUPS) &&
|
if (sync && (curr->se.avg_overlap > sysctl_sched_migration_cost ||
|
||||||
curr->se.avg_overlap < sysctl_sched_migration_cost &&
|
p->se.avg_overlap > sysctl_sched_migration_cost))
|
||||||
p->se.avg_overlap < sysctl_sched_migration_cost)
|
sync = 0;
|
||||||
sync = 1;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If sync wakeup then subtract the (maximum possible)
|
* If sync wakeup then subtract the (maximum possible)
|
||||||
|
Loading…
Reference in New Issue
Block a user