From: Mike Galbraith <umgwanakikbuti@gmail.com>
To: "Steinar H. Gunderson" <sgunderson@bigfoot.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Linus Torvalds <torvalds@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: bisected: futex regression >= 3.14 - was - Slowdown due to threads bouncing between HT cores
Date: Sun, 26 Oct 2014 14:58:36 +0100 [thread overview]
Message-ID: <1414331916.5304.23.camel@marge.simpson.net> (raw)
In-Reply-To: <1414329375.5304.20.camel@marge.simpson.net>
On Sun, 2014-10-26 at 14:16 +0100, Mike Galbraith wrote:
> On Sun, 2014-10-26 at 11:39 +0100, Steinar H. Gunderson wrote:
> > On Fri, Oct 24, 2014 at 06:38:41PM +0200, Mike Galbraith wrote:
> > >>> Whew, good, futex.c is hard. Heads up chess guys <punt>.
> > >> I wonder whether the barrier fix which got into 3.17 late fixes that
> > >> issue as well.
> > > Yes, it did.
> >
> > This is only about the lockup, right, not that the threads bounce around a
> > lot and make things slower?
>
> Yes. I couldn't reproduce your results, on my 28 core+ht box, there was
> little difference between pinned/unpinned. Maybe the box was too quite,
> not enough random activity to motivate select_idle_sibling().
Can you try the below?
---
kernel/sched/fair.c | 6 ++++++
1 file changed, 6 insertions(+)
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4477,6 +4477,12 @@ static int select_idle_sibling(struct ta
return i;
/*
+ * Don't bounce hefty tasks about, they may be hitting contention.
+ */
+ if (p->se.load.weight - (p->se.load.weight/4) < p->se.avg.load_avg_contrib)
+ return target;
+
+ /*
* Otherwise, iterate the domains and find an elegible idle cpu.
*/
sd = rcu_dereference(per_cpu(sd_llc, target));
next prev parent reply other threads:[~2014-10-26 13:58 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-03 19:44 Steinar H. Gunderson
2014-10-03 21:11 ` Marc Burkhardt
2014-10-03 21:14 ` Steinar H. Gunderson
2014-10-04 9:22 ` Marc Burkhardt
2014-10-04 13:41 ` Andi Kleen
2014-10-04 14:12 ` Steinar H. Gunderson
2014-10-04 14:50 ` Chuck Ebbert
2014-10-05 11:19 ` Steinar H. Gunderson
2014-10-08 15:37 ` bisected: futex regression >= 3.14 - was - " Mike Galbraith
2014-10-08 16:14 ` Thomas Gleixner
2014-10-08 16:45 ` Steinar H. Gunderson
2014-10-08 17:52 ` Mike Galbraith
2014-10-08 16:23 ` Steinar H. Gunderson
2014-10-08 17:04 ` Linus Torvalds
2014-10-08 17:05 ` Steinar H. Gunderson
2014-10-08 17:59 ` Mike Galbraith
2014-10-24 15:25 ` Thomas Gleixner
2014-10-24 16:38 ` Mike Galbraith
2014-10-26 10:39 ` Steinar H. Gunderson
2014-10-26 13:16 ` Mike Galbraith
2014-10-26 13:58 ` Mike Galbraith [this message]
2014-10-26 14:11 ` Steinar H. Gunderson
2014-10-26 14:41 ` Mike Galbraith
2014-10-27 10:05 ` Mike Galbraith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1414331916.5304.23.camel@marge.simpson.net \
--to=umgwanakikbuti@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=sgunderson@bigfoot.com \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome