[Freeswitch-users] FreeSWITCH under the Linux 2.6.29 kernel
mike at jerris.com
Thu Apr 30 11:48:21 PDT 2009
Can you point out any place we do sub milli second sleeps? The timer
thread should be doing 1ms, I can't think of any that would be less.
On Apr 30, 2009, at 2:28 PM, Paweł Pierścionek wrote:
> With really old kernels (100Hz) if You do sleep(1ms) You sleep for
> 10ms on average.
> With enterprise kernels (250Hz) Your sleep resolution increases by a
> factor of 4.
> With fresh kernels (1000Hz) You get real 1ms timer resolution -
> 10fold increase compared to old kernels.
> With tickless You get whatever resolution You want - eg when You
> sleep for 100 microseconds(micro not mili) then You get exactly what
> You wish for.
> Now for reasons I do no try to understand :) there are a lot of
> really short sleeps and fast timers in FreeSwitch - like 100
> micro(1/10th of a ms).
> So with CentOS such a 100 microsecond sleep cannot "fire" faster
> then 250 times a second.
> With tickless kernel same 100 microsecond sleep "fires" 10k times a
More information about the FreeSWITCH-users