I'm looking for the value of the time slice (or quantum) of my Linux kernel.
Specific Questions:
/proc
file which expose such an information ?CFS (which is default scheduler for processes) has no fixed timeslice, it is calculated at runtime depending of targeted latency (sysctl_sched_latency
) and number of running processes. Timeslice could never be less than minimum granularity (sysctl_sched_min_granularity
).
Timeslice will be always between sysctl_sched_min_granularity
and sysctl_sched_latency
, which are defaults to 0.75 ms and 6 ms respectively and defined in kernel/sched/fair.c.
But actual timeslice isn't exported to user-space.