<div dir="ltr">Without specific details about what the CPU is, how many there are and the version of the OS and many other factors its not easy to answer you.<div>We frown on these load questions because, just like now, it results in large threads and many people spending a lot of time trying to understand the parameters.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 8:45 AM, Vladislav Ivanov <span dir="ltr">&lt;<a href="mailto:deforceczt@gmail.com" target="_blank">deforceczt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have changed it:<br><span style="color:rgb(51,51,51);font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,monospace,serif;font-size:12px;line-height:24px"> </span><span style="color:rgb(0,153,0);font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,monospace,serif;font-size:12px;line-height:24px"><span style="color:rgb(0,0,0);font-weight:bold">&lt;param</span> <span style="color:rgb(0,0,102)">name</span>=<span style="color:rgb(255,0,0)">&quot;sessions-per-second&quot;</span> <span style="color:rgb(0,0,102)">value</span>=<span style="color:rgb(255,0,0)">&quot;400&quot;</span><span style="color:rgb(0,0,0);font-weight:bold">/&gt;<br></span></span><br>If there was limit - there would be no CPU hogging.<br>Here is status command:<br><div><div>FreeSWITCH (Version 1.6.6 git d2d0b32 2016-01-11 20:16:12Z 64bit) is ready</div><div>0 session(s) since startup</div><div>0 session(s) - peak 0, last 5min 0</div><div>0 session(s) per Sec out of max 400, peak 0, last 5min 0</div><div>10000 session(s) max</div><div>min idle cpu 0.00/100.00</div><div>Current Stack Size/Max 240K/8192K<br><br>I can believe that i&#39;m just DDoSing my box. <br>I&#39;m using simple uac/uas from sipp, and certain load is ok, but after that it goes straight down with increase of just 5 cps... I mean it is strange that with 20 cps it&#39;s 25% loaded and with 25 cps it&#39;s 100% loaded.<br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-02-11 16:38 GMT+02:00 Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I sense that your load testing method is flawed and you&#39;re just DDoSing the box.</div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 6:16 AM, Vladislav Ivanov <span dir="ltr">&lt;<a href="mailto:deforceczt@gmail.com" target="_blank">deforceczt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey guys,<br><br>It is true, I haven&#39;t ran it as root, I fixed it.<br>But I still have issues with passing more than 50cps, same is happening... <br>4 cores CPU - CPU is good, 80% idle, load average: 0.81, 0.98 <br>This at 25 cps (I bridge the call, so cps*2)<br><div>Then I add 5 cps more:<br>load average: 1061.40, 333.52<br>And all OS start&#39;s lagging as hell, and i&#39;m unable to find issue, have no idea what is happening...<br><br>My settings:<br><a href="http://pastebin.com/62B45z4i" target="_blank">http://pastebin.com/62B45z4i</a><br><br>Anything I&#39;m missing? Really strange that CPU drops like that... <br><br><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-02 17:22 GMT+02:00 Nathan Neulinger <span dir="ltr">&lt;<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&quot;Run as&quot; != &quot;Start as&quot;<br>
<br>
If you insist on not starting FS as root to let it change user, like most other daemons/services, you&#39;ll have to jump<br>
through a bunch of extra steps using file system capabilities to give it the ability to set scheduler parameters/etc<br>
that are restricted to root normally.<br>
<br>
-- Nathan<br>
<span><br>
On 02/02/2016 09:10 AM, Peter Steinbach wrote:<br>
&gt; I&#39;ve just stumpled over this:<br>
&gt;  &gt;Is FreeSWITCH starting with root permissions? It needs this in order to use the FIFO scheduler and access realtime<br>
&gt; threads. If not started as root, this would explain your CPS limitations.<br>
&gt;<br>
&gt; We like to run Freeswitch as a non privileged user, due to security concerns. So there are drawbacks here compared to<br>
&gt; running FS as root? Can we somehow quantify the differences?<br>
&gt;<br>
&gt; Best regards<br>
&gt; Peter<br>
&gt;<br>
&gt;<br>
&gt; On 02/02/16 13:58, Bote Man wrote:<br>
&gt;&gt;<br>
&gt;&gt; Is FreeSWITCH starting with root permissions? It needs this in order to use the FIFO scheduler and access realtime<br>
&gt;&gt; threads. If not started as root, this would explain your CPS limitations. There are also limits that can be set in the<br>
&gt;&gt; config files.<br>
&gt;&gt;<br>
&gt;&gt; After it starts it drops privileges to those specified on the command line with –u and –g switches.<br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH uses multi-threading. I do not know about htop, but maybe it is showing the multiple threads?<br>
&gt;&gt;<br>
&gt;&gt; top –H shows each thread.<br>
&gt;&gt;<br>
&gt;&gt; ---<br>
&gt;&gt;<br>
&gt;&gt; Bote<br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH Docs Janitor<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://freeswitch.org/confluence" rel="noreferrer" target="_blank">http://freeswitch.org/confluence</a><br>
&gt;&gt;<br>
</span>&gt;&gt; *From:*Vladislav Ivanov<br>
&gt;&gt; *Sent:* Tuesday, 02 February, 2016 07:09<br>
&gt;&gt; *Subject:* [Freeswitch-users] Does freeswitch forks his processes?<br>
<div><div>&gt;&gt;<br>
&gt;&gt; Hey guys,<br>
&gt;&gt;<br>
&gt;&gt; I have a question about freeswitch process/threading usage.<br>
&gt;&gt; So far that I haven&#39;t noticed freeswitch to fork himself, I have only 1 freeswitch instance.<br>
&gt;&gt; <a href="http://i.imgur.com/bdbYOwp.png" rel="noreferrer" target="_blank">http://i.imgur.com/bdbYOwp.png</a><br>
&gt;&gt;<br>
&gt;&gt; But then I found screenshot of htop with freeswitch and noticed that there is multiple freeswitch processes being run:<br>
&gt;&gt; <a href="http://i.imgur.com/VNpl55z.jpg" rel="noreferrer" target="_blank">http://i.imgur.com/VNpl55z.jpg</a><br>
&gt;&gt;<br>
&gt;&gt; I&#39;m having issues with &quot;loading&quot; the freeswitch after 50 cps in any cpu/ram configuration.<br>
&gt;&gt; Be it physical or virtual environment I cant pass the 50 cps mark.<br>
&gt;&gt; I have strange issue with CPU usage on same CPS:<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://i.imgur.com/8BdQWVL.png" rel="noreferrer" target="_blank">http://i.imgur.com/8BdQWVL.png</a><br>
&gt;&gt; <a href="http://i.imgur.com/mWRnoGr.png" rel="noreferrer" target="_blank">http://i.imgur.com/mWRnoGr.png</a><br>
&gt;&gt;<br>
&gt;&gt; I timeload test freeswitch with 50cps for 5+ hours, and seems like there is some kind of leak somewhere.<br>
&gt;&gt; I have tested configuration on:<br>
&gt;&gt; Debian 8<br>
&gt;&gt; 2 core/8 gb ram<br>
&gt;&gt; 4 core/8 gb ram (graphs are from here)<br>
&gt;&gt; 8 core/32 gb ram<br>
&gt;&gt;<br>
&gt;&gt; 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<br>
&gt;&gt; respond really laggy.<br>
&gt;&gt;<br>
&gt;&gt; Test is:<br>
&gt;&gt; sipp -&gt; freeswitch -&gt; sipp<br>
&gt;&gt;<br>
&gt;&gt; Just 1 dialpeer with bridge action. No gateways. Just simple dialplan and 1 profile...<br>
&gt;&gt; Any advice?<br>
&gt;&gt;<br>
&gt;&gt; Thank you all<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; With kind regards<br>
&gt; Peter Steinbach<br>
&gt;<br>
&gt; Telefaks Services GmbH<br>
&gt; mailto:<a href="mailto:lists" target="_blank">lists</a>  (att) <a href="http://telefaks.de" rel="noreferrer" target="_blank">telefaks.de</a><br>
&gt; Internet:<a href="http://www.telefaks.de" rel="noreferrer" target="_blank">www.telefaks.de</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
--<br>
</div></div>------------------------------------------------------------<br>
Nathan Neulinger                       <a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a><br>
Missouri S&amp;T Information Technology    <a href="tel:%28573%29%20612-1412" value="+15736121412" target="_blank">(573) 612-1412</a><br>
System Administrator - Architect<br>
<div><div><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div><br></div></div></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div>
</div>