Hi Stephen,<div><br></div><div>I spent most of last week working out how to upgrade the kernel timer from 100HZ to 1000HZ on ubuntu on AWS. I documented the steps I took here:</div><div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Amazon_EC2#Updating_Kernel_Timer_to_1000HZ">http://wiki.freeswitch.org/wiki/Amazon_EC2#Updating_Kernel_Timer_to_1000HZ</a></div>

<div><br></div><div>Making that change gave us a noticeable jump in call quality.</div><div><br clear="all">Cheers,<br>Fraser<br><br><br>
<br><br><div class="gmail_quote">On 17 November 2011 08:49, Stephen Dame <span dir="ltr">&lt;<a href="mailto:sdame@207me.com">sdame@207me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I’m running freeswitch on about 40  different m1.small c1.medium’s in AWS regions, us-east, us-west, eu-west, and asia….  They are used in videoconf component of BigBlueButton.org .   For most part they work great… There are occasional issues with voip quality but the app is 100% voip, with the BBB client all browser based.  So the conference is subject to every ones local network connections and most issues “blamed” on the internet instead of freeswitch </span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">  We also tie in skype and DID direct to improve latency for some clients.  But expectations are set so we meet them.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">You probably have tougher business conferencing clients that want perfect audio.  But these are production deployed and generate revenue.      All these are on Ubuntu 10.04 official amis with no mods to kernels.  <u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I’m sure there are tweaks that can be made, and bare metal solutions that would work a little better…  Does anyone have any ideas how to optimize a Ubuntu instance.  I would engage in a few hours of consulting is so.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">The tests below are interesting but above my paygrade to understand what they mean? <u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I’m running them but don’t have a clue how to interpret.  If you want a simple of real running data, would be glad to run sample tests on these distributed servers and provide back for analysis.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards,<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Stephen<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael Picher<br>

<b>Sent:</b> Thursday, November 17, 2011 8:03 AM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Timing issues in AWS?<u></u><u></u></span></p></div><div><div class="h5"><p class="MsoNormal">

<u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">Not having anywhere near the same trouble in a Xen Server in my lab...<br><br>Although test_time is skewed 180 degrees from what it was in AWS....<br><br>

freeswitch@internal&gt; timer_test 120 10<u></u><u></u></p><div style="margin-left:30.0pt"><p class="MsoNormal">Avg: 119.945ms Total Time: 1199.727ms<br><br>2011-11-17 07:57:22.721105 [CONSOLE] mod_commands.c:461 Timer Test: samplecount after init: 1<br>

2011-11-17 07:57:22.751026 [CONSOLE] mod_commands.c:466 Timer Test: samplecount after first step: 2<br>2011-11-17 07:57:22.872047 [CONSOLE] mod_commands.c:475 Timer Test: 1 sleep 120 120993<br>2011-11-17 07:57:22.990983 [CONSOLE] mod_commands.c:475 Timer Test: 2 sleep 120 118914<br>

2011-11-17 07:57:23.110953 [CONSOLE] mod_commands.c:475 Timer Test: 3 sleep 120 119919<br>2011-11-17 07:57:23.230928 [CONSOLE] mod_commands.c:475 Timer Test: 4 sleep 120 120032<br>2011-11-17 07:57:23.350831 [CONSOLE] mod_commands.c:475 Timer Test: 5 sleep 120 119802<br>

2011-11-17 07:57:23.470886 [CONSOLE] mod_commands.c:475 Timer Test: 6 sleep 120 119999<br>2011-11-17 07:57:23.590873 [CONSOLE] mod_commands.c:475 Timer Test: 7 sleep 120 119975<br>2011-11-17 07:57:23.710893 [CONSOLE] mod_commands.c:475 Timer Test: 8 sleep 120 120003<br>

2011-11-17 07:57:23.830774 [CONSOLE] mod_commands.c:475 Timer Test: 9 sleep 120 119849<br>2011-11-17 07:57:23.950808 [CONSOLE] mod_commands.c:475 Timer Test: 10 sleep 120 119971<u></u><u></u></p></div><p class="MsoNormal">

<br>freeswitch@internal&gt; time_test 600 10<u></u><u></u></p><div style="margin-left:30.0pt"><p class="MsoNormal">test 1 sleep 600 1<br>test 2 sleep 600 1<br>test 3 sleep 600 0<br>test 4 sleep 600 1<br>test 5 sleep 600 0<br>

test 6 sleep 600 1<br>test 7 sleep 600 1<br>test 8 sleep 600 0<br>test 9 sleep 600 0<br>test 10 sleep 600 1<br>avg 0<u></u><u></u></p></div><p class="MsoNormal"><br>[root@openuc bin]# uname -r<u></u><u></u></p><div style="margin-left:30.0pt">

<p class="MsoNormal">2.6.18-274.7.1.el5<u></u><u></u></p></div><p class="MsoNormal"><br>[root@openuc bin]# grep CONFIG_HZ /boot/config-*<u></u><u></u></p><div style="margin-left:30.0pt"><p class="MsoNormal">/boot/config-2.6.18-238.12.1.el5:# CONFIG_HZ_100 is not set<br>

/boot/config-2.6.18-238.12.1.el5:# CONFIG_HZ_250 is not set<br>/boot/config-2.6.18-238.12.1.el5:CONFIG_HZ_1000=y<br>/boot/config-2.6.18-238.12.1.el5:CONFIG_HZ=1000<br>/boot/config-2.6.18-238.19.1.el5:# CONFIG_HZ_100 is not set<br>

/boot/config-2.6.18-238.19.1.el5:# CONFIG_HZ_250 is not set<br>/boot/config-2.6.18-238.19.1.el5:CONFIG_HZ_1000=y<br>/boot/config-2.6.18-238.19.1.el5:CONFIG_HZ=1000<br>/boot/config-2.6.18-238.9.1.el5:# CONFIG_HZ_100 is not set<br>

/boot/config-2.6.18-238.9.1.el5:# CONFIG_HZ_250 is not set<br>/boot/config-2.6.18-238.9.1.el5:CONFIG_HZ_1000=y<br>/boot/config-2.6.18-238.9.1.el5:CONFIG_HZ=1000<br>/boot/config-2.6.18-274.3.1.el5:# CONFIG_HZ_100 is not set<br>

/boot/config-2.6.18-274.3.1.el5:# CONFIG_HZ_250 is not set<br>/boot/config-2.6.18-274.3.1.el5:CONFIG_HZ_1000=y<br>/boot/config-2.6.18-274.3.1.el5:CONFIG_HZ=1000<br>/boot/config-2.6.18-274.7.1.el5:# CONFIG_HZ_100 is not set<br>

/boot/config-2.6.18-274.7.1.el5:# CONFIG_HZ_250 is not set<br>/boot/config-2.6.18-274.7.1.el5:CONFIG_HZ_1000=y<br>/boot/config-2.6.18-274.7.1.el5:CONFIG_HZ=1000<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">

<br>Thoughts as to why AWS results are so different from XenServer?  Other than not knowing who else is on the AWS box?<br><br>Thanks,<br>  Mike<br><br><br><u></u><u></u></p><div><p class="MsoNormal">On Wed, Nov 16, 2011 at 11:56 AM, Michael Picher &lt;<a href="mailto:mpicher@gmail.com" target="_blank">mpicher@gmail.com</a>&gt; wrote:<u></u><u></u></p>

<p class="MsoNormal">m1.large<br><br>I have a c1.xlarge queued up and ready to test...<u></u><u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">On Wed, Nov 16, 2011 at 11:52 AM, Chris Chen &lt;<a href="mailto:chris.chen2004@gmail.com" target="_blank">chris.chen2004@gmail.com</a>&gt; wrote:<u></u><u></u></p>

