<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=utf-8"><meta name=Generator content="Microsoft Word 15 (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;}
/* 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.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        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;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>FreeSWITCH uses threading…  in modern linux kernels threading and forking are very similar… if you look in top you’ll only see 1 FS process that’s because top by default rolls up all the threads… htop on the other hand by default shows you the individual threads.<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'>In FreeSWITCH there are several threads running on just a base idle FreeSWITCH process. Each addition call leg is atleast 1 more thread. Depending on which applications are actually active on a call, there could be more then 1 thread per call leg.<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><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>On the load testing and load handling capabilities this is something the FS team typically does not support on the open source side. I would recommend contacting <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> to get the pros involved. There are a lot of factors to take into consideration and just 1 param can make orders of magnitude difference from test to test<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'>K<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><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Vladislav Ivanov<br><b>Sent:</b> Tuesday, February 2, 2016 6:09 AM<br><b>To:</b> FreeSWITCH Users Help &lt;freeswitch-users@lists.freeswitch.org&gt;<br><b>Subject:</b> [Freeswitch-users] Does freeswitch forks his processes?<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>Hey guys,<br><br>I have a question about freeswitch process/threading usage.<br>So far that I haven't noticed freeswitch to fork himself, I have only 1 freeswitch instance.<br><a href="http://i.imgur.com/bdbYOwp.png">http://i.imgur.com/bdbYOwp.png</a><br><br>But then I found screenshot of htop with freeswitch and noticed that there is multiple freeswitch processes being run:<br><a href="http://i.imgur.com/VNpl55z.jpg">http://i.imgur.com/VNpl55z.jpg</a><br><br>I'm having issues with &quot;loading&quot; the freeswitch after 50 cps in any cpu/ram configuration.<br>Be it physical or virtual environment I cant pass the 50 cps mark.<br>I have strange issue with CPU usage on same CPS:<br><br><a href="http://i.imgur.com/8BdQWVL.png">http://i.imgur.com/8BdQWVL.png</a><br><a href="http://i.imgur.com/mWRnoGr.png">http://i.imgur.com/mWRnoGr.png</a><br><br>I timeload test freeswitch with 50cps for 5+ hours, and seems like there is some kind of leak somewhere.<br>I have tested configuration on:<br>Debian 8<br>2 core/8 gb ram<br>4 core/8 gb ram (graphs are from here)<br>8 core/32 gb ram<br><br>and in all the tests I were not able to send more than 50 cps without CPU dropping to 0 with all system starting to respond really laggy.<br><br>Test is:<br>sipp -&gt; freeswitch -&gt; sipp<br><br>Just 1 dialpeer with bridge action. No gateways. Just simple dialplan and 1 profile...<br>Any advice?<br><br>Thank you all<br><br><br><br><o:p></o:p></p></div></div></body></html>