diff options
author | Mike Galbraith <efault@gmx.de> | 2012-06-12 05:18:32 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-07-24 13:53:34 +0200 |
commit | 970e178985cadbca660feb02f4d2ee3a09f7fdda (patch) | |
tree | 20f47abb069a5d13940e8cdc48dae5f5563eb59a /kernel/watchdog.c | |
parent | a1cd2b13f754b2c56fb87b8c4912c015f8f57c0c (diff) | |
download | op-kernel-dev-970e178985cadbca660feb02f4d2ee3a09f7fdda.zip op-kernel-dev-970e178985cadbca660feb02f4d2ee3a09f7fdda.tar.gz |
sched: Improve scalability via 'CPU buddies', which withstand random perturbations
Traversing an entire package is not only expensive, it also leads to tasks
bouncing all over a partially idle and possible quite large package. Fix
that up by assigning a 'buddy' CPU to try to motivate. Each buddy may try
to motivate that one other CPU, if it's busy, tough, it may then try its
SMT sibling, but that's all this optimization is allowed to cost.
Sibling cache buddies are cross-wired to prevent bouncing.
4 socket 40 core + SMT Westmere box, single 30 sec tbench runs, higher is better:
clients 1 2 4 8 16 32 64 128
..........................................................................
pre 30 41 118 645 3769 6214 12233 14312
post 299 603 1211 2418 4697 6847 11606 14557
A nice increase in performance.
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1339471112.7352.32.camel@marge.simpson.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/watchdog.c')
0 files changed, 0 insertions, 0 deletions