2009-09-10 20:34:48 +02:00
|
|
|
SCHED_FEAT(NEW_FAIR_SLEEPERS, 0)
|
2009-01-14 12:39:19 +01:00
|
|
|
SCHED_FEAT(NORMALIZED_SLEEPER, 0)
|
|
|
|
SCHED_FEAT(ADAPTIVE_GRAN, 1)
|
2008-04-19 19:45:00 +02:00
|
|
|
SCHED_FEAT(WAKEUP_PREEMPT, 1)
|
|
|
|
SCHED_FEAT(START_DEBIT, 1)
|
|
|
|
SCHED_FEAT(AFFINE_WAKEUPS, 1)
|
|
|
|
SCHED_FEAT(CACHE_HOT_BUDDY, 1)
|
|
|
|
SCHED_FEAT(SYNC_WAKEUPS, 1)
|
2008-10-20 14:27:43 +02:00
|
|
|
SCHED_FEAT(HRTICK, 0)
|
2008-04-19 19:45:00 +02:00
|
|
|
SCHED_FEAT(DOUBLE_TICK, 0)
|
2008-06-27 13:41:12 +02:00
|
|
|
SCHED_FEAT(ASYM_GRAN, 1)
|
2008-08-20 12:44:55 +02:00
|
|
|
SCHED_FEAT(LB_BIAS, 1)
|
2008-06-27 13:41:35 +02:00
|
|
|
SCHED_FEAT(LB_WAKEUP_UPDATE, 1)
|
2008-06-27 13:41:39 +02:00
|
|
|
SCHED_FEAT(ASYM_EFF_LOAD, 1)
|
2008-09-22 16:29:00 +02:00
|
|
|
SCHED_FEAT(WAKEUP_OVERLAP, 0)
|
sched: backward looking buddy
Impact: improve/change/fix wakeup-buddy scheduling
Currently we only have a forward looking buddy, that is, we prefer to
schedule to the task we last woke up, under the presumption that its
going to consume the data we just produced, and therefore will have
cache hot benefits.
This allows co-waking producer/consumer task pairs to run ahead of the
pack for a little while, keeping their cache warm. Without this, we
would interleave all pairs, utterly trashing the cache.
This patch introduces a backward looking buddy, that is, suppose that
in the above scenario, the consumer preempts the producer before it
can go to sleep, we will therefore miss the wakeup from consumer to
producer (its already running, after all), breaking the cycle and
reverting to the cache-trashing interleaved schedule pattern.
The backward buddy will try to schedule back to the task that woke us
up in case the forward buddy is not available, under the assumption
that the last task will be the one with the most cache hot task around
barring current.
This will basically allow a task to continue after it got preempted.
In order to avoid starvation, we allow either buddy to get wakeup_gran
ahead of the pack.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-11-04 21:25:09 +01:00
|
|
|
SCHED_FEAT(LAST_BUDDY, 1)
|
2009-01-12 14:01:47 +01:00
|
|
|
SCHED_FEAT(OWNER_SPIN, 1)
|