<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:0in;
        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:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Anthony, <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>No argument on the core design &#8211; this is what
differentiates FS from * and what makes things solid. But, on Windows at least,
the &#8220;one-thread-per-client&#8221; concept normally only scales so far (Server
normally being a bit better than XP).<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Not sure about their availability on other platforms, but have
you looked at fibers? They seem to be a lighter weight alternative with most of
the benefits.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Peter<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
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> Thursday, March 26, 2009 4:21 PM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> Re: [Freeswitch-users] Load testing and thread use<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>The core philosophy of the
entire design is based on a single thread per channel.<br>
There is no way to avoid this.<br>
<br>
What are the specs of your machines?&nbsp; <br>
DId you try using the 2003 server instead of XP (a home version meant for
single users)<br>
<br>
We have little feedback on performance on win32 (good or bad) but we do have
many people using it.<br>
<br>
Did you do any more extensive profiling to see what is using the most cpu (look
for process explorer)<br>
<br>
<o:p></o:p></p>

<div>

<p class=MsoNormal>2009/3/26 Richard Lamkin &lt;<a
href="mailto:Richard.Lamkin@mettoni.com" target="_blank">Richard.Lamkin@mettoni.com</a>&gt;<o:p></o:p></p>

<div>

<div>

<p><span lang=EN-GB>Dear All,<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>I am testing FS as a call queuing server.&nbsp;&nbsp; <o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>My test set up is as follows; <o:p></o:p></span></p>

<p><span lang=EN-GB>Two Windows XP (SP3) Pc&#8217;s &nbsp;with 1.0.3 installed
out of the box. &nbsp;[ Before anyone says use Linux I need to use windows for
a specific reason]<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>I have a single gateway [fsb1500] on FS-1 configured to
register with FS-2 [extn 1500]. &nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>I then use the following CLI command to create a call from
FS1[5900] to FS2[5900]<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;&#8220;bgapi originate sofia/gateway/fsb1500/<a
href="mailto:5900@richardl-5013-2.mettonigroup.com" target="_blank">5900@richardl-5013-2.mettonigroup.com</a>
5900&#8221;<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>This happily connects FS1[5900] to FS2[5900] . &nbsp;Codec
set to G711a.<o:p></o:p></span></p>

<p><span lang=EN-GB>I have one hardphone on FS2 with a call connected to 5900
to allow me to listen to MOH.<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>I have been monitoring the system resources used by FS and
have observed that for each new call a new thread is created.&nbsp; <o:p></o:p></span></p>

<p><span lang=EN-GB>I have pushed well over 200 calls from FS-1 into FS2.
&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>All goes well with the CPU usage by FS (&lt;25%) until 150
concurrent calls &nbsp;when it starts to climb rapidly and at 175 (~50%). <o:p></o:p></span></p>

<p><span lang=EN-GB>One good thing is that memory usage is reasonable with 90MB
for 150 calls.<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>My questions are;<o:p></o:p></span></p>

<p><span lang=EN-GB>Q1 &#8211; Is my test reasonable ?<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>Q2 - Windows XP is not that happy with large numbers of
thread per app. Is there a way to configure FS to use fewer threads; instead of
using 1/call can it be configured &nbsp;to use to 1/(n calls) ?<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>Q3 &#8211; If there&#8217;s &nbsp;not a way to configure FS
to combine threads would it be reasonable to consider modifying the FS code to
allow the combining of &nbsp;threads or would this be a mammoth task.<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>Regards<o:p></o:p></span></p>

<p><span lang=EN-GB>&nbsp;<o:p></o:p></span></p>

<p><span lang=EN-GB>Richard Lamkin<o:p></o:p></span></p>

</div>

<pre><span lang=EN-GB>*************************************************************************<o:p></o:p></span></pre><pre><span
lang=EN-GB>This email and any files transmitted with it are confidential and<o:p></o:p></span></pre><pre><span
lang=EN-GB>intended solely for the use of the individual or entity to whom they<o:p></o:p></span></pre><pre><span
lang=EN-GB>are addressed. If you have received this email in error please notify<o:p></o:p></span></pre><pre><span
lang=EN-GB>the system manager. <a href="http://www.mettoni.com" target="_blank">http://www.mettoni.com</a><o:p></o:p></span></pre><pre><span
lang=EN-GB> <o:p></o:p></span></pre><pre><span lang=EN-GB>Datapulse Ltd (part of the Mettoni Group)<o:p></o:p></span></pre><pre><span
lang=EN-GB>Registered in England and Wales: 4485978<o:p></o:p></span></pre><pre><span
lang=EN-GB>9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN<o:p></o:p></span></pre><pre><span
lang=EN-GB>*************************************************************************<o:p></o:p></span></pre><pre><span
lang=EN-GB><o:p>&nbsp;</o:p></span></pre></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com"
target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>
#freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org"
target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<o:p></o:p></p>

</div>

</body>

</html>