<p class="MsoNormal">Just a simple question, what kind of AWS instance are you running your FreeSWITCH?<u></u><u></u></p><div><p class="MsoNormal">It makes huge difference.<u></u><u></u></p></div><div><p class="MsoNormal">

Thanks,<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Chris<u></u><u></u></p><div><div><div><p class="MsoNormal">On Wed, Nov 16, 2011 at 10:43 AM, Michael Picher &lt;<a href="mailto:mpicher@gmail.com" target="_blank">mpicher@gmail.com</a>&gt; wrote:<u></u><u></u></p>

</div></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal">Hi guys,<br><br>Trying to get to the bottom of some conference bridge issues I&#39;m having with running the system in AWS.<br>

<br>We&#39;re hearing a bunch of snap-crackle-pops in conference bridges and when I tcpdum on the server itself I see them in the RTP and see RTP timestamp problems.<br><br>I&#39;ve run the following:<br><br><br>timer_test<u></u><u></u></p>

<div style="margin-left:30.0pt"><p class="MsoNormal" style="margin-bottom:12.0pt">freeswitch@127.0.0.1@internal&gt; timer_test 120 10<u></u><u></u></p></div><div style="margin-left:30.0pt"><p class="MsoNormal">Avg: 120.004ms Total Time: 1200.315ms<u></u><u></u></p>

</div><p class="MsoNormal"><u></u> <u></u></p><div style="margin-left:30.0pt"><p class="MsoNormal">2011-11-16 10:25:56.121131 [CONSOLE] mod_commands.c:461 Timer Test: samplecount after init: 1<br>freeswitch@127.0.0.1@internal&gt; 2011-11-16 10:25:56.219163 [CONSOLE] mod_commands.c:466 Timer Test: samplecount after first step: 2<br>

2011-11-16 10:25:56.339195 [CONSOLE] mod_commands.c:475 Timer Test: 1 sleep 120 120006<br>2011-11-16 10:25:56.459259 [CONSOLE] mod_commands.c:475 Timer Test: 2 sleep 120 120040<br>2011-11-16 10:25:56.579259 [CONSOLE] mod_commands.c:475 Timer Test: 3 sleep 120 119976<br>

2011-11-16 10:25:56.699291 [CONSOLE] mod_commands.c:475 Timer Test: 4 sleep 120 120007<br>2011-11-16 10:25:56.819318 [CONSOLE] mod_commands.c:475 Timer Test: 5 sleep 120 120001<br>2011-11-16 10:25:56.939375 [CONSOLE] mod_commands.c:475 Timer Test: 6 sleep 120 120031<br>

2011-11-16 10:25:57.059397 [CONSOLE] mod_commands.c:475 Timer Test: 7 sleep 120 119996<br>2011-11-16 10:25:57.179422 [CONSOLE] mod_commands.c:475 Timer Test: 8 sleep 120 119994<br>2011-11-16 10:25:57.299461 [CONSOLE] mod_commands.c:475 Timer Test: 9 sleep 120 120005<br>

2011-11-16 10:25:57.419478 [CONSOLE] mod_commands.c:475 Timer Test: 10 sleep 120 119991<u></u><u></u></p></div><p class="MsoNormal"><br>test_time<u></u><u></u></p><div style="margin-left:30.0pt"><p class="MsoNormal">freeswitch@127.0.0.1@internal&gt; time_test 600 10<u></u><u></u></p>

</div><div style="margin-left:30.0pt"><p class="MsoNormal"><br>test 1 sleep 600 1592<br>test 2 sleep 600 986<br>test 3 sleep 600 1018<br>test 4 sleep 600 980<br>test 5 sleep 600 1005<br>test 6 sleep 600 1000<br>test 7 sleep 600 972<br>

test 8 sleep 600 990<br>test 9 sleep 600 1006<br>test 10 sleep 600 994<br>avg 1054<u></u><u></u></p></div><p class="MsoNormal"><br>For kernel:<u></u><u></u></p><div style="margin-left:30.0pt"><p class="MsoNormal">[root@openuc bin]# uname -r<br>

<br>2.6.21.7-2.fc8xen<u></u><u></u></p></div><p class="MsoNormal"><br>CONFIG_HZ:<u></u><u></u></p><div style="margin-left:30.0pt"><p class="MsoNormal" style="margin-bottom:12.0pt">[root@openuc bin]# grep CONFIG_HZ /boot/config-*<br>

<br>/boot/config-2.6.16.33-xenU-x86_64:CONFIG_HZ_100=y<br>/boot/config-2.6.16.33-xenU-x86_64:# CONFIG_HZ_250 is not set<br>/boot/config-2.6.16.33-xenU-x86_64:# CONFIG_HZ_1000 is not set<br>/boot/config-2.6.16.33-xenU-x86_64:CONFIG_HZ=100<br>

/boot/config-2.6.18-164.15.1.el5.centos.plus:# CONFIG_HZ_100 is not set<br>/boot/config-2.6.18-164.15.1.el5.centos.plus:# CONFIG_HZ_250 is not set<br>/boot/config-2.6.18-164.15.1.el5.centos.plus:CONFIG_HZ_1000=y<br>/boot/config-2.6.18-164.15.1.el5.centos.plus:CONFIG_HZ=1000<br>

/boot/config-2.6.21-2952.fc8xen:# CONFIG_HZ_100 is not set<br>/boot/config-2.6.21-2952.fc8xen:# CONFIG_HZ_250 is not set<br>/boot/config-2.6.21-2952.fc8xen:# CONFIG_HZ_300 is not set<br>/boot/config-2.6.21-2952.fc8xen:CONFIG_HZ_1000=y<br>

/boot/config-2.6.21-2952.fc8xen:CONFIG_HZ=1000<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">are the xenU kernel settings screwing me here?<br><br>Thanks,<br>  Mike<span style="color:#888888"><br clear="all">

<br clear="all"><br>-- <br>There are 10 kinds of people in this world, those who understand binary and those who don&#39;t.<br><br><a href="mailto:mpicher@gmail.com" target="_blank">mpicher@gmail.com</a><br>blog: <a href="http://www.sipxecs.info" target="_blank">http://www.sipxecs.info</a><br>

call: <a href="mailto:sip%3Ampicher@sipxecs.info" target="_blank">sip:mpicher@sipxecs.info</a></span><u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">_________________________________________________________________________<br>

Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">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" 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><u></u><u></u></p></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_________________________________________________________________________<br>

Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">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" 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><u></u><u></u></p></div><p class="MsoNormal"><br><br clear="all"><br>-- <br>There are 10 kinds of people in this world, those who understand binary and those who don&#39;t.<br>

<br><a href="mailto:mpicher@gmail.com" target="_blank">mpicher@gmail.com</a><br>blog: <a href="http://www.sipxecs.info" target="_blank">http://www.sipxecs.info</a><br>call: <a href="mailto:sip%3Ampicher@sipxecs.info" target="_blank">sip:mpicher@sipxecs.info</a><u></u><u></u></p>

</div></div></div><p class="MsoNormal"><br><br clear="all"><br>-- <br>There are 10 kinds of people in this world, those who understand binary and those who don&#39;t.<br><br><a href="mailto:mpicher@gmail.com" target="_blank">mpicher@gmail.com</a><br>

blog: <a href="http://www.sipxecs.info" target="_blank">http://www.sipxecs.info</a><br>call: <a href="mailto:sip%3Ampicher@sipxecs.info" target="_blank">sip:mpicher@sipxecs.info</a><u></u><u></u></p></div></div></div></div>

<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></blockquote></div><br></div>