<br><font size=2 face="sans-serif">Greetings List,</font>
<br>
<br><font size=2 face="sans-serif">I have certain queries regarding the
maintenance of runqueues in Linux.</font>
<br><font size=2 face="sans-serif">In case of an SMP system, will a same
process be added to multiple runqueues? </font>
<br>
<br><font size=2 face="sans-serif">In the sample data given below, I am
seeing that the process "Appstart" is added to the runqueue on
CPU1, but it is not run on that CPU. Instead it is added to CPU0's runqueue,
and it is run on that CPU. I have not affined the process to any CPU, and
it is not multi-threaded.</font>
<br>
<br><font size=2 color=#000080 face="Courier New">CPU1 data:</font>
<br><font size=2 color=#000080 face="Courier New">Cpu: 1, HRT:<b> 1290079896.698994,
</b>Pid: 6577, Pname: Appstart added_to_runqueue, current process: irc(6103)</font>
<br><font size=2 color=#000080 face="Courier New">Cpu: 1, HRT: <b>1290079896.706994</b>,
Pid: 6103, Pname: irc added_to_runqueue,current process: swapper</font><font size=3 color=#000080 face="Courier New">(0)</font>
<br>
<br><font size=2 color=#000080 face="Courier New">CPU0 data:</font>
<br><font size=2 color=#000080 face="Courier New">Cpu: 0, HRT: <b>1290079896.702994</b>,
Pid: 6577, Pname: Appstart added_to_runqueue, Current process: eventd(5370)</font>
<br><font size=2 color=#000080 face="Courier New">Cpu: 0, HRT: <b>1290079896.702994</b>,
Pid: 14247, Pname: Conn_agent added_to_runqueue, Current process: Appstart(6577)<br>
</font>
<br><font size=2 face="Trebuchet MS">What is the default CPU on which a
process runs, if cpu affinity is not set?</font>
<br><font size=2 face="Trebuchet MS">Is it possible that a process added
to one runqueue can be moved to another runqueue?</font>
<br><font size=2 face="Trebuchet MS">Also I have seen swapper getting scheduled
frequently even if there are runnable processes. Shouldn't swapper be run,
only if there are no runnable processes?</font>
<br>
<br><font size=2 face="Trebuchet MS">Your insights will be appreciated.</font>
<br>
<br><font size=2 face="Trebuchet MS">Regards,</font>
<br><font size=2 face="Trebuchet MS">Sowmya</font><pre style="white-space:normal">=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>confidential or privileged information. If you are <br>not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you have received this communication in error, <br>please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<br><br><br></pre>