+1<div><br></div><div>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.</div><div><br></div><div>Squeeze and newer have it in both (so no need for the wrapper).</div>
<div><br></div><div>-Steve</div><div><br></div><div><br><br><div class="gmail_quote">On 13 February 2013 18:16, Kristian Kielhofner <span dir="ltr"><<a href="mailto:kris@kriskinc.com" target="_blank">kris@kriskinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Keep in mind you also need a recent glibc that supports timerfd.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Feb 13, 2013 at 9:55 AM, Ken Rice <<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>> wrote:<br>
> Actually it defaults to using timerfd if its enabled in your kernel....<br>
> There should be no debate on that, I reviewed that code with tony...<br>
><br>
> If you don’t have a timerfd enabled kernel it uses the old default soft<br>
> timer... No you cant tell the difference in there currently with just a show<br>
> timer command, however that’s likely to change...<br>
><br>
> Are you running like centos6 or debian squeeze with a stock kernel? Then you<br>
> likely have timerfd and are using it unless you changed the configs to do<br>
> something else...<br>
><br>
> Theres always a lot of debate around this, but the fact is, unless you are<br>
> seeing crappy audio issues, you probably shouldn’t mess with the timers<br>
><br>
><br>
><br>
><br>
> On 2/13/13 4:31 AM, "Steven Ayre" <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
><br>
> 'show timer' shows all loaded timer modules. That shows none are loaded.<br>
><br>
> CORE_SOFTTIMER_MODULE is the soft timer built into the FS core... it may or<br>
> may not use timerfd, depending on your system.<br>
><br>
> You pick which timer to actually use in your configuration files... for<br>
> example the rtp-timer-name Sofia profile param.<br>
><br>
> Use the timer_test command to see which timer actually works best for you<br>
> (ie most accurate, least jitter).<br>
> <a href="http://wiki.freeswitch.org/wiki/Mod_commands#timer_test" target="_blank">http://wiki.freeswitch.org/wiki/Mod_commands#timer_test</a><br>
><br>
> -Steve<br>
><br>
><br>
><br>
> On 12 February 2013 22:48, jay binks <<a href="mailto:jaybinks@gmail.com">jaybinks@gmail.com</a>> wrote:<br>
><br>
> so does :<br>
><br>
> freeswitch@default> show timer<br>
> type,name,ikey<br>
> timer,soft,CORE_SOFTTIMER_MODULE<br>
><br>
> 1 total.<br>
><br>
> on FreeSWITCH Version 1.2.6+git~20130104T154559Z~a4247651ca (git<br>
> a424765 2013-01-04 15:45:59Z)<br>
><br>
> indicate it will be using timerfd calls or is this the old softtimer ?<br>
><br>
> On 13 February 2013 02:21, Ken Rice <<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>> wrote:<br>
>> The default one is the best one on linux with kernels starting around<br>
>> 2.6.32... Anything after that and you are good to go...<br>
>><br>
>> The other timers are left around for other platforms<br>
>><br>
>> K<br>
>><br>
>><br>
>><br>
>> On 2/12/13 10:04 AM, "François Delawarde" <<a href="mailto:fdelawarde@wirelessmundi.com">fdelawarde@wirelessmundi.com</a>><br>
>> wrote:<br>
>><br>
>>> Hello,<br>
>><br>
>> Could someone knowing the different FS timers clarify the<br>
>>> difference<br>
>> between those:<br>
>><br>
>> - default core softtimer<br>
>> - core heavy timer (does<br>
>>> this option still exists?)<br>
>> - posix timer<br>
>> - timerfd<br>
>><br>
>> Can any of those provide a<br>
>>> significant performance improvement, or is it<br>
>> just not worth switching from<br>
>>> the default?<br>
>><br>
>> In any case, which one would be the recommended/best one under<br>
>>> Linux<br>
>> with a relatively recent kernel<br>
>>> (>3.0)?<br>
>><br>
>> Thanks,<br>
>> François.<br>
>><br>
>><br>
>><br>
>> ________________________________________________<br>
>>> _________________________<br>
>> Professional FreeSWITCH Consulting<br>
>>> Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> FreeSW<br>
>>> ITCH-powered IP PBX: The CudaTel Communication<br>
>>> Server<br>
>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>><br>
>> Official FreeSWITCH<br>
>>> Sites<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>> <a href="http://www.cluecon" target="_blank">http://www.cluecon</a>.<br>
>>> com<br>
>><br>
>> FreeSWITCH-users mailing<br>
>>> list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman" target="_blank">http://lists.freeswitch.org/mailman</a><br>
>>> /listinfo/freeswitch-users<br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/opt" target="_blank">http://lists.freeswitch.org/mailman/opt</a><br>
>>> ions/freeswitch-users<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
>> --<br>
>> Ken<br>
>> <a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
>> <a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
>> <a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
>> <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> <<a href="http://irc.freenode.net" target="_blank">http://irc.freenode.net</a>> #freeswitch<br>
><br>
>><br>
>><br>
>><br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
><br>
><br>
><br>
> --<br>
> Sincerely<br>
><br>
> Jay<br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
><br>
><br>
><br>
> ________________________________<br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
><br>
><br>
> --<br>
> Ken<br>
> <a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
> <a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
> <a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
> <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
><br>
<br>
<br>
<br>
--<br>
</div></div><span class="HOEnZb"><font color="#888888">Kristian Kielhofner<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div>