<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Performance bottleneck</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>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>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>Michael Jerris <mike@jerris.com><BR>
<B>Reply-To: </B><freeswitch-users@lists.freeswitch.org><BR>
<B>Date: </B>Tue, 12 Aug 2008 13:59:13 -0400<BR>
<B>To: </B><freeswitch-users@lists.freeswitch.org><BR>
<B>Subject: </B>Re: [Freeswitch-users] Performance bottleneck<BR>
<BR>
It's going to be the disk io from sqlite. 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:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT COLOR="#000080"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>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’m assuming it’s waiting on something external because I couldn’t find any CPU activity…<BR>
</SPAN></FONT></FONT></FONT>
<P ALIGN=CENTER>
<FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><HR ALIGN=CENTER SIZE="2" WIDTH="100%"></SPAN></FONT></FONT>
<P>
<FONT SIZE="4"><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'><B>From:</B> <FONT COLOR="#0000FF">freeswitch-users-bounces@lists.freeswitch.org [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org]">mailto:freeswitch-users-bounces@lists.freeswitch.org]</a> <B>On Behalf Of </B>Anthony Minessale<BR>
<B>Sent:</B> Wednesday, August 13, 2008 12:55 AM<BR>
<B>To:</B> freeswitch-users@lists.freeswitch.org<BR>
<B>Subject:</B> Re: [Freeswitch-users] Performance bottleneck<BR>
</FONT></SPAN></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <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. 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 <<FONT COLOR="#0000FF">uv@talknet.com.au> wrote:<BR>
</FONT></SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>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></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'> <BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>FS environment (a weak PC on purpose):<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>CPU 2x Intel Pentium 4 3GHz<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>RAM 2x 512MB DDR II RAM<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>Chipset - Intel E7221 (Copper River) chipset ICH6R + FWH + BCM5721<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>LAN 1x Broadcom Giga LAN<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>Windows 2003 Server – Service pack 2<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>FS version 9235<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>Running Release build on highest priority<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'> <BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>Load script:<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>A different machine running sipP<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>Running rtp_echo load, 50 cps, limit of 1000 calls, 30sec call duration, extension 9996 (echo test):<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT></FONT><FONT COLOR="#000080"><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>sipp -rtp_echo -r 50 -l 1000 -d 30000 -s 9996 -sf auc.xml -mp 25000 -i </SPAN></FONT></FONT></FONT><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'><FONT COLOR="#0000FF">192.168.1.1 <a href="http://192.168.1.1"><http://192.168.1.1></a> -mi 192.168.1.1 <a href="http://192.168.1.1"><http://192.168.1.1></a> 192.168.1.2 <a href="http://192.168.1.2"><http://192.168.1.2></a> <BR>
</FONT><FONT COLOR="#000080"><BR>
<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>
</FONT></SPAN><FONT COLOR="#000080"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>