<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://55704/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I wouldn't be shocked if the virtual nic's are bottlenecking on pps. I've seen this before. Also possible you have a crap physical nic. What kind of nic is it and what virtualization technology?<div><br><div><div>On Oct 22, 2013, at 6:01 AM, Grant Bagdasarian <<a href="mailto:GB@cm.nl">GB@cm.nl</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">The network shouldn’t be an issue, since we have at least 1Gbps lines. The tests stay within the network.</span></div></div></div></blockquote><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">I forgot to mention the calls are being distributed across two machines by a Kamailio instance.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">So for a total of 800 concurrent calls generated by Sipp, each machine has 400 active calls.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">CPU load reaches about 70% per machine.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">At this point both FS machines are virtualized, since the performance gain wasn’t that much compared to physical.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">The VM host shows it is using ~3/4 of its CPU resources.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Htop shows that the normal priority threads(green) and the kernel threads(red) are about the same length.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Also, FS is running on Ubuntu Server 12.04 x64.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0in 0in; "><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; ">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; "><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:freeswitch-<a href="mailto:users-bounces@lists.freeswitch.org">users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Stanislav Sinyagin<br><b>Sent:</b><span class="Apple-converted-space"> </span>Tuesday, October 22, 2013 11:11 AM<br><b>To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] Audio quality issues<o:p></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div><div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; background-position: initial initial; background-repeat: initial initial; "><span style="font-family: Helvetica, sans-serif; ">800 calls at 64kbps is 51Mbps.<span class="Apple-converted-space"> </span><br>Could there be a network issue, like a 100Mbps line between the endpoints?<br><br>How heavy is your CPU load? "htop" command would be helpful in this.<br><br><o:p></o:p></span></p><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; "> </span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; "> </span></div></div><div><div><div class="MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-align: center; background-color: white; background-position: initial initial; background-repeat: initial initial; "><span style="font-family: Helvetica, sans-serif; "><hr size="1" width="100%" align="center"></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><b><span style="font-size: 10pt; font-family: Arial, sans-serif; ">From:</span></b><span style="font-size: 10pt; font-family: Arial, sans-serif; "><span class="Apple-converted-space"> </span>Grant Bagdasarian <<a href="mailto:GB@cm.nl" style="color: purple; text-decoration: underline; ">GB@cm.nl</a>><br><b>To:</b><span class="Apple-converted-space"> </span>"FreeSWITCH Users Help (<a href="mailto:freeswitch-users@lists.freeswitch.org" style="color: purple; text-decoration: underline; ">freeswitch-users@lists.freeswitch.org</a>)" <<a href="mailto:freeswitch-users@lists.freeswitch.org" style="color: purple; text-decoration: underline; ">freeswitch-users@lists.freeswitch.org</a>><span class="Apple-converted-space"> </span><br><b>Sent:</b><span class="Apple-converted-space"> </span>Tuesday, October 22, 2013 10:14 AM<br><b>Subject:</b><span class="Apple-converted-space"> </span>[Freeswitch-users] Audio quality issues</span><span style="font-family: Helvetica, sans-serif; "><o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; "> </span></div><div id="yiv6659450688"><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; ">Hello,<o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; "> <o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; ">I was wondering what the maximum concurrent calls for FS before audio quality becomes an issue? I assume the specs of the machine would also affect this.<o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; ">We are currently running FS on a Six Core (12 Threads) Intel E5-2430 CPU and get about 800 concurrent calls at 10-20 CPS. The audio quality at these rates is still fair, but we do notice some quality issue’s.<o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; ">Going above these numbers screws up the audio quality: choppy sound, audio drops etc. We aren’t doing any heavy media processing, just simply playing a file (G711-Alaw) which lasts about 2 minutes during the load test.<o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; ">These numbers are for one way audio, where Sipp doesn’t echo the RTP back. These numbers get lower once Sipp echo’s the RTP.<o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; "> <o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; ">I’ve tried FS on a physical box and also on a virtual box (ESXi 5.1), but the performance gain on physical vs virtual isn’t that much.<o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; "> <o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; ">I disabled all the modules we don’t need, like CDR’s, conferencing, etc.<o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; "> <o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; ">Are there any parameters(config files)/modules that can affect the quality of the audio stream?<o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; "> <o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; ">Regards,<o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; "><span style="font-family: Helvetica, sans-serif; "> <o:p></o:p></span></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white; position: static; z-index: auto; "><span style="font-family: Helvetica, sans-serif; ">Grant</span></div></div></div></div></div></div></div></div></blockquote></div></div></body></html>