It's an alternative method of providing timing. When FS wants to wait for, say, 10ms it uses a timer module to wait that period of time. The software one uses delays and attempts to calibrate itself for clock drift. mod_kqueue uses an interval timer that BSD provides which is hopefully also accurate, a similar idea to mod_timerfd. The testing is more to see whether that's actually the case or whether the software one turns out to be more reliable.<br>
<br>You can do a quick test using the commands "timer_test 10 200 soft" and "timer_test 10 200 kqueue". They'll each try sleeping for 10ms 200 times but using first the software timer and then the kqueue one. You'll see that nothing every sleeps exactly 10ms. It'll tell you how long it took to do, ideally it'll be pretty close to 10ms*200 = 2s, but if it's not working well it might take longer (or less time). It'll also tell you the average time it slept for, which should be approximately 10ms. The closer the better.<br>
There are also several other intervals that would need to be tried, e.g. 10,20,40,60,120.<br>
<br>The second test is updating your configuration to see whether your audio quality is better, worse or about the same. For mod_sofia calls that's done by setting <param name="timer-name" value="kqueue"/> on the SIP profiles.<br>
<br>It's highly experimental, so I'd suggest if you are going to try it out you don't use it for production traffic just yet.<br><br>-Steve<br><br><br><br><br><div class="gmail_quote">On 7 July 2011 14:50, Tim St. Pierre <span dir="ltr"><<a href="mailto:fs-list@communicatefreely.net" target="_blank">fs-list@communicatefreely.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Steven,<br>
<br>
Yes, we are running our FreeSwitch deployment on FreeBSD 8.1 and 8.2 I<br>
would be glad to try it out, although it might be a few days before I<br>
get to it.<br>
<br>
What is it's purpose, and how would I know if it's working well or not?<br>
<br>
Thanks!<br>
<br>
-Tim<br>
<div><div></div><div><br>
Steven Ayre wrote:<br>
> Hi everyone,<br>
><br>
> I've submitted a Jira with a proposed new mod_kqueue timer module.<br>
> This is a BSD equivalent of mod_timerfd.<br>
> <a href="http://jira.freeswitch.org/browse/FS-3398" target="_blank">http://jira.freeswitch.org/browse/FS-3398</a><br>
><br>
> I'd appreciate it if anyone that uses FreeSWITCH on BSD that feels<br>
> like it would give it a quick test to see how well it works.<br>
><br>
> To install it:<br>
> - Create a new directory src/mod/timers/mod_kqueue<br>
> - Place the mod_kqueue.c file from the jira in that directory<br>
> - Add timers/mod_kqueue to modules.conf<br>
> - Build and install<br>
> - Load it from modules.conf.xml or fs_cli.<br>
><br>
> Regards,<br>
> Steven Ayre<br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</blockquote></div><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div>
<div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div>
<div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>