[Freeswitch-users] best freeswitch timer
Ken Rice
krice at freeswitch.org
Wed Feb 13 17:55:33 MSK 2013
Actually it defaults to using timerfd if its enabled in your kernel....
There should be no debate on that, I reviewed that code with tony...
If you don¹t have a timerfd enabled kernel it uses the old default soft
timer... No you cant tell the difference in there currently with just a show
timer command, however that¹s likely to change...
Are you running like centos6 or debian squeeze with a stock kernel? Then you
likely have timerfd and are using it unless you changed the configs to do
something else...
Theres always a lot of debate around this, but the fact is, unless you are
seeing crappy audio issues, you probably shouldn¹t mess with the timers
On 2/13/13 4:31 AM, "Steven Ayre" <steveayre at gmail.com> wrote:
> 'show timer' shows all loaded timer modules. That shows none are loaded.
>
> CORE_SOFTTIMER_MODULE is the soft timer built into the FS core... it may or
> may not use timerfd, depending on your system.
>
> You pick which timer to actually use in your configuration files... for
> example the rtp-timer-name Sofia profile param.
>
> Use the timer_test command to see which timer actually works best for you (ie
> most accurate, least jitter).
> http://wiki.freeswitch.org/wiki/Mod_commands#timer_test
>
> -Steve
>
>
>
> On 12 February 2013 22:48, jay binks <jaybinks at gmail.com> wrote:
>> so does :
>>
>> freeswitch at default> show timer
>> type,name,ikey
>> timer,soft,CORE_SOFTTIMER_MODULE
>>
>> 1 total.
>>
>> on FreeSWITCH Version 1.2.6+git~20130104T154559Z~a4247651ca (git
>> a424765 2013-01-04 15:45:59Z)
>>
>> indicate it will be using timerfd calls or is this the old softtimer ?
>>
>> On 13 February 2013 02:21, Ken Rice <krice at freeswitch.org> wrote:
>>> > The default one is the best one on linux with kernels starting around
>>> > 2.6.32... Anything after that and you are good to go...
>>> >
>>> > The other timers are left around for other platforms
>>> >
>>> > K
>>> >
>>> >
>>> >
>>> > On 2/12/13 10:04 AM, "François Delawarde" <fdelawarde at wirelessmundi.com>
>>> > wrote:
>>> >
>>>> >> Hello,
>>> >
>>> > Could someone knowing the different FS timers clarify the
>>>> >> difference
>>> > between those:
>>> >
>>> > - default core softtimer
>>> > - core heavy timer (does
>>>> >> this option still exists?)
>>> > - posix timer
>>> > - timerfd
>>> >
>>> > Can any of those provide a
>>>> >> significant performance improvement, or is it
>>> > just not worth switching from
>>>> >> the default?
>>> >
>>> > In any case, which one would be the recommended/best one under
>>>> >> Linux
>>> > with a relatively recent kernel
>>>> >> (>3.0)?
>>> >
>>> > Thanks,
>>> > François.
>>> >
>>> >
>>> >
>>> > ________________________________________________
>>>> >> _________________________
>>> > Professional FreeSWITCH Consulting
>>>> >> Services:
>>> > consulting at freeswitch.org
>>> > http://www.freeswitchsolutions.com
>>> >
>>> > FreeSW
>>>> >> ITCH-powered IP PBX: The CudaTel Communication
>>>> >> Server
>>> >
>>> >
>>> > Official FreeSWITCH
>>>> >> Sites
>>> > http://www.freeswitch.org
>>> > http://wiki.freeswitch.org
>>> > http://www.cluecon.
>>>> >> com
>>> >
>>> > FreeSWITCH-users mailing
>>>> >> list
>>> > FreeSWITCH-users at lists.freeswitch.org
>>> > http://lists.freeswitch.org/mailman
>>>> >> /listinfo/freeswitch-users
>>> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/opt
>>>> >> ions/freeswitch-users
>>> > http://www.freeswitch.org
>>> >
>>> >
>>> > --
>>> > Ken
>>> > http://www.FreeSWITCH.org
>>> > http://www.ClueCon.com
>>> > http://www.OSTAG.org
>>> > irc.freenode.net <http://irc.freenode.net> #freeswitch
>>> >
>>> >
>>> >
>>> > _________________________________________________________________________
>>> > Professional FreeSWITCH Consulting Services:
>>> > consulting at freeswitch.org
>>> > http://www.freeswitchsolutions.com
>>> >
>>> >
>>> >
>>> >
>>> > Official FreeSWITCH Sites
>>> > http://www.freeswitch.org
>>> > http://wiki.freeswitch.org
>>> > http://www.cluecon.com
>>> >
>>> > FreeSWITCH-users mailing list
>>> > FreeSWITCH-users at lists.freeswitch.org
>>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> > http://www.freeswitch.org
>>
>>
>>
>> --
>> Sincerely
>>
>> Jay
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
--
Ken
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
irc.freenode.net #freeswitch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130213/701f7a6f/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list