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"><<a href="mailto:mike@jerris.com">mike@jerris.com</a>></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'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">> Hi,<br>
><br>
> With really old kernels (100Hz) if You do sleep(1ms) You sleep for<br>
> 10ms on average.<br>
> With enterprise kernels (250Hz) Your sleep resolution increases by a<br>
> factor of 4.<br>
> With fresh kernels (1000Hz) You get real 1ms timer resolution -<br>
> 10fold increase compared to old kernels.<br>
><br>
> With tickless You get whatever resolution You want - eg when You<br>
> sleep for 100 microseconds(micro not mili) then You get exactly what<br>
> You wish for.<br>
><br>
> Now for reasons I do no try to understand :) there are a lot of<br>
> really short sleeps and fast timers in FreeSwitch - like 100<br>
> micro(1/10th of a ms).<br>
> So with CentOS such a 100 microsecond sleep cannot "fire" faster<br>
> then 250 times a second.<br>
> With tickless kernel same 100 microsecond sleep "fires" 10k times a<br>
> second.<br>
><br>
> 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>