sched: Check for an idle shared cache in select_task_rq_fair()
commitc2f1953231c6e99777633761c3bc0d2ca7ead20a
authorMike Galbraith <efault@gmx.de>
Tue, 27 Oct 2009 14:35:38 +0000 (27 15:35 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:03:12 +0000 (18 14:03 -0800)
treeff609b6d242a97f0262ddbc9cd7baec077742016
parent7f112f35f0da073a10d4d3bfdfcef2955555e4f7
sched: Check for an idle shared cache in select_task_rq_fair()

commit a1f84a3ab8e002159498814eaa7e48c33752b04b upstream.

When waking affine, check for an idle shared cache, and if
found, wake to that CPU/sibling instead of the waker's CPU.

This improves pgsql+oltp ramp up by roughly 8%. Possibly more
for other loads, depending on overlap. The trade-off is a
roughly 1% peak downturn if tasks are truly synchronous.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <1256654138.17752.7.camel@marge.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/sched_fair.c