lkml.org 
[lkml]   [2014]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 16/19] smart: change default RR timeslice to 5ms
Date
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


\
 
 \ /
  Last update: 2014-09-04 19:21    [W:0.144 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site