linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] sched: fix select_idle_sibling() regression in selecting an idle SMT sibling
@ 2011-12-15 19:47 Suresh Siddha
  2011-12-16  8:44 ` Ingo Molnar
  2011-12-16 11:36 ` [tip:sched/urgent] sched: Fix " tip-bot for Peter Zijlstra
  0 siblings, 2 replies; 13+ messages in thread
From: Suresh Siddha @ 2011-12-15 19:47 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Mike Galbraith, Alex Shi; +Cc: linux-kernel

Ingo, Please queue this scheduler patch for the next 3.2-rc release. We
already have a cleaned up version of this patch queued in -tip. If you
have any merge problems in tip/master, me or peterz can help resolve it.

Thanks.
---
From: Peter Zijlstra <peterz@infradead.org>
Subject: sched: fix select_idle_sibling() regression in selecting an idle SMT sibling

Mike Galbraith reported that this recent commit,

   commit 4dcfe1025b513c2c1da5bf5586adb0e80148f612
   Author: Peter Zijlstra <peterz@infradead.org>
   Date:   Thu Nov 10 13:01:10 2011 +0100

       sched: Avoid SMT siblings in select_idle_sibling() if possible

stopped selecting an idle SMT sibling when there are no idle cores in a
single socket system.

Intent of the select_idle_sibling() was to fallback to an idle SMT sibling,
if it fails to identify an idle core. But this fallback was not happening
on systems where all the scheduler domains had `SD_SHARE_PKG_RESOURCES'
flag set.

Fix it. Slightly bigger patch of cleaning all these goto's etc is
queued up for the next release.

Reported-by: Mike Galbraith <efault@gmx.de>
Reported-by: Alex Shi <alex.shi@intel.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
---
 kernel/sched_fair.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index a78ed27..8a39fa3 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -2352,13 +2352,11 @@ again:
 		if (!smt && (sd->flags & SD_SHARE_CPUPOWER))
 			continue;
 
-		if (!(sd->flags & SD_SHARE_PKG_RESOURCES)) {
-			if (!smt) {
-				smt = 1;
-				goto again;
-			}
+		if (smt && !(sd->flags & SD_SHARE_CPUPOWER))
+			break;
+
+		if (!(sd->flags & SD_SHARE_PKG_RESOURCES))
 			break;
-		}
 
 		sg = sd->groups;
 		do {
@@ -2378,6 +2376,10 @@ next:
 			sg = sg->next;
 		} while (sg != sd->groups);
 	}
+	if (!smt) {
+		smt = 1;
+		goto again;
+	}
 done:
 	rcu_read_unlock();
 



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [patch] sched: fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-15 19:47 [patch] sched: fix select_idle_sibling() regression in selecting an idle SMT sibling Suresh Siddha
@ 2011-12-16  8:44 ` Ingo Molnar
  2011-12-16 11:36 ` [tip:sched/urgent] sched: Fix " tip-bot for Peter Zijlstra
  1 sibling, 0 replies; 13+ messages in thread
From: Ingo Molnar @ 2011-12-16  8:44 UTC (permalink / raw)
  To: Suresh Siddha; +Cc: Peter Zijlstra, Mike Galbraith, Alex Shi, linux-kernel


* Suresh Siddha <suresh.b.siddha@intel.com> wrote:

> Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>

I changed this to Signed-off-by as you are forwarding Peter's 
patch. (let me know if that is not fine by you)

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-15 19:47 [patch] sched: fix select_idle_sibling() regression in selecting an idle SMT sibling Suresh Siddha
  2011-12-16  8:44 ` Ingo Molnar
@ 2011-12-16 11:36 ` tip-bot for Peter Zijlstra
  2011-12-21 12:33   ` alex shi
  1 sibling, 1 reply; 13+ messages in thread
From: tip-bot for Peter Zijlstra @ 2011-12-16 11:36 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, efault, peterz, alex.shi,
	suresh.b.siddha, tglx, mingo

