What is the time between 2 mi_switches in freebsd.
John Baldwin
jhb at freebsd.org
Wed Oct 8 19:11:11 UTC 2008
On Tuesday 07 October 2008 10:47:16 pm ushasri tummala wrote:
> What is the time between 2 mi_switches in freebsd?In which variable is this
> information stored?
>
> Could you plz help me out with this
There isn't a fixed timeslice due to preemption for interrupts, etc. However,
the default time slice is available as the kern.sched.quantum sysctl:
% sysctl -d kern.sched.quantum
kern.sched.quantum: Roundrobin scheduling quantum in microseconds
In the kernel it is stored as a static (private) variable in the scheduler
implementation.
--
John Baldwin
More information about the freebsd-hackers
mailing list