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.
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@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@freeswitch.org http://www.freeswitchsolutions.com FreeSW > ITCH-powered IP PBX: The CudaTel Communication > Server http://www.cudatel.com Official FreeSWITCH > Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon. > com FreeSWITCH-users mailing > list FreeSWITCH-users@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 #freeswitch
Thanks, that's what I wanted to know. I did a few tests a while back using timerfd on micro-servers, but didn't notice any difference at all (with my scenarios). Out of curiosity, why is timerfd even in the source? Is there a specific use-case where it could perform better (embedded system, ...)? François. On Tue, 2013-02-12 at 10:21 -0600, Ken Rice 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@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@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSW > > ITCH-powered IP PBX: The CudaTel Communication > > Server > http://www.cudatel.com > > Official FreeSWITCH > > Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon. > > com > > FreeSWITCH-users mailing > > list > FreeSWITCH-users@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 > >
timerfd syscalls are automatically used by the default timer if your kernel supports it so mod_timerfd isn't necessary anymore. mod_posix_timer might give you better performance on old kernels that don't support timerfd. Chris On Feb 12, 2013, at 12:27 PM, François Delawarde <fdelawarde@wirelessmundi.com> wrote: > Thanks, that's what I wanted to know. I did a few tests a while back > using timerfd on micro-servers, but didn't notice any difference at all > (with my scenarios). > > Out of curiosity, why is timerfd even in the source? Is there a specific > use-case where it could perform better (embedded system, ...)? > > François. > > > > On Tue, 2013-02-12 at 10:21 -0600, Ken Rice 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@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@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSW >>> ITCH-powered IP PBX: The CudaTel Communication >>> Server >> http://www.cudatel.com >> >> Official FreeSWITCH >>> Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon. >>> com >> >> FreeSWITCH-users mailing >>> list >> FreeSWITCH-users@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 > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org
so does : freeswitch@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@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@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@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSW >> ITCH-powered IP PBX: The CudaTel Communication >> Server > http://www.cudatel.com > > Official FreeSWITCH >> Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon. >> com > > FreeSWITCH-users mailing >> list > FreeSWITCH-users@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 #freeswitch > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@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
Hello, That indicate that none of timer modules are loaded. Default "soft" timer used. If you want to try, you should load mod_timerfd/mod_posix_timer manualy or edit modules.conf.xml. 2013/2/13 jay binks <jaybinks@gmail.com> > so does : > > freeswitch@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@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@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@freeswitch.org > > http://www.freeswitchsolutions.com > > > > FreeSW > >> ITCH-powered IP PBX: The CudaTel Communication > >> Server > > http://www.cudatel.com > > > > Official FreeSWITCH > >> Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon. > >> com > > > > FreeSWITCH-users mailing > >> list > > FreeSWITCH-users@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 #freeswitch > > > > > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting@freeswitch.org > > http://www.freeswitchsolutions.com > > > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > > http://www.cudatel.com > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-users mailing list > > FreeSWITCH-users@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@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
'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@gmail.com> wrote: > so does : > > freeswitch@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@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@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@freeswitch.org > > http://www.freeswitchsolutions.com > > > > FreeSW > >> ITCH-powered IP PBX: The CudaTel Communication > >> Server > > http://www.cudatel.com > > > > Official FreeSWITCH > >> Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon. > >> com > > > > FreeSWITCH-users mailing > >> list > > FreeSWITCH-users@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 #freeswitch > > > > > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting@freeswitch.org > > http://www.freeswitchsolutions.com > > > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > > http://www.cudatel.com > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-users mailing list > > FreeSWITCH-users@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@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
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@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@gmail.com> wrote: >> so does : >> >> freeswitch@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@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@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@freeswitch.org >>> > http://www.freeswitchsolutions.com >>> > >>> > FreeSW >>>> >> ITCH-powered IP PBX: The CudaTel Communication >>>> >> Server >>> > http://www.cudatel.com >>> > >>> > Official FreeSWITCH >>>> >> Sites >>> > http://www.freeswitch.org >>> > http://wiki.freeswitch.org >>> > http://www.cluecon. >>>> >> com >>> > >>> > FreeSWITCH-users mailing >>>> >> list >>> > FreeSWITCH-users@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@freeswitch.org >>> > http://www.freeswitchsolutions.com >>> > >>> > FreeSWITCH-powered IP PBX: The CudaTel Communication Server >>> > http://www.cudatel.com >>> > >>> > Official FreeSWITCH Sites >>> > http://www.freeswitch.org >>> > http://wiki.freeswitch.org >>> > http://www.cluecon.com >>> > >>> > FreeSWITCH-users mailing list >>> > FreeSWITCH-users@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@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@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@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@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
Keep in mind you also need a recent glibc that supports timerfd. On Wed, Feb 13, 2013 at 9:55 AM, Ken Rice <krice@freeswitch.org> wrote: > 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@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@gmail.com> wrote: > > so does : > > freeswitch@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@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@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@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSW >>> ITCH-powered IP PBX: The CudaTel Communication >>> Server >> http://www.cudatel.com >> >> Official FreeSWITCH >>> Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon. >>> com >> >> FreeSWITCH-users mailing >>> list >> FreeSWITCH-users@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@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@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@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@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@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@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 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > -- Kristian Kielhofner
+1 Debian Lenny had timerfd in the kernel but not in glibc. There's an option --enable-timerfd-wrapper for such systems since there timerfd can be used via syscall. Squeeze and newer have it in both (so no need for the wrapper). -Steve On 13 February 2013 18:16, Kristian Kielhofner <kris@kriskinc.com> wrote: > Keep in mind you also need a recent glibc that supports timerfd. > > On Wed, Feb 13, 2013 at 9:55 AM, Ken Rice <krice@freeswitch.org> wrote: > > 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@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@gmail.com> wrote: > > > > so does : > > > > freeswitch@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@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@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@freeswitch.org > >> http://www.freeswitchsolutions.com > >> > >> FreeSW > >>> ITCH-powered IP PBX: The CudaTel Communication > >>> Server > >> http://www.cudatel.com > >> > >> Official FreeSWITCH > >>> Sites > >> http://www.freeswitch.org > >> http://wiki.freeswitch.org > >> http://www.cluecon. > >>> com > >> > >> FreeSWITCH-users mailing > >>> list > >> FreeSWITCH-users@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@freeswitch.org > >> http://www.freeswitchsolutions.com > >> > >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server > >> http://www.cudatel.com > >> > >> Official FreeSWITCH Sites > >> http://www.freeswitch.org > >> http://wiki.freeswitch.org > >> http://www.cluecon.com > >> > >> FreeSWITCH-users mailing list > >> FreeSWITCH-users@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@freeswitch.org > > http://www.freeswitchsolutions.com > > > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > > http://www.cudatel.com > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-users mailing list > > FreeSWITCH-users@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@freeswitch.org > > http://www.freeswitchsolutions.com > > > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > > http://www.cudatel.com > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-users mailing list > > FreeSWITCH-users@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 > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting@freeswitch.org > > http://www.freeswitchsolutions.com > > > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > > http://www.cudatel.com > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > > http://www.freeswitch.org > > > > > > -- > Kristian Kielhofner > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
Hey Kris, Do you know the version of glibc where they added that in? On 2/13/13 12:16 PM, "Kristian Kielhofner" <kris@kriskinc.com> wrote: > Keep in mind you also need a recent glibc that supports timerfd. > > On Wed, Feb 13, 2013 at 9:55 AM, Ken Rice <krice@freeswitch.org> wrote: >> 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@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@gmail.com> wrote: >> >> so does : >> >> freeswitch@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@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@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@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> FreeSW >>>> ITCH-powered IP PBX: The CudaTel Communication >>>> Server >>> http://www.cudatel.com >>> >>> Official FreeSWITCH >>>> Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon. >>>> com >>> >>> FreeSWITCH-users mailing >>>> list >>> FreeSWITCH-users@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@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >>> http://www.cudatel.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@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@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@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@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@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 >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@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
http://www.kernel.org/doc/man-pages/online/pages/man2/timerfd_create.2.html "These system calls are available on Linux since kernel 2.6.25. Library support is provided by glibc since version 2.8." On 13 February 2013 18:40, Ken Rice <krice@freeswitch.org> wrote: > Hey Kris, > > Do you know the version of glibc where they added that in? > > > On 2/13/13 12:16 PM, "Kristian Kielhofner" <kris@kriskinc.com> wrote: > > > Keep in mind you also need a recent glibc that supports timerfd. > > > > On Wed, Feb 13, 2013 at 9:55 AM, Ken Rice <krice@freeswitch.org> wrote: > >> 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@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@gmail.com> wrote: > >> > >> so does : > >> > >> freeswitch@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@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@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@freeswitch.org > >>> http://www.freeswitchsolutions.com > >>> > >>> FreeSW > >>>> ITCH-powered IP PBX: The CudaTel Communication > >>>> Server > >>> http://www.cudatel.com > >>> > >>> Official FreeSWITCH > >>>> Sites > >>> http://www.freeswitch.org > >>> http://wiki.freeswitch.org > >>> http://www.cluecon. > >>>> com > >>> > >>> FreeSWITCH-users mailing > >>>> list > >>> FreeSWITCH-users@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@freeswitch.org > >>> http://www.freeswitchsolutions.com > >>> > >>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server > >>> http://www.cudatel.com > >>> > >>> Official FreeSWITCH Sites > >>> http://www.freeswitch.org > >>> http://wiki.freeswitch.org > >>> http://www.cluecon.com > >>> > >>> FreeSWITCH-users mailing list > >>> FreeSWITCH-users@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@freeswitch.org > >> http://www.freeswitchsolutions.com > >> > >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server > >> http://www.cudatel.com > >> > >> Official FreeSWITCH Sites > >> http://www.freeswitch.org > >> http://wiki.freeswitch.org > >> http://www.cluecon.com > >> > >> FreeSWITCH-users mailing list > >> FreeSWITCH-users@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@freeswitch.org > >> http://www.freeswitchsolutions.com > >> > >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server > >> http://www.cudatel.com > >> > >> Official FreeSWITCH Sites > >> http://www.freeswitch.org > >> http://wiki.freeswitch.org > >> http://www.cluecon.com > >> > >> FreeSWITCH-users mailing list > >> FreeSWITCH-users@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 > >> > >> > _________________________________________________________________________ > >> Professional FreeSWITCH Consulting Services: > >> consulting@freeswitch.org > >> http://www.freeswitchsolutions.com > >> > >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server > >> http://www.cudatel.com > >> > >> Official FreeSWITCH Sites > >> http://www.freeswitch.org > >> http://wiki.freeswitch.org > >> http://www.cluecon.com > >> > >> FreeSWITCH-users mailing list > >> FreeSWITCH-users@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 > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
Hello, You should try each of timers on your system, as it depends of hardware,kernel version and kernel config too. On my ARM (Marvell Kirkwood at 1.2Ghz) with 3.2.38 PREEMPT RT kernel and "freeswitch -rt" best results, according to "timer_test 20 200", I get using mod_timerfd (+/- 1-3mks with rare spikes of 10-20mks), posix timers slightly worse. Soft timer working not very precise on my system. Sometimes it give periodic spikes of ~=150-200mks. I tried(hard enough) to tune softtimer with different switch.conf timing options, but this options is not well documented, so without success. P.S. Sorry for my English. 2013/2/12 François Delawarde <fdelawarde@wirelessmundi.com>
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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
<SNIP> we don¹t need all the previous messages on this thread What you need to know is that if you are using a kernel with timerfd support you do not need to do anything to use it, the Core will figure it out automagically and use it. This means main line kernels 2.6.22 and later and you are good to go. Doing a show timer on your FS console will reveal something like this... This is showing us the CORE_SOFTTIME_MODULE is being used for timing. The Core Timer uses timerfd freeswitch@devnode>show timer type,name,ikey timer,soft,CORE_SOFTTIMER_MODULE 1 total. If your kernel does not have timerfd support, then the old core soft timer is used... I¹ll look at a small patch so you can know for sure, but, if your kernel supports timerfd and you see CORE_SOFTTIMER_MODULE as the timer, you are using timerfd K
Mine says timer_soft instead of what you have -- I have certainly a recent kernel, how do I get timerfb going? Ken Rice <krice@freeswitch.org> wrote:
<SNIP> we don¹t need all the previous messages on this thread
What you need to know is that if you are using a kernel with timerfd support you do not need to do anything to use it, the Core will figure it out automagically and use it. This means main line kernels 2.6.22 and later and you are good to go.
Doing a show timer on your FS console will reveal something like this... This is showing us the CORE_SOFTTIME_MODULE is being used for timing. The Core Timer uses timerfd
freeswitch@devnode>show timer
type,name,ikey timer,soft,CORE_SOFTTIMER_MODULE
1 total.
If your kernel does not have timerfd support, then the old core soft timer is used...
I¹ll look at a small patch so you can know for sure, but, if your kernel supports timerfd and you see CORE_SOFTTIMER_MODULE as the timer, you are using timerfd
K
---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
Never mind, I already seem to have the correct show timer -- just a brain far. covici@ccs.covici.com wrote:
Mine says timer_soft instead of what you have -- I have certainly a recent kernel, how do I get timerfb going?
Ken Rice <krice@freeswitch.org> wrote:
<SNIP> we don¹t need all the previous messages on this thread
What you need to know is that if you are using a kernel with timerfd support you do not need to do anything to use it, the Core will figure it out automagically and use it. This means main line kernels 2.6.22 and later and you are good to go.
Doing a show timer on your FS console will reveal something like this... This is showing us the CORE_SOFTTIME_MODULE is being used for timing. The Core Timer uses timerfd
freeswitch@devnode>show timer
type,name,ikey timer,soft,CORE_SOFTTIMER_MODULE
1 total.
If your kernel does not have timerfd support, then the old core soft timer is used...
I¹ll look at a small patch so you can know for sure, but, if your kernel supports timerfd and you see CORE_SOFTTIMER_MODULE as the timer, you are using timerfd
K
---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
В Вто, 12/02/2013 в 18:36 -0600, Ken Rice пишет:
What you need to know is that if you are using a kernel with timerfd support you do not need to do anything to use it, the Core will figure it out automagically and use it. This means main line kernels 2.6.22 and later and you are good to go.
This automagic is really magic. But softtimer does not work well on my system. :( Kernel is latest (3.2.38-rt56 PREEMPT RT) and has all modern timing features as timerfd, clock_nanosleep, HR timer(1ns reported, 470ns measured by cyclictest -R),etc. --- switch.conf.xml --- <param name="enable-softtimer-timerfd" value="true"/> --- running freeswitch with -rp. freeswitch@internal> timer_test 20 200 Avg: 19.999ms Total Time: 3999.985ms 2013-02-13 03:46:05.326648 [CONSOLE] mod_commands.c:827 Timer Test: 1 sleep 20 20204 2013-02-13 03:46:05.346428 [CONSOLE] mod_commands.c:827 Timer Test: 2 sleep 20 19779 2013-02-13 03:46:05.366429 [CONSOLE] mod_commands.c:827 Timer Test: 3 sleep 20 20001 2013-02-13 03:46:05.386427 [CONSOLE] mod_commands.c:827 Timer Test: 4 sleep 20 19999 2013-02-13 03:46:05.406427 [CONSOLE] mod_commands.c:827 Timer Test: 5 sleep 20 19998 2013-02-13 03:46:05.426644 [CONSOLE] mod_commands.c:827 Timer Test: 6 sleep 20 20218 2013-02-13 03:46:05.446428 [CONSOLE] mod_commands.c:827 Timer Test: 7 sleep 20 19783 2013-02-13 03:46:05.466428 [CONSOLE] mod_commands.c:827 Timer Test: 8 sleep 20 20000 2013-02-13 03:46:05.486428 [CONSOLE] mod_commands.c:827 Timer Test: 9 sleep 20 20000 2013-02-13 03:46:05.506428 [CONSOLE] mod_commands.c:827 Timer Test: 10 sleep 20 20001 2013-02-13 03:46:05.526644 [CONSOLE] mod_commands.c:827 Timer Test: 11 sleep 20 20216 ... ------ freeswitch@internal> timer_test 20 200 timerfd Avg: 19.999ms Total Time: 3999.983ms 2013-02-13 03:48:02.726442 [CONSOLE] mod_commands.c:827 Timer Test: 1 sleep 20 19985 2013-02-13 03:48:02.746437 [CONSOLE] mod_commands.c:827 Timer Test: 2 sleep 20 20000 2013-02-13 03:48:02.766442 [CONSOLE] mod_commands.c:827 Timer Test: 3 sleep 20 20003 2013-02-13 03:48:02.786433 [CONSOLE] mod_commands.c:827 Timer Test: 4 sleep 20 19998 2013-02-13 03:48:02.806433 [CONSOLE] mod_commands.c:827 Timer Test: 5 sleep 20 19997 2013-02-13 03:48:02.826433 [CONSOLE] mod_commands.c:827 Timer Test: 6 sleep 20 20000 2013-02-13 03:48:02.846432 [CONSOLE] mod_commands.c:827 Timer Test: 7 sleep 20 19999 2013-02-13 03:48:02.866432 [CONSOLE] mod_commands.c:827 Timer Test: 8 sleep 20 20000 2013-02-13 03:48:02.886432 [CONSOLE] mod_commands.c:827 Timer Test: 9 sleep 20 20002 2013-02-13 03:48:02.906432 [CONSOLE] mod_commands.c:827 Timer Test: 10 sleep 20 20000 2013-02-13 03:48:02.926434 [CONSOLE] mod_commands.c:827 Timer Test: 11 sleep 20 20000 ... ----- Tried many timing switch.conf options, but always spikes ~=200mks on soft timer. What I can do to make soft timer more precise? Thanks.
I wouldn't worry too much about spikes of 200usec, do you have an actual problem with audio quality? /Peter 13 feb 2013 kl. 03:35 skrev "Dmitry Lysenko" <dvl36.ripe.nick@gmail.com>:
В Вто, 12/02/2013 в 18:36 -0600, Ken Rice пишет:
What you need to know is that if you are using a kernel with timerfd support you do not need to do anything to use it, the Core will figure it out automagically and use it. This means main line kernels 2.6.22 and later and you are good to go.
This automagic is really magic. But softtimer does not work well on my system. :( Kernel is latest (3.2.38-rt56 PREEMPT RT) and has all modern timing features as timerfd, clock_nanosleep, HR timer(1ns reported, 470ns measured by cyclictest -R),etc. --- switch.conf.xml --- <param name="enable-softtimer-timerfd" value="true"/> --- running freeswitch with -rp.
freeswitch@internal> timer_test 20 200 Avg: 19.999ms Total Time: 3999.985ms 2013-02-13 03:46:05.326648 [CONSOLE] mod_commands.c:827 Timer Test: 1 sleep 20 20204 2013-02-13 03:46:05.346428 [CONSOLE] mod_commands.c:827 Timer Test: 2 sleep 20 19779 2013-02-13 03:46:05.366429 [CONSOLE] mod_commands.c:827 Timer Test: 3 sleep 20 20001 2013-02-13 03:46:05.386427 [CONSOLE] mod_commands.c:827 Timer Test: 4 sleep 20 19999 2013-02-13 03:46:05.406427 [CONSOLE] mod_commands.c:827 Timer Test: 5 sleep 20 19998 2013-02-13 03:46:05.426644 [CONSOLE] mod_commands.c:827 Timer Test: 6 sleep 20 20218 2013-02-13 03:46:05.446428 [CONSOLE] mod_commands.c:827 Timer Test: 7 sleep 20 19783 2013-02-13 03:46:05.466428 [CONSOLE] mod_commands.c:827 Timer Test: 8 sleep 20 20000 2013-02-13 03:46:05.486428 [CONSOLE] mod_commands.c:827 Timer Test: 9 sleep 20 20000 2013-02-13 03:46:05.506428 [CONSOLE] mod_commands.c:827 Timer Test: 10 sleep 20 20001 2013-02-13 03:46:05.526644 [CONSOLE] mod_commands.c:827 Timer Test: 11 sleep 20 20216 ... ------ freeswitch@internal> timer_test 20 200 timerfd Avg: 19.999ms Total Time: 3999.983ms
2013-02-13 03:48:02.726442 [CONSOLE] mod_commands.c:827 Timer Test: 1 sleep 20 19985 2013-02-13 03:48:02.746437 [CONSOLE] mod_commands.c:827 Timer Test: 2 sleep 20 20000 2013-02-13 03:48:02.766442 [CONSOLE] mod_commands.c:827 Timer Test: 3 sleep 20 20003 2013-02-13 03:48:02.786433 [CONSOLE] mod_commands.c:827 Timer Test: 4 sleep 20 19998 2013-02-13 03:48:02.806433 [CONSOLE] mod_commands.c:827 Timer Test: 5 sleep 20 19997 2013-02-13 03:48:02.826433 [CONSOLE] mod_commands.c:827 Timer Test: 6 sleep 20 20000 2013-02-13 03:48:02.846432 [CONSOLE] mod_commands.c:827 Timer Test: 7 sleep 20 19999 2013-02-13 03:48:02.866432 [CONSOLE] mod_commands.c:827 Timer Test: 8 sleep 20 20000 2013-02-13 03:48:02.886432 [CONSOLE] mod_commands.c:827 Timer Test: 9 sleep 20 20002 2013-02-13 03:48:02.906432 [CONSOLE] mod_commands.c:827 Timer Test: 10 sleep 20 20000 2013-02-13 03:48:02.926434 [CONSOLE] mod_commands.c:827 Timer Test: 11 sleep 20 20000 ... ----- Tried many timing switch.conf options, but always spikes ~=200mks on soft timer. What I can do to make soft timer more precise? Thanks.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
!DSPAM:511af76f32761034681629!
В Срд, 13/02/2013 в 07:02 +0000, Peter Olsson пишет:
I wouldn't worry too much about spikes of 200usec, do you have an actual problem with audio quality?
/Peter Yes, I experienced problems with audio quality. I use mod_gsmopen, it work with hardware GSM modems via USB bus, and using timers in channel_read_frame() function. If work on reading of PCM frame will be done too late, this frame may be dropped, if too early - CNG frame may be generated. Adding a buffer increases the already large audio delay. It seems I resolved this problem by switching to realtime kernel, adding Flush() function to libctb serial library, and patching mod_gsmopen AUDIO_SYNC accordingly.
participants (9)
-
cmrienzo@gmail.com
-
covici@ccs.covici.com
-
Dmitry Lysenko
-
François Delawarde
-
jay binks
-
Ken Rice
-
Kristian Kielhofner
-
Peter Olsson
-
Steven Ayre