Messages in this thread Patch in this message | | | From | klamm@yandex-t ... | Subject | [PATCH 16/19] smart: change default RR timeslice to 5ms | Date | Thu, 4 Sep 2014 20:31:02 +0400 |
| |
From: Roman Gushchin <klamm@yandex-team.ru>
By default, SCHED_RR timeslice is 100ms. Change it to 5ms to achieve better responsibility.
Signed-off-by: Roman Gushchin <klamm@yandex-team.ru> --- include/linux/sched/rt.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/linux/sched/rt.h b/include/linux/sched/rt.h index 440434d..988eae8 100644 --- a/include/linux/sched/rt.h +++ b/include/linux/sched/rt.h @@ -59,6 +59,10 @@ extern void normalize_rt_tasks(void); * default timeslice is 100 msecs (used only for SCHED_RR tasks). * Timeslices get refilled after they expire. */ +#ifdef CONFIG_SMART +#define RR_TIMESLICE (5 * HZ / 1000) +#else #define RR_TIMESLICE (100 * HZ / 1000) +#endif #endif /* _SCHED_RT_H */ -- 1.9.3
| |