Jason:<br><br>IMHO, it is related with the following kernel options: CONFIG_HZ, CONFIG_NO_HZ and CONFIG_HIGH_RES_TIMERS.<br>Take a look at those options in your kernel and try modifying them until get the desired result. Google that options and you will find lots of discussions that will clarify your mind. Here you will find a simple explanation: <a href="http://www.smk.co.za/2007/07/21/a-tickless-kernel/">http://www.smk.co.za/2007/07/21/a-tickless-kernel/</a><br>

My configuration is 100 Hz + tickless + High-Res timers and everything goes perfect. When system is idle and FS has no calls, I see my CPU at 0%.<br>Hope it helps.<br><br>Pablo<br><br><div class="gmail_quote">On Thu, Apr 30, 2009 at 3:48 PM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Can you point out any place we do sub milli second sleeps?  The timer<br>
thread should be doing 1ms, I can&#39;t think of any that would be less.<br>
<br>
MIke<br>
<div class="im"><br>
On Apr 30, 2009, at 2:28 PM, Pawe³ Pier¶cionek wrote:<br>
<br>
</div><div><div></div><div class="h5">&gt; Hi,<br>
&gt;<br>
&gt;  With really old kernels (100Hz) if You do sleep(1ms)  You sleep for<br>
&gt; 10ms on average.<br>
&gt;  With enterprise kernels (250Hz) Your sleep resolution increases by a<br>
&gt; factor of 4.<br>
&gt;  With fresh kernels (1000Hz) You get real 1ms timer resolution -<br>
&gt; 10fold increase compared to old kernels.<br>
&gt;<br>
&gt;  With tickless You get whatever resolution You want - eg when You<br>
&gt; sleep for 100 microseconds(micro not mili) then You get exactly what<br>
&gt; You wish for.<br>
&gt;<br>
&gt;  Now for reasons I do no try to understand :) there are a lot of<br>
&gt; really short sleeps and fast timers in FreeSwitch - like 100<br>
&gt; micro(1/10th of a ms).<br>
&gt;  So with CentOS such a 100 microsecond sleep cannot &quot;fire&quot; faster<br>
&gt; then 250 times a second.<br>
&gt;  With tickless kernel same 100 microsecond sleep &quot;fires&quot; 10k times a<br>
&gt; second.<br>
&gt;<br>
&gt; Pawel,<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>