Commit-ID:  ab2789213d224202237292d78aaa0c386c7b28b2
Gitweb:     http://git.kernel.org/tip/ab2789213d224202237292d78aaa0c386c7b28b2
Author:     Peter Zijlstra <peterz@infradead.org>
AuthorDate: Thu, 15 Dec 2011 11:47:00 -0800
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Fri, 16 Dec 2011 09:44:58 +0100

sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling

Mike Galbraith reported that this recent commit:

   commit 4dcfe1025b513c2c1da5bf5586adb0e80148f612
   Author: Peter Zijlstra <peterz@infradead.org>
   Date:   Thu Nov 10 13:01:10 2011 +0100

       sched: Avoid SMT siblings in select_idle_sibling() if possible

stopped selecting an idle SMT sibling when there are no idle
cores in a single socket system.

Intent of the select_idle_sibling() was to fallback to an idle
SMT sibling, if it fails to identify an idle core. But this
fallback was not happening on systems where all the scheduler
domains had `SD_SHARE_PKG_RESOURCES' flag set.

Fix it. Slightly bigger patch of cleaning all these goto's etc
is queued up for the next release.

Reported-by: Mike Galbraith <efault@gmx.de>
Reported-by: Alex Shi <alex.shi@intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1323978421.1984.244.camel@sbsiddha-desk.sc.intel.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 kernel/sched_fair.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index a78ed27..8a39fa3 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -2352,13 +2352,11 @@ again:
 		if (!smt && (sd->flags & SD_SHARE_CPUPOWER))
 			continue;
 
-		if (!(sd->flags & SD_SHARE_PKG_RESOURCES)) {
-			if (!smt) {
-				smt = 1;
-				goto again;
-			}
+		if (smt && !(sd->flags & SD_SHARE_CPUPOWER))
+			break;
+
+		if (!(sd->flags & SD_SHARE_PKG_RESOURCES))
 			break;
-		}
 
 		sg = sd->groups;
 		do {
@@ -2378,6 +2376,10 @@ next:
 			sg = sg->next;
 		} while (sg != sd->groups);
 	}
+	if (!smt) {
+		smt = 1;
+		goto again;
+	}
 done:
 	rcu_read_unlock();
 

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-16 11:36 ` [tip:sched/urgent] sched: Fix " tip-bot for Peter Zijlstra
@ 2011-12-21 12:33   ` alex shi
  2011-12-21 12:52     ` Peter Zijlstra
  0 siblings, 1 reply; 13+ messages in thread
From: alex shi @ 2011-12-21 12:33 UTC (permalink / raw)
  To: mingo, hpa, linux-kernel, peterz, efault, alex.shi,
	suresh.b.siddha, tglx, mingo
  Cc: linux-tip-commits

> Fix it. Slightly bigger patch of cleaning all these goto's etc
> is queued up for the next release.
>

Even with this fix, the loopback netperf testing TCP-RR, still have
about 5% regresion on our 2 socket * 8 cores SNB machine.
which is your patchset includes all cleaning? wondering if that is helpful.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-21 12:33   ` alex shi
@ 2011-12-21 12:52     ` Peter Zijlstra
  2011-12-21 19:42       ` Suresh Siddha
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Zijlstra @ 2011-12-21 12:52 UTC (permalink / raw)
  To: alex shi
  Cc: mingo, hpa, linux-kernel, efault, alex.shi, suresh.b.siddha,
	tglx, mingo, linux-tip-commits

On Wed, 2011-12-21 at 20:33 +0800, alex shi wrote:
> > Fix it. Slightly bigger patch of cleaning all these goto's etc
> > is queued up for the next release.
> >
> 
> Even with this fix, the loopback netperf testing TCP-RR, still have
> about 5% regresion on our 2 socket * 8 cores SNB machine.
> which is your patchset includes all cleaning? wondering if that is helpful.

Sorry, but that question fails to parse here. What were you asking?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-21 12:52     ` Peter Zijlstra
@ 2011-12-21 19:42       ` Suresh Siddha
  2011-12-22  1:31         ` Alex,Shi
  0 siblings, 1 reply; 13+ messages in thread
