<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
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;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.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 lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi,<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 lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
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.<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 lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
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.<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 lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
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.<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 lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Do you have any other ideas of what could be holding down my
freeswitch ?<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 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 lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>192.168.100.200 = SIPP, call initiation<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'>192.168.100.9 = Freeswitch, call receiver<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=MsoPlainText><span style='font-family:"Courier New"'>|Time
| 192.168.100.200 | 192.168.100.9 |<br>
|20.013 | INVITE
SDP ( g711U) |SIP
From: sip:sipp@192.168.100.200:5060 To:sip:9990@192.168.100.9:5060<br>
| |(5060)
------------------> (5060) |<br>
|20.013 | 100
Trying|
|SIP Status<br>
| |(5060)
<------------------ (5060) |<br>
|20.014 | RTP
(g711U)
|RTP Num packets:8 Duration:0.061s SSRC:0xF3FF<br>
| |(6000)
<------------------ (24806) |<br>
|20.014 | RTP
(g711U)
|RTP Num packets:16 Duration:0.060s SSRC:0xD47F<br>
| |(6000)
<------------------ (25394) |<br>
|20.014 | RTP
(g711U)
|RTP Num packets:12 Duration:0.060s SSRC:0x1463<br>
| |(6000)
<------------------ (22286) |<br>
|20.014 | RTP
(g711U) |RTP
Num packets:16 Duration:0.060s SSRC:0xBCC0<br>
| |(6000)
<------------------ (22934) |<br>
|20.014 | RTP
(g711U)
|RTP Num packets:8 Duration:0.060s SSRC:0xC8E9<br>
| |(6000)
<------------------ (18672) |<br>
|20.014 | RTP
(g711U)
|RTP Num packets:16 Duration:0.060s SSRC:0xF7D<br>
| |(6000)
<------------------ (16944) |<br>
|20.014 | RTP
(g711U)
|RTP Num packets:24 Duration:0.060s SSRC:0x5927<br>
| |(6000)
<------------------ (31390) |<br>
|20.015 | RTP
(g711U)
|RTP Num packets:24 Duration:0.059s SSRC:0x8352<br>
| |(6000)
<------------------ (23078) |<br>
|20.015 | RTP
(g711U)
|RTP Num packets:20 Duration:0.060s SSRC:0xF637<br>
| |(6000)
<------------------ (20284) |<br>
|20.015 | RTP
(g711U)
|RTP Num packets:12 Duration:0.058s SSRC:0xD3D6<br>
| |(6000)
<------------------ (30944) |<br>
|20.016 | RTP
(g711U)
|RTP Num packets:12 Duration:0.058s SSRC:0x289<br>
| |(6000)
<------------------ (20836) |<br>
|37.578 | 200 OK
SDP (
CN)
|SIP Status<br>
| |(5060)
<------------------ (5060) |<br>
|37.579 |
ACK
|
|SIP Request<br>
| |(5060)
------------------> (5060) |<br>
|47.579 |
BYE
|
|SIP Request<br>
| |(5060)
------------------> (5060) |<br>
|47.580 | 200
OK |
|SIP Status<br>
| |(5060)
<------------------ (5060) |<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'>PG<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-08-08 3:52 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'>what is the callflow of the
extension you are calling with sipp?<br>
<br>
start by making the target extension just answer and play back a file till you
have it working <br>
and expand it from there.<br>
<br>
you can comment out the manage-presence option in your sip profile to make the
sip a lot less resource intensive.<br>
<br>
<br>
<br>
here are the ulimits I set for load testing<br>
<br>
ulimit -c unlimited<br>
ulimit -d unlimited<br>
ulimit -f unlimited<br>
ulimit -i unlimited<br>
ulimit -n 999999<br>
ulimit -q unlimited<br>
ulimit -u unlimited<br>
ulimit -v unlimited<br>
ulimit -x unlimited<br>
ulimit -s 244<br>
ulimit -l unlimited<br>
<br>
<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>On Tue, Jul 8, 2008 at 1:51 PM, Patrick Grondin <<a
href="mailto:pgrondin@ip5.com">pgrondin@ip5.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p>Hi,<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>I am currently doing some characterization testing to figure out the
limitations of my freeswitch server. I have tried both with SIPP and by driving
SIP calls<o:p></o:p></p>
<p>between 2 Freeswitch through mod_event_socket. I get similar results both
ways and I am suspicious of the results I get.<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Basically, whenever I try to launch calls with SIPP at a rate superior than
8 cps, it seems like calls are being stacked. The response time for a call
between<o:p></o:p></p>
<p>the "invite" and the corresponding "200 OK" keeps
increasing as long as calls are being made which slows down the processing
speed until the average <o:p></o:p></p>
<p>CPS gets around 8 cps.<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>My setup is : <o:p></o:p></p>
<p>1 Dual-Core AMD Opteron(tm) Processor 8216 @ 2.4 GHz<o:p></o:p></p>
<p>4 GB of RAM<o:p></o:p></p>
<p>Gigabit NIC<o:p></o:p></p>
<p>Centos 5<o:p></o:p></p>
<p>FreeSwitch Version 1.0.trunk (8911M)<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>I think that my setup is underperforming and that it might be related to
some missing configuration tweaks. I already adjusted the ulimit to the<o:p></o:p></p>
<p>recommended settings in the wiki for maximum performance. I was wondering if
there might be something else, that I'm still missing.<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Would any of you have an idea of what might be holding back my setup ?<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Thanks !<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>PG<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>P.S. I gathered a bunch of information that I thought could be useful.<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Freeswitch performance settings In switch.conf.xml<o:p></o:p></p>
<p><span style='font-size:9.0pt'> <!--Most channels to
allow at once --></span><o:p></o:p></p>
<p><span style='font-size:9.0pt'> <param
name="max-sessions" value="10000"/></span><o:p></o:p></p>
<p><span style='font-size:9.0pt'> <!--Most channels to
create per second --></span><o:p></o:p></p>
<p><span style='font-size:9.0pt'> <param
name="sessions-per-second" value="1000"/></span><o:p></o:p></p>
<p><span style='font-size:9.0pt'> <!-- Default Global Log
Level - value is one of debug,info,notice,warning,err,crit,alert --></span><o:p></o:p></p>
<p><span style='font-size:9.0pt'> <param
name="loglevel" value="alert"/></span><o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Here is the SIPP command I used, based on Freeswitch load_test script.<o:p></o:p></p>
<p># sipp -sf dft_cap.xml <a href="http://192.168.100.9" target="_blank">192.168.100.9</a>
-s 9990 -r 15 -rp 1000 -l 200 -d 10000 -i <a href="http://192.168.100.200"
target="_blank">192.168.100.200</a> -mi <a href="http://192.168.100.200"
target="_blank">192.168.100.200</a><o:p></o:p></p>
<p> <o:p></o:p></p>
<p># cat /proc/cpuinfo<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>processor : 0<o:p></o:p></p>
<p>vendor_id : AuthenticAMD<o:p></o:p></p>
<p>cpu family : 15<o:p></o:p></p>
<p>model : 65<o:p></o:p></p>
<p>model name : Dual-Core AMD Opteron(tm)
Processor 8216<o:p></o:p></p>
<p>stepping : 2<o:p></o:p></p>
<p>cpu MHz : 2411.121<o:p></o:p></p>
<p>cache size : 1024 KB<o:p></o:p></p>
<p>physical id : 0<o:p></o:p></p>
<p>siblings : 2<o:p></o:p></p>
<p>core id : 0<o:p></o:p></p>
<p>cpu cores : 2<o:p></o:p></p>
<p>fpu
: yes<o:p></o:p></p>
<p>fpu_exception : yes<o:p></o:p></p>
<p>cpuid level : 1<o:p></o:p></p>
<p>wp
: yes<o:p></o:p></p>
<p>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<o:p></o:p></p>
<p>bogomips : 4823.60<o:p></o:p></p>
<p>TLB size : 1024 4K pages<o:p></o:p></p>
<p>clflush size : 64<o:p></o:p></p>
<p>cache_alignment : 64<o:p></o:p></p>
<p>address sizes : 40 bits physical, 48 bits virtual<o:p></o:p></p>
<p>power management: ts fid vid ttp tm stc<o:p></o:p></p>
<p> <o:p></o:p></p>
<p># cat /proc/meminfo<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>MemTotal: 4042672 kB<o:p></o:p></p>
<p>MemFree: 843188 kB<o:p></o:p></p>
<p>Buffers: 256676 kB<o:p></o:p></p>
<p>Cached: 2671172 kB<o:p></o:p></p>
<p>SwapCached: 1092 kB<o:p></o:p></p>
<p>Active: 777140 kB<o:p></o:p></p>
<p>Inactive: 2192840 kB<o:p></o:p></p>
<p>HighTotal: 0 kB<o:p></o:p></p>
<p>HighFree:
0 kB<o:p></o:p></p>
<p>LowTotal: 4042672 kB<o:p></o:p></p>
<p>LowFree: 843188 kB<o:p></o:p></p>
<p>SwapTotal: 2031608 kB<o:p></o:p></p>
<p>SwapFree: 2016120 kB<o:p></o:p></p>
<p>Dirty:
0 kB<o:p></o:p></p>
<p>Writeback: 0 kB<o:p></o:p></p>
<p>AnonPages: 41068 kB<o:p></o:p></p>
<p>Mapped: 26028 kB<o:p></o:p></p>
<p>Slab: 195536 kB<o:p></o:p></p>
<p>PageTables: 5672 kB<o:p></o:p></p>
<p>NFS_Unstable: 0 kB<o:p></o:p></p>
<p>Bounce:
0 kB<o:p></o:p></p>
<p>CommitLimit: 4052944 kB<o:p></o:p></p>
<p>Committed_AS: 153064 kB<o:p></o:p></p>
<p>VmallocTotal: 34359738367 kB<o:p></o:p></p>
<p>VmallocUsed: 35492 kB<o:p></o:p></p>
<p>VmallocChunk: 34359692283 kB<o:p></o:p></p>
<p>HugePages_Total: 0<o:p></o:p></p>
<p>HugePages_Free: 0<o:p></o:p></p>
<p>HugePages_Rsvd: 0<o:p></o:p></p>
<p>Hugepagesize: 2048 kB<o:p></o:p></p>
<p> <o:p></o:p></p>
<p># ulimit –a<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>core file size
(blocks, -c) 0<o:p></o:p></p>
<p>data seg size
(kbytes, -d) unlimited<o:p></o:p></p>
<p>scheduling
priority
(-e) 0<o:p></o:p></p>
<p>file
size
(blocks, -f) unlimited<o:p></o:p></p>
<p>pending
signals
(-i) 40960<o:p></o:p></p>
<p>max locked memory (kbytes, -l) 32<o:p></o:p></p>
<p>max memory size (kbytes, -m)
unlimited<o:p></o:p></p>
<p>open
files
(-n) 1024<o:p></o:p></p>
<p>pipe size
(512 bytes, -p) 8<o:p></o:p></p>
<p><span lang=FR-CA>POSIX message queues (bytes, -q)
819200</span><o:p></o:p></p>
<p>real-time
priority
(-r) 0<o:p></o:p></p>
<p>stack
size
(kbytes, -s) 10240<o:p></o:p></p>
<p>cpu
time
(seconds, -t) unlimited<o:p></o:p></p>
<p>max user
processes
(-u) 40960<o:p></o:p></p>
<p>virtual memory
(kbytes, -v) unlimited<o:p></o:p></p>
<p>file
locks
(-x) unlimited<o:p></o:p></p>
<p> <o:p></o:p></p>
<p># top<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>top - 14:31:16 up 1 day, 58 min, 2 users, load average: 5.73,
6.83, 5.36<o:p></o:p></p>
<p>Tasks: 129 total, 1 running, 128 sleeping, 0
stopped, 0 zombie<o:p></o:p></p>
<p>Cpu(s): 7.0%us, 2.8%sy, 0.0%ni, 50.8%id, 38.8%wa,
0.0%hi, 0.5%si, 0.0%st<o:p></o:p></p>
<p>Mem: 4042672k total, 3418968k used, 623704k
free, 256904k buffers<o:p></o:p></p>
<p>Swap: 2031608k total, 15488k used, 2016120k
free, 2681820k cached<o:p></o:p></p>
<p> <o:p></o:p></p>
<p> PID USER PR NI VIRT
RES SHR S %CPU %MEM TIME+ COMMAND<o:p></o:p></p>
<p> 6078 root 18 0 614m
109m 6480 S 19 2.8 3:39.11 freeswitch<o:p></o:p></p>
<p> <o:p></o:p></p>
</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>