[Freeswitch-users] FreeSWITCH under the Linux 2.6.29 kernel
Pablo Hernan Saro
pablosaro at gmail.com
Fri May 8 22:53:08 PDT 2009
IMHO, it is related with the following kernel options: CONFIG_HZ,
CONFIG_NO_HZ and CONFIG_HIGH_RES_TIMERS.
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
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%.
Hope it helps.
On Thu, Apr 30, 2009 at 3:48 PM, Michael Jerris <mike at jerris.com> wrote:
> 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:
> > Hi,
> > 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
> > second.
> > Pawel,
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users