From: Suresh Siddha @ 2011-12-21 19:42 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: alex shi, mingo, hpa, linux-kernel, efault, Shi, Alex, tglx,
	mingo, linux-tip-commits

On Wed, 2011-12-21 at 04:52 -0800, Peter Zijlstra wrote:
> On Wed, 2011-12-21 at 20:33 +0800, alex shi wrote:
> > > Fix it. Slightly bigger patch of cleaning all these goto's etc
> > > is queued up for the next release.
> > >
> > 
> > Even with this fix, the loopback netperf testing TCP-RR, still have
> > about 5% regresion on our 2 socket * 8 cores SNB machine.
> > which is your patchset includes all cleaning? wondering if that is helpful.
> 
> Sorry, but that question fails to parse here. What were you asking?

Yes Alex. You need to elaborate your question. Regression to what kernel
etc?

Also there is another known issue that's been addressed in -tip. Here is
that patch. https://lkml.org/lkml/2011/12/21/137

Please try and if you still see an issue, please report more details
about the regression you are seeing.

thanks,
suresh


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-21 19:42       ` Suresh Siddha
@ 2011-12-22  1:31         ` Alex,Shi
  2011-12-22  2:03           ` Suresh Siddha
  0 siblings, 1 reply; 13+ messages in thread
From: Alex,Shi @ 2011-12-22  1:31 UTC (permalink / raw)
  To: Siddha, Suresh B
  Cc: Peter Zijlstra, mingo, hpa, linux-kernel, efault, tglx, mingo,
	linux-tip-commits


> > > Even with this fix, the loopback netperf testing TCP-RR, still have
> > > about 5% regresion on our 2 socket * 8 cores SNB machine.
> > > which is your patchset includes all cleaning? wondering if that is helpful.
> > 
> > Sorry, but that question fails to parse here. What were you asking?

This patch partly fixed a performance regression that triggered by
4dcfe1025b513c2c, but issue still exists.
> 
> Yes Alex. You need to elaborate your question. Regression to what kernel
> etc?
> 
> Also there is another known issue that's been addressed in -tip. Here is
> that patch. https://lkml.org/lkml/2011/12/21/137

Thanks! 
I am testing whole tip changes against 3.2-rc6. On the 4dcfe1025b513c2c
commit, seems interrupts is abnormal. So maybe above fix is suit for
this issue. wait the results. 




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-22  1:31         ` Alex,Shi
@ 2011-12-22  2:03           ` Suresh Siddha
  2011-12-22  2:16             ` Alex,Shi
  0 siblings, 1 reply; 13+ messages in thread
From: Suresh Siddha @ 2011-12-22  2:03 UTC (permalink / raw)
  To: Shi, Alex
  Cc: Peter Zijlstra, mingo, hpa, linux-kernel, efault, tglx, mingo,
	linux-tip-commits

On Wed, 2011-12-21 at 17:31 -0800, Shi, Alex wrote:
> This patch partly fixed a performance regression that triggered by
> 4dcfe1025b513c2c, but issue still exists.

So how much was the regression caused by the commit 4dcfe1025b513c2c and
how much did we recover with this fix I posted. If we are talking about
the regression caused by this single commit 4dcfe1025b513c2c, then I
don't know of any other related fixes other than the recent fix we
pushed upstream (ab2789213d224202237292d78aaa0c386c7b28b2).

thanks,
suresh


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-22  2:03           ` Suresh Siddha
@ 2011-12-22  2:16             ` Alex,Shi
  2011-12-22  6:59               ` Alex,Shi
  2011-12-23 18:43               ` Suresh Siddha
  0 siblings, 2 replies; 13+ messages in thread
