public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched/numa: recovered SD_PERFER_SIBLING on CPU domain
@ 2012-07-20  6:19 Alex Shi
  2012-07-20 12:58 ` Peter Zijlstra
  2012-07-26 15:07 ` [tip:sched/urgent] sched/numa: Add SD_PERFER_SIBLING to " tip-bot for Alex Shi
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Shi @ 2012-07-20  6:19 UTC (permalink / raw)
  To: a.p.zijlstra; +Cc: tj, alex.shi, mingo, akpm, linux-kernel

commit 8e7fbcbc22c(sched: Remove stale power aware scheduling remnants
and dysfunctional knobs) removed SD_PERFER_SIBLING on CPU domain
On numa machine, that causes load_balance didn't perfer LCPU in same
physical CPU package.

It causes some regression on our numa machines from core2 to NHM and SNB.
Recover this domain flag can recover the performance drop.

This recovery doesn't has any bad impact on my all benchmarks specjbb,
kbuild, fio, hackbench .. etc, on all my machines.
Since it is a recovery, I assume it also has no bad impact for other
platforms.

Signed-off-by: Alex Shi <alex.shi@intel.com>
---
 include/linux/topology.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/topology.h b/include/linux/topology.h
index e91cd43..fec12d6 100644
--- a/include/linux/topology.h
+++ b/include/linux/topology.h
@@ -164,6 +164,7 @@ int arch_update_cpu_topology(void);
 				| 0*SD_SHARE_CPUPOWER			\
 				| 0*SD_SHARE_PKG_RESOURCES		\
 				| 0*SD_SERIALIZE			\
+				| 1*SD_PREFER_SIBLING			\
 				,					\
 	.last_balance		= jiffies,				\
 	.balance_interval	= 1,					\
-- 
1.7.5.4


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

* Re: [PATCH] sched/numa: recovered SD_PERFER_SIBLING on CPU domain
  2012-07-20  6:19 [PATCH] sched/numa: recovered SD_PERFER_SIBLING on CPU domain Alex Shi
@ 2012-07-20 12:58 ` Peter Zijlstra
  2012-07-26 15:07 ` [tip:sched/urgent] sched/numa: Add SD_PERFER_SIBLING to " tip-bot for Alex Shi
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Zijlstra @ 2012-07-20 12:58 UTC (permalink / raw)
  To: Alex Shi; +Cc: tj, mingo, akpm, linux-kernel

On Fri, 2012-07-20 at 14:19 +0800, Alex Shi wrote:
> commit 8e7fbcbc22c(sched: Remove stale power aware scheduling remnants
> and dysfunctional knobs) removed SD_PERFER_SIBLING on CPU domain
> On numa machine, that causes load_balance didn't perfer LCPU in same
> physical CPU package.
> 
> It causes some regression on our numa machines from core2 to NHM and SNB.
> Recover this domain flag can recover the performance drop.
> 
> This recovery doesn't has any bad impact on my all benchmarks specjbb,
> kbuild, fio, hackbench .. etc, on all my machines.
> Since it is a recovery, I assume it also has no bad impact for other
> platforms.
> 
> Signed-off-by: Alex Shi <alex.shi@intel.com>

Thanks!

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

* [tip:sched/urgent] sched/numa: Add SD_PERFER_SIBLING to CPU domain
  2012-07-20  6:19 [PATCH] sched/numa: recovered SD_PERFER_SIBLING on CPU domain Alex Shi
  2012-07-20 12:58 ` Peter Zijlstra
@ 2012-07-26 15:07 ` tip-bot for Alex Shi
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Alex Shi @ 2012-07-26 15:07 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, a.p.zijlstra, alex.shi, tglx

Commit-ID:  6956dc568f34107f1d02b24f87efe7250803fc87
Gitweb:     http://git.kernel.org/tip/6956dc568f34107f1d02b24f87efe7250803fc87
Author:     Alex Shi <alex.shi@intel.com>
AuthorDate: Fri, 20 Jul 2012 14:19:50 +0800
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Thu, 26 Jul 2012 11:46:58 +0200

sched/numa: Add SD_PERFER_SIBLING to CPU domain

Commit 8e7fbcbc22c ("sched: Remove stale power aware scheduling remnants
and dysfunctional knobs") removed SD_PERFER_SIBLING from the CPU domain.

On NUMA machines this causes that load_balance() doesn't perfer LCPU in
 same physical CPU package.

It causes some actual performance regressions on our NUMA machines from
Core2 to NHM and SNB.

Adding this domain flag again recovers the performance drop.

This change doesn't have any bad impact on any of my benchmarks:
 specjbb, kbuild, fio, hackbench .. etc, on all my machines.

Signed-off-by: Alex Shi <alex.shi@intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1342765190-21540-1-git-send-email-alex.shi@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 include/linux/topology.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/topology.h b/include/linux/topology.h
index e91cd43..fec12d6 100644
--- a/include/linux/topology.h
+++ b/include/linux/topology.h
@@ -164,6 +164,7 @@ int arch_update_cpu_topology(void);
 				| 0*SD_SHARE_CPUPOWER			\
 				| 0*SD_SHARE_PKG_RESOURCES		\
 				| 0*SD_SERIALIZE			\
+				| 1*SD_PREFER_SIBLING			\
 				,					\
 	.last_balance		= jiffies,				\
 	.balance_interval	= 1,					\

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

end of thread, other threads:[~2012-07-26 15:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-20  6:19 [PATCH] sched/numa: recovered SD_PERFER_SIBLING on CPU domain Alex Shi
2012-07-20 12:58 ` Peter Zijlstra
2012-07-26 15:07 ` [tip:sched/urgent] sched/numa: Add SD_PERFER_SIBLING to " tip-bot for Alex Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox