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:
Sultan Alsawaf 2021-01-27 23:07:44 -08:00 committed by Ksawlii
parent 0f92567070
commit 73ad55b1e6

View file

@ -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 */