From: Alex,Shi @ 2011-12-22  2:16 UTC (permalink / raw)
  To: Siddha, Suresh B
  Cc: Peter Zijlstra, mingo, hpa, linux-kernel, efault, tglx, mingo,
	linux-tip-commits, Li, Shaohua, Chen, Tim C, Huang, Ying

On Thu, 2011-12-22 at 10:03 +0800, Siddha, Suresh B wrote:
> On Wed, 2011-12-21 at 17:31 -0800, Shi, Alex wrote:
> > This patch partly fixed a performance regression that triggered by
> > 4dcfe1025b513c2c, but issue still exists.
> 
> So how much was the regression caused by the commit 4dcfe1025b513c2c and
> how much did we recover with this fix I posted. If we are talking about
> the regression caused by this single commit 4dcfe1025b513c2c, then I
> don't know of any other related fixes other than the recent fix we
> pushed upstream (ab2789213d224202237292d78aaa0c386c7b28b2).

A little complex for the whole thing. 
on 4 sockets EX machine, 3~5% hackbench thread regression due to 4dcfe
can be recovered by ab2789. 

But on 2 sockets SNB machine, 1024 clients loop netperf TCP-RR has about
9% regression. and your patch seem recover 2~3%. 

And on a 2 sockets nhm, one of our private benchmark was impact much 20
+% regression. that benchmark just run 4 process, each of process open a
thread, and the thread tasks is to locate randomly pages and than read
from 4 times/write 1 time data into a page.  The ab2789 commit seems no
help our benchmark. 






^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-22  2:16             ` Alex,Shi
@ 2011-12-22  6:59               ` Alex,Shi
  2011-12-23 18:43               ` Suresh Siddha
  1 sibling, 0 replies; 13+ messages in thread
From: Alex,Shi @ 2011-12-22  6:59 UTC (permalink / raw)
  To: Siddha, Suresh B
  Cc: Peter Zijlstra, mingo, hpa, linux-kernel, efault, tglx, mingo,
	linux-tip-commits, Li, Shaohua, Chen, Tim C, Huang, Ying

On Thu, 2011-12-22 at 10:16 +0800, Alex,Shi wrote:
> On Thu, 2011-12-22 at 10:03 +0800, Siddha, Suresh B wrote:
> > On Wed, 2011-12-21 at 17:31 -0800, Shi, Alex wrote:
> > > This patch partly fixed a performance regression that triggered by
> > > 4dcfe1025b513c2c, but issue still exists.
> > 
> > So how much was the regression caused by the commit 4dcfe1025b513c2c and
> > how much did we recover with this fix I posted. If we are talking about
> > the regression caused by this single commit 4dcfe1025b513c2c, then I
> > don't know of any other related fixes other than the recent fix we
> > pushed upstream (ab2789213d224202237292d78aaa0c386c7b28b2).
> 
> A little complex for the whole thing. 
> on 4 sockets EX machine, 3~5% hackbench thread regression due to 4dcfe
> can be recovered by ab2789. 
> 
> But on 2 sockets SNB machine, 1024 clients loop netperf TCP-RR has about
> 9% regression. and your patch seem recover 2~3%. 

Got the scheduler part from tip tree by command "git diff v3.2-rc6
kernel/sched*" and apply it again 3.2-rc6. Peter's commit "Only queue
remote wakeups when crossing cache boundaries" was included. But testing
show no change for TCP-RR result.

> 
> And on a 2 sockets nhm, one of our private benchmark was impact much 20
> +% regression. that benchmark just run 4 process, each of process open a
> thread, and the thread tasks is to locate randomly pages and than read
> from 4 times/write 1 time data into a page.  The ab2789 commit seems no
> help our benchmark. 
> 
> 
> 
> 



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-22  2:16             ` Alex,Shi
  2011-12-22  6:59               ` Alex,Shi
@ 2011-12-23 18:43               ` Suresh Siddha
  2011-12-24  7:04                 ` Shi, Alex
  2012-01-06  8:14                 ` Alex,Shi
  1 sibling, 2 replies; 13+ messages in thread
