Browse by category

Search    |    Advanced search

How can I verify which scheduler is in use on a running system?

Check and see if the kern.sched.quantum directive is in the sysctl file. If you have it, you should see something like this:

% sysctl kern.sched.quantum
kern.sched.quantum: 99960

If the kern.sched.quantum sysctl exists, you are using the 4BSD scheduler. If not, you will get an error printed by sysctl(8) (which you can safely ignore):

% sysctl kern.sched.quantum
sysctl: unknown oid 'kern.sched.quantum'

The name of the scheduler currently being used is directly available as the value of the sysctl:

% sysctl 4BSD
Add comment
Views: 1342
Votes: 0
Comments: 0

Other articles in this Category