diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-09-15 13:38:52 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-15 13:47:23 -0400 |
commit | e69b0f1b41c0e57bb1e29100b5810a5914efcb45 (patch) | |
tree | ded9f35988e907c1b9cf45cd2f536b920f5f65b7 /kernel/sched_features.h | |
parent | 63859d4fe4c97b737e7adbfe60acb1c2b2e668cb (diff) |
sched: Add a few SYNC hint knobs to play with
Currently we use overlap to weaken the SYNC hint, but allow it to
set the hint as well.
echo NO_SYNC_WAKEUP > /debug/sched_features
echo SYNC_MORE > /debug/sched_features
preserves pipe-test behaviour without using the WF_SYNC hint.
Worth playing with on more workloads...
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_features.h')
-rw-r--r-- | kernel/sched_features.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/sched_features.h b/kernel/sched_features.h index 294e10edd3c8..70115c69c7a9 100644 --- a/kernel/sched_features.h +++ b/kernel/sched_features.h | |||
@@ -63,6 +63,16 @@ SCHED_FEAT(SYNC_WAKEUPS, 1) | |||
63 | SCHED_FEAT(AFFINE_WAKEUPS, 1) | 63 | SCHED_FEAT(AFFINE_WAKEUPS, 1) |
64 | 64 | ||
65 | /* | 65 | /* |
66 | * Weaken SYNC hint based on overlap | ||
67 | */ | ||
68 | SCHED_FEAT(SYNC_LESS, 1) | ||
69 | |||
70 | /* | ||
71 | * Add SYNC hint based on overlap | ||
72 | */ | ||
73 | SCHED_FEAT(SYNC_MORE, 0) | ||
74 | |||
75 | /* | ||
66 | * Prefer to schedule the task we woke last (assuming it failed | 76 | * Prefer to schedule the task we woke last (assuming it failed |
67 | * wakeup-preemption), since its likely going to consume data we | 77 | * wakeup-preemption), since its likely going to consume data we |
68 | * touched, increases cache locality. | 78 | * touched, increases cache locality. |