Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2008 14:06:14 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        ushasri tummala <tummala.ushasri@gmail.com>
Subject:   Re: What is the time between 2 mi_switches in freebsd.
Message-ID:  <200810081406.14916.jhb@freebsd.org>
In-Reply-To: <53fa490b0810071947j23fc0f72n5360b6f174ddc96d@mail.gmail.com>
References:  <53fa490b0810071947j23fc0f72n5360b6f174ddc96d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810081406.14916.jhb>