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> Change-Id: I6c9f6bb5bbadf363efb719d3e30b0b073654d688
This commit is contained in:
parent
0f92567070
commit
73ad55b1e6
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue