Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1727352
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Abysmal scheduler performance in Linus' tree? |
| Date | 2017-09-06 13:00 +0200 |
| Message-ID | <umGdR-wH-45@gated-at.bofh.it> (permalink) |
| References | <umAUN-57m-1@gated-at.bofh.it> <umEF4-81v-27@gated-at.bofh.it> <umEOJ-85j-3@gated-at.bofh.it> <umG4a-sH-15@gated-at.bofh.it> <umG4a-sH-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Sep 06, 2017 at 12:44:20PM +0200, Peter Zijlstra wrote:
> > > + /* if this cache has capacity, come here */
> > > + if (this_stats.has_capacity && this_stats.nr_running < prev_stats.nr_running+1)
> > > + return true;
> >
> > This is still not working as intended, it should be
> >
> > if (this_stats.has_capacity && this_stats.nr_running+1 < prev_stats.nr_running)
> > return true;
> >
> > to fix the regression.
>
> Argh, you're quite right. Let me do a patch for that.
---
Subject: sched/fair: Fix wake_affine_llc() balance rules
From: Peter Zijlstra <peterz@infradead.org>
Date: Wed Sep 6 12:45:45 CEST 2017
Chris reported that the SMT balance rules got the +1 on the wrong
side, resulting in a bias towards the current LLC; which the
load-balancer would then try and undo.
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 90001d67be2f ("sched/fair: Fix wake_affine() for !NUMA_BALANCING")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5435,7 +5435,7 @@ wake_affine_llc(struct sched_domain *sd,
return false;
/* if this cache has capacity, come here */
- if (this_stats.has_capacity && this_stats.nr_running < prev_stats.nr_running+1)
+ if (this_stats.has_capacity && this_stats.nr_running+1 < prev_stats.nr_running)
return true;
/*
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Abysmal scheduler performance in Linus' tree? Andy Lutomirski <luto@kernel.org> - 2017-09-06 07:20 +0200
Re: Abysmal scheduler performance in Linus' tree? Peter Zijlstra <peterz@infradead.org> - 2017-09-06 10:30 +0200
Re: Abysmal scheduler performance in Linus' tree? Andy Lutomirski <luto@amacapital.net> - 2017-09-06 11:00 +0200
Re: Abysmal scheduler performance in Linus' tree? Peter Zijlstra <peterz@infradead.org> - 2017-09-06 11:10 +0200
Re: Abysmal scheduler performance in Linus' tree? Peter Zijlstra <peterz@infradead.org> - 2017-09-06 18:20 +0200
Re: Abysmal scheduler performance in Linus' tree? Mike Galbraith <efault@gmx.de> - 2017-09-07 08:20 +0200
Re: Abysmal scheduler performance in Linus' tree? Ingo Molnar <mingo@kernel.org> - 2017-09-07 09:40 +0200
[PATCH] sched/cpuset/pm: Fix cpuset vs suspend-resume Peter Zijlstra <peterz@infradead.org> - 2017-09-07 11:20 +0200
Re: [PATCH] sched/cpuset/pm: Fix cpuset vs suspend-resume Peter Zijlstra <peterz@infradead.org> - 2017-09-07 11:30 +0200
Re: [PATCH] sched/cpuset/pm: Fix cpuset vs suspend-resume "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-09-07 13:10 +0200
Re: [PATCH] sched/cpuset/pm: Fix cpuset vs suspend-resume Tejun Heo <tj@kernel.org> - 2017-09-07 22:40 +0200
[tip:sched/urgent] sched/cpuset/pm: Fix cpuset vs. suspend-resume bugs tip-bot for Peter Zijlstra <tipbot@zytor.com> - 2017-09-07 12:40 +0200
Re: Abysmal scheduler performance in Linus' tree? Chris Wilson <chris@chris-wilson.co.uk> - 2017-09-06 11:20 +0200
Re: Abysmal scheduler performance in Linus' tree? Peter Zijlstra <peterz@infradead.org> - 2017-09-06 11:30 +0200
Re: Abysmal scheduler performance in Linus' tree? Peter Zijlstra <peterz@infradead.org> - 2017-09-06 12:50 +0200
Re: Abysmal scheduler performance in Linus' tree? Peter Zijlstra <peterz@infradead.org> - 2017-09-06 13:00 +0200
[tip:sched/urgent] sched/fair: Fix wake_affine_llc() balancing rules tip-bot for Peter Zijlstra <tipbot@zytor.com> - 2017-09-07 10:30 +0200
csiph-web