Skip to content

Commit 6956dc5

Browse files
Alex ShiIngo Molnar
authored andcommitted
sched/numa: Add SD_PERFER_SIBLING to CPU domain
Commit 8e7fbcb ("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>
1 parent 8323f26 commit 6956dc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/topology.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ int arch_update_cpu_topology(void);
164164
| 0*SD_SHARE_CPUPOWER \
165165
| 0*SD_SHARE_PKG_RESOURCES \
166166
| 0*SD_SERIALIZE \
167+
| 1*SD_PREFER_SIBLING \
167168
, \
168169
.last_balance = jiffies, \
169170
.balance_interval = 1, \

0 commit comments

Comments
 (0)