Rewrite the answer of ``How can I verify which scheduler is in use on a

running system?'', making sure the kern.quantum vs. kern.sched.quantum
difference between FreeBSD 4.X and 5.X is mentioned.

PR:		docs/74917
Submitted by:	Juho Vuori <juho.vuori@kulma.net>
This commit is contained in:
Giorgos Keramidas 2004-12-16 13:02:04 +00:00
parent fae8f5f4e3
commit 2fb284c96c
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=23235

View file

@ -5376,14 +5376,18 @@ device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr</programlisting>
</question> </question>
<answer> <answer>
<para>Just type: <para>Check if you have a sysctl for the round-robin
<screen>&prompt.root; <userinput>sysctl kern.quantum</userinput></screen> scheduling quantum.
If you see This is called <literal>kern.quantum</literal> in pre-5.X
<screen>unknown oid 'kern.quantum'</screen> versions of &os; and <literal>kern.sched.quantum</literal>
it means that the current scheduler is <quote>SCHED_ULE</quote>, however, in &os; 5.X or later.
if you see When the sysctl exists, you will see something like this:
<screen>kern.quantum: 100000</screen> <screen>&prompt.user; sysctl <replaceable>kern.sched.quantum</replaceable>
then the original scheduler <quote>SCHED_4BSD</quote> is the current selection. kern.sched.quantum: 99960</screen>
When it does not exist, &man.sysctl.8; prints a different
message:
<screen>&prompt.user; sysctl <replaceable>kern.sched.quantum</replaceable>
sysctl: unknown oid 'kern.sched.quantum'</screen>
</para> </para>
</answer> </answer>
</qandaentry> </qandaentry>
@ -5398,8 +5402,18 @@ device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr</programlisting>
ticks a process can run without being preempted. It is ticks a process can run without being preempted. It is
specific to the 4BSD scheduler, so you can use its specific to the 4BSD scheduler, so you can use its
presence or absence to determine which scheduler is in presence or absence to determine which scheduler is in
use. use. In &os; 5.X or later <literal>kern.quantum</literal> has
</para> been renamed to <literal>kern.sched.quantum</literal>.</para>
</answer>
</qandaentry>
<qandaentry>
<question id="scheduler-kern-sched-quantum">
<para>What is <literal>kern.sched.quantum</literal>?</para>
</question>
<answer>
<para>See <xref linkend="scheduler-kern-quantum"></para>
</answer> </answer>
</qandaentry> </qandaentry>
</qandaset> </qandaset>