sched/rt: Change default SCHED_RR timeslice from 100 ms to 1 jiffy
For us, it's most helpful to have the round-robin timeslice as low as is allowed by the scheduler to reduce latency. Since it's limited by the scheduler tick rate, just set the default to 1 jiffy, which is the lowest possible value. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
This commit is contained in:
parent
bb31f94813
commit
ae14413b9d
@ -59,9 +59,9 @@ extern void normalize_rt_tasks(void);
|
||||
|
||||
|
||||
/*
|
||||
* default timeslice is 100 msecs (used only for SCHED_RR tasks).
|
||||
* default timeslice is 1 jiffy (used only for SCHED_RR tasks).
|
||||
* Timeslices get refilled after they expire.
|
||||
*/
|
||||
#define RR_TIMESLICE (100 * HZ / 1000)
|
||||
#define RR_TIMESLICE (1)
|
||||
|
||||
#endif /* _LINUX_SCHED_RT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user