From: Suresh Siddha @ 2011-12-23 18:43 UTC (permalink / raw)
  To: Shi, Alex
  Cc: Peter Zijlstra, mingo, hpa, linux-kernel, efault, tglx, mingo,
	linux-tip-commits, Li, Shaohua, Chen, Tim C, Huang, Ying

On Wed, 2011-12-21 at 18:16 -0800, Shi, Alex wrote:
> On Thu, 2011-12-22 at 10:03 +0800, Siddha, Suresh B wrote:
> > On Wed, 2011-12-21 at 17:31 -0800, Shi, Alex wrote:
> > > This patch partly fixed a performance regression that triggered by
> > > 4dcfe1025b513c2c, but issue still exists.
> > 
> > So how much was the regression caused by the commit 4dcfe1025b513c2c and
> > how much did we recover with this fix I posted. If we are talking about
> > the regression caused by this single commit 4dcfe1025b513c2c, then I
> > don't know of any other related fixes other than the recent fix we
> > pushed upstream (ab2789213d224202237292d78aaa0c386c7b28b2).
> 
> A little complex for the whole thing. 
> on 4 sockets EX machine, 3~5% hackbench thread regression due to 4dcfe
> can be recovered by ab2789. 
> 
> But on 2 sockets SNB machine, 1024 clients loop netperf TCP-RR has about
> 9% regression. and your patch seem recover 2~3%. 
> 
> And on a 2 sockets nhm, one of our private benchmark was impact much 20
> +% regression. that benchmark just run 4 process, each of process open a
> thread, and the thread tasks is to locate randomly pages and than read
> from 4 times/write 1 time data into a page.  The ab2789 commit seems no
> help our benchmark. 

Ok. Can you please try couple of experiments with two kernels? Two
kernels being the base kernel (prior to 4dcfe1025b513c2c) and the second
kernel with the commit ab2789213d224202237292d78aaa0c386c7b28b2.

One experiment with p-states turned off and the second experiment with
c-states turned off.

I suspect mostly deeper core c-states might be contributing to the
behavior that you are seeing.

thanks,
suresh


^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-23 18:43               ` Suresh Siddha
@ 2011-12-24  7:04                 ` Shi, Alex
  2012-01-06  8:14                 ` Alex,Shi
  1 sibling, 0 replies; 13+ messages in thread
From: Shi, Alex @ 2011-12-24  7:04 UTC (permalink / raw)
  To: Siddha, Suresh B
  Cc: Peter Zijlstra, mingo, hpa, linux-kernel, efault, tglx, mingo,
	linux-tip-commits, Li, Shaohua, Chen, Tim C, Huang, Ying

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1444 bytes --]

> >
> > A little complex for the whole thing.
> > on 4 sockets EX machine, 3~5% hackbench thread regression due to 4dcfe
> > can be recovered by ab2789.
> >
> > But on 2 sockets SNB machine, 1024 clients loop netperf TCP-RR has about
> > 9% regression. and your patch seem recover 2~3%.
> >
> > And on a 2 sockets nhm, one of our private benchmark was impact much 20
> > +% regression. that benchmark just run 4 process, each of process open a
> > thread, and the thread tasks is to locate randomly pages and than read
> > from 4 times/write 1 time data into a page.  The ab2789 commit seems no
> > help our benchmark.

In fact, since L1 cache, D-TLB is shared between SMT siblings, it is not every application can benefit from wakeup on different Cores. 
> 
> Ok. Can you please try couple of experiments with two kernels? Two
> kernels being the base kernel (prior to 4dcfe1025b513c2c) and the second
> kernel with the commit ab2789213d224202237292d78aaa0c386c7b28b2.

Testing started on impacted NHM and SND machines for benchmark netperf hackbench thread and our small case. 
> 
> One experiment with p-states turned off and the second experiment with
> c-states turned off.
> 
> I suspect mostly deeper core c-states might be contributing to the
> behavior that you are seeing.

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [tip:sched/urgent] sched: Fix select_idle_sibling() regression in selecting an idle SMT sibling
  2011-12-23 18:43               ` Suresh Siddha
  2011-12-24  7:04                 ` Shi, Alex
@ 2012-01-06  8:14                 ` Alex,Shi
  1 sibling, 0 replies; 13+ messages in thread
From: Alex,Shi @ 2012-01-06  8:14 UTC (permalink / raw)
  To: Suresh Siddha
  Cc: Peter Zijlstra, mingo, hpa, linux-kernel, efault, tglx, mingo,
	linux-tip-commits, Li, Shaohua, Chen, Tim C, Huang, Ying

On Fri, 2011-12-23 at 10:43 -0800, Suresh Siddha wrote: 
> On Wed, 2011-12-21 at 18:16 -0800, Shi, Alex wrote:
> > On Thu, 2011-12-22 at 10:03 +0800, Siddha, Suresh B wrote:
> > > On Wed, 2011-12-21 at 17:31 -0800, Shi, Alex wrote:
> > > > This patch partly fixed a performance regression that triggered by
> > > > 4dcfe1025b513c2c, but issue still exists.
> > > 
> > > So how much was the regression caused by the commit 4dcfe1025b513c2c and
> > > how much did we recover with this fix I posted. If we are talking about
> > > the regression caused by this single commit 4dcfe1025b513c2c, then I
> > > don't know of any other related fixes other than the recent fix we
> > > pushed upstream (ab2789213d224202237292d78aaa0c386c7b28b2).
> > 
> > A little complex for the whole thing. 
> > on 4 sockets EX machine, 3~5% hackbench thread regression due to 4dcfe
> > can be recovered by ab2789. 
> > 
> > But on 2 sockets SNB machine, 1024 clients loop netperf TCP-RR has about
> > 9% regression. and your patch seem recover 2~3%. 
> > 
> > And on a 2 sockets nhm, one of our private benchmark was impact much 20
> > +% regression. that benchmark just run 4 process, each of process open a
> > thread, and the thread tasks is to locate randomly pages and than read
> > from 4 times/write 1 time data into a page.  The ab2789 commit seems no
> > help our benchmark. 
> 
> Ok. Can you please try couple of experiments with two kernels? Two
> kernels being the base kernel (prior to 4dcfe1025b513c2c) and the second
> kernel with the commit ab2789213d224202237292d78aaa0c386c7b28b2.
> 
> One experiment with p-states turned off and the second experiment with
> c-states turned off.

I did testing on both of kernel with setting 'performance' gov for all
CPU P-states, and disable cpuidle by setting cpuidle.off=1 in cmdline. 

But didn't find measurable impact on performance result.  

> 
> I suspect mostly deeper core c-states might be contributing to the
> behavior that you are seeing.
> 
> thanks,
> suresh
> 




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-01-06  8:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15 19:47 [patch] sched: fix select_idle_sibling() regression in selecting an idle SMT sibling Suresh Siddha
2011-12-16  8:44 ` Ingo Molnar
2011-12-16 11:36 ` [tip:sched/urgent] sched: Fix " tip-bot for Peter Zijlstra
2011-12-21 12:33   ` alex shi
2011-12-21 12:52     ` Peter Zijlstra
2011-12-21 19:42       ` Suresh Siddha
2011-12-22  1:31         ` Alex,Shi
2011-12-22  2:03           ` Suresh Siddha
2011-12-22  2:16             ` Alex,Shi
2011-12-22  6:59               ` Alex,Shi
2011-12-23 18:43               ` Suresh Siddha
2011-12-24  7:04                 ` Shi, Alex
2012-01-06  8:14                 ` Alex,Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).