]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
sched: wakeup preempt when small overlap
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 20 Sep 2008 21:38:02 +0000 (23:38 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 22 Sep 2008 14:28:32 +0000 (16:28 +0200)
commit15afe09bf496ae10c989e1a375a6b5da7bd3e16e
tree4565659d1084e357eea42e6321a4d304ac950faa
parent09b22a2f678ae733801b888c44756d0abd686b8a
sched: wakeup preempt when small overlap

Lin Ming reported a 10% OLTP regression against 2.6.27-rc4.

The difference seems to come from different preemption agressiveness,
which affects the cache footprint of the workload and its effective
cache trashing.

Aggresively preempt a task if its avg overlap is very small, this should
avoid the task going to sleep and find it still running when we schedule
back to it - saving a wakeup.

Reported-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h
kernel/sched.c
kernel/sched_fair.c
kernel/sched_features.h
kernel/sched_idletask.c
kernel/sched_rt.c