<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Re: [Freeswitch-users] Performance bottleneck</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>That begs the question&#8230; is there a
mechanism in sqlite or Linux that allows for the RAM drive to be backed up
periodically? &nbsp;That would be a cool feature to get documented for those power
users like Ken! ;)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-MC<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Ken Rice<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, August 12, 2008
11:07 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">freeswitch-users@lists.freeswitch.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Freeswitch-users]
Performance bottleneck</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Calibri><span
style='font-size:11.0pt;font-family:Calibri'>The Disk IO on sqlite can be quite
a bit... One work around for this is to create a ram drive of sufficient size
and mount it to /usr/local/freeswitch/db (or whatever your db dir is for
freeswitch) this helps out greatly... But anything in the db will not be saved
across system reboots unless you do something about that yourself<br>
<br>
K<br>
<br>
<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=2
face=Calibri><span style='font-size:11.0pt;font-family:Calibri'>

<hr size=3 width="95%" align=center>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;font-weight:bold'>From: </span></font></b><font
size=2 face=Calibri><span style='font-size:11.0pt;font-family:Calibri'>Michael
Jerris &lt;mike@jerris.com&gt;<br>
<b><span style='font-weight:bold'>Reply-To: </span></b>&lt;<st1:PersonName
w:st="on">freeswitch-users@lists.freeswitch.org</st1:PersonName>&gt;<br>
<b><span style='font-weight:bold'>Date: </span></b>Tue, 12 Aug 2008 13:59:13
-0400<br>
<b><span style='font-weight:bold'>To: </span></b>&lt;<st1:PersonName w:st="on">freeswitch-users@lists.freeswitch.org</st1:PersonName>&gt;<br>
<b><span style='font-weight:bold'>Subject: </span></b>Re: [Freeswitch-users]
Performance bottleneck<br>
<br>
It's going to be the disk io from sqlite. &nbsp;The presense states are all
stored in sqlite (or odbc) data source.<br>
<br>
Mike<br>
<br>
On Aug 12, 2008, at 1:53 PM, UV wrote:</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Turning the presence off did the trick, although
it would be important (to me, at least) to understand why as it changes the
performance significantly.<br>
Is the presence mechanism waiting for some response from the network?<br>
I&#8217;m assuming it&#8217;s waiting on something external because I
couldn&#8217;t find any CPU activity&#8230;<br>
&nbsp; </span></font><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <font
color=blue><span style='color:blue'>freeswitch-users-bounces@lists.freeswitch.org
[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org%5d">mailto:freeswitch-users-bounces@lists.freeswitch.org]</a>
<b><span style='font-weight:bold'>On Behalf Of </span></b>Anthony Minessale<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, August 13, 2008
12:55 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">freeswitch-users@lists.freeswitch.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Freeswitch-users]
Performance bottleneck<br>
</span></font></span></font><br>
9996 is not a good test extension because it does not generate any audio unless
it gets some.<br>
9998 that generates a tone or make up an ext that plays a file is a better one.<br>
<br>
Processing of the sip calls can be delayed by the presence stuff which is very
intensive, you can try turning it off and see if you get more calls. &nbsp;Also
you should compare it to what happens with the test exten first in the dial
plan.<br>
<br>
<br>
On Tue, Aug 12, 2008 at 2:58 AM, UV &lt;<font color=blue><span
style='color:blue'>uv@talknet.com.au&gt; wrote:<br>
</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>I'm trying to determine the FS resource
bottleneck when operating under load (in windows environment), but can't get
the FS to load for some unseen reason.<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'><br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>FS environment (a weak PC on purpose):<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>CPU 2x Intel Pentium 4 3GHz<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>RAM 2x 512MB DDR II RAM<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Chipset - Intel E7221 (<st1:place w:st="on">Copper River</st1:place>)
chipset ICH6R + FWH + BCM5721<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>LAN 1x Broadcom Giga LAN<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Windows 2003 Server &#8211; Service pack 2<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>FS version 9235<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Running Release build on highest priority<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'><br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Load script:<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>A different machine running sipP<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Running rtp_echo load, 50 cps, limit of 1000 calls, 30sec
call duration, extension 9996 (echo test):<br>
</span></font><br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>sipp -rtp_echo -r 50 -l 1000 -d 30000 -s 9996 -sf auc.xml -mp
25000 -i &nbsp;</span></font><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>192.168.1.1 <a
href="http://192.168.1.1">&lt;http://192.168.1.1&gt;</a> &nbsp;-mi 192.168.1.1 <a
href="http://192.168.1.1">&lt;http://192.168.1.1&gt;</a> &nbsp;192.168.1.2 <a
href="http://192.168.1.2">&lt;http://192.168.1.2&gt;</a> <br>
</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'><br>
&nbsp;<br>
<br>
Results:<br>
<br>
Test ran for 9.5 hours<br>
<br>
Total of 48828 calls - all successful<br>
<br>
No timeouts, retransmissions or unexpected messages.<br>
<br>
</span></font><o:p></o:p></p>

</div>

</div>

</body>

</html>