<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-CA link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Just a follow up on the new results I got while testing.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I had to do a couple of tests to figure if my problem was related
to my code or the problem anthm figured out.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>After a couple of tests, I can say that my problem was mostly
related to the way my dialplan was made. The extensions I had added to my dialplan
where at the very end of the default dialplan, so for every call I made to
these extensions, it had to go through the whole default dialplan which slowed
down things.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>After putting my test extensions at the top of the file, I can
gracefully achieve 30 CPS and I can see that I’m CPU bound to get more
performance.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Anthony
Minessale<br>
<b>Sent:</b> July-09-08 4:15 PM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> Re: [Freeswitch-users] SIP performance tweaking<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>can you join irc and let us in
the box to examine it.<br>
all of this email back and forth is not going to work.<br>
<br>
There is an applet on our homepage to join<br>
or use any irc client to get to <a href="http://irc.freenode.net">irc.freenode.net</a>
#freeswitch<br>
<br>
if you don't have irc use one of my im addrs in my sig to contact me.<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>On Wed, Jul 9, 2008 at 3:02 PM, Patrick Grondin <<a
href="mailto:pgrondin@ip5.com">pgrondin@ip5.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'># ulimit –a</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>core file
size (blocks, -c)
unlimited</span><o:p></o:p></p>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>data seg
size (kbytes, -d)
unlimited</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>scheduling
priority
(-e) 0</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>file
size
(blocks, -f) unlimited</span><o:p></o:p></p>
</div>
<p><span style='font-size:11.0pt;color:#1F497D'>pending
signals
(-i)
unlimited</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>max locked
memory (kbytes, -l) unlimited</span><o:p></o:p></p>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>max memory
size (kbytes, -m) unlimited</span><o:p></o:p></p>
</div>
<p><span style='font-size:11.0pt;color:#1F497D'>open
files
(-n) 999999</span><o:p></o:p></p>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>pipe
size (512
bytes, -p) 8</span><o:p></o:p></p>
</div>
<p><span style='font-size:11.0pt;color:#1F497D'>POSIX message
queues (bytes, -q) unlimited</span><o:p></o:p></p>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>real-time
priority
(-r) 0</span><o:p></o:p></p>
</div>
<p><span style='font-size:11.0pt;color:#1F497D'>stack
size
(kbytes, -s) 244</span><o:p></o:p></p>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>cpu
time
(seconds, -t) unlimited</span><o:p></o:p></p>
</div>
<p><span style='font-size:11.0pt;color:#1F497D'>max user
processes
(-u) unlimited</span><o:p></o:p></p>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>virtual
memory (kbytes, -v)
unlimited</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>file
locks
(-x) unlimited</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
</div>
<p><span style='font-size:11.0pt;color:#1F497D'>#cat /proc/cpuinfo</span><o:p></o:p></p>
<div>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>processor
: 0</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>vendor_id
: AuthenticAMD</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cpu
family : 15</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>model
: 65</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>model
name : Dual-Core AMD Opteron(tm) Processor 8216</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>stepping
: 2</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cpu
MHz : 2411.121</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cache
size : 1024 KB</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>physical
id : 0</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>siblings
: 2</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>core
id : 0</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cpu
cores : 2</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>fpu
: yes</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>fpu_exception : yes</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cpuid
level : 1</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>wp
: yes</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>flags
: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext
3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>bogomips
: 4823.60</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>TLB
size : 1024 4K pages</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>clflush size
: 64</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cache_alignment : 64</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>address sizes : 40
bits physical, 48 bits virtual</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>power management: ts fid vid
ttp tm stc</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>processor
: 1</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>vendor_id
: AuthenticAMD</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cpu
family : 15</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>model
: 65</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>model
name : Dual-Core AMD Opteron(tm) Processor 8216</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>stepping
: 2</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cpu
MHz : 2411.121</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cache
size : 1024 KB</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>physical
id : 0</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>siblings
: 2</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>core
id : 1</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cpu
cores : 2</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>fpu
: yes</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>fpu_exception : yes</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cpuid
level : 1</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>wp
: yes</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>flags
: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext
3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy</span><o:p></o:p></p>
</div>
</div>
<p><span style='font-size:11.0pt;color:#1F497D'>bogomips
: 4821.58</span><o:p></o:p></p>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>TLB
size : 1024 4K pages</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>clflush size
: 64</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>cache_alignment : 64</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>address sizes : 40
bits physical, 48 bits virtual</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>power management: ts fid vid
ttp tm stc</span><o:p></o:p></p>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
</div>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
</div>
<div>
<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm;
border-color:-moz-use-text-color -moz-use-text-color'>
<p><b><span lang=EN-US style='font-size:10.0pt'>From:</span></b><span
lang=EN-US style='font-size:10.0pt'> <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>Brian West<br>
<b>Sent:</b> July-09-08 3:57 PM<o:p></o:p></span></p>
<div>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> Re: [Freeswitch-users] SIP performance tweaking<o:p></o:p></span></p>
</div>
</div>
</div>
<p> <o:p></o:p></p>
<p>Can you cat /proc/cpuinfo and uname -a ?<o:p></o:p></p>
<div>
<div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>/b<o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
<div>
<p>On Jul 9, 2008, at 2:49 PM, Patrick Grondin wrote:<o:p></o:p></p>
<p style='margin-bottom:12.0pt'><o:p> </o:p></p>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Hi,</span><o:p></o:p></p>
</div>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
</div>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>I've tried the
tweaks (the ulimit changes and the disabling of sip presence) you suggested and
it did improve a little, going from 8 CPS to 9.7 CPS.</span><o:p></o:p></p>
</div>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
</div>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>My callflow is real
simple. I'm calling an extension that plays a wav file and I hang up the call,
10 seconds after the start of the call, before the end of the playback.</span><o:p></o:p></p>
</div>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
</div>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>You can see from the
wireshark callflow below, that at a call rate of 15 CPS, after 20 seconds, it
takes 17 seconds for a call to go from 100 Trying to 200 OK.</span><o:p></o:p></p>
</div>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
</div>
<div>
<p><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Do you have any
other ideas of what could be holding down my freeswitch ?</span><o:p></o:p></p>
</div>
</div>
<p> <o:p></o:p></p>
<div>
<div>
<div>
<p><span style='font-size:9.0pt;color:black'>Brian West</span><o:p></o:p></p>
</div>
<div>
<p><span style='font-size:9.0pt;color:black'>sip:brian@freeswitch.org</span><o:p></o:p></p>
</div>
<div>
<p><span style='font-size:9.0pt;color:black'> </span><o:p></o:p></p>
</div>
</div>
<p> <o:p></o:p></p>
</div>
<p> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><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><o:p></o:p></p>
</div>
<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400 <o:p></o:p></p>
</div>
</body>
</html>