Commit b53c4efb authored by Con Kolivas's avatar Con Kolivas Committed by Linus Torvalds

[PATCH] sched: adjust_timeslice_granularity

The minimum timeslice was decreased from 10ms to 5ms.  In the process, the
timeslice granularity was leading to much more rapid round robinning of
interactive tasks at cache trashing levels.

Restore minimum granularity to 10ms.
Signed-off-by: default avatarCon Kolivas <kernel@kolivas.org>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a2e135bb
...@@ -132,12 +132,14 @@ ...@@ -132,12 +132,14 @@
(NS_TO_JIFFIES((p)->sleep_avg) * MAX_BONUS / \ (NS_TO_JIFFIES((p)->sleep_avg) * MAX_BONUS / \
MAX_SLEEP_AVG) MAX_SLEEP_AVG)
#define GRANULARITY (10 * HZ / 1000 ? : 1)
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
#define TIMESLICE_GRANULARITY(p) (MIN_TIMESLICE * \ #define TIMESLICE_GRANULARITY(p) (GRANULARITY * \
(1 << (((MAX_BONUS - CURRENT_BONUS(p)) ? : 1) - 1)) * \ (1 << (((MAX_BONUS - CURRENT_BONUS(p)) ? : 1) - 1)) * \
num_online_cpus()) num_online_cpus())
#else #else
#define TIMESLICE_GRANULARITY(p) (MIN_TIMESLICE * \ #define TIMESLICE_GRANULARITY(p) (GRANULARITY * \
(1 << (((MAX_BONUS - CURRENT_BONUS(p)) ? : 1) - 1))) (1 << (((MAX_BONUS - CURRENT_BONUS(p)) ? : 1) - 1)))
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment