<div dir="ltr">I have changed it:<br><span style="color:rgb(51,51,51);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:24px"> </span><span class="" style="color:rgb(0,153,0);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:24px"><span class="" style="color:rgb(0,0,0);font-weight:bold"><param</span> <span class="" style="color:rgb(0,0,102)">name</span>=<span class="" style="color:rgb(255,0,0)">"sessions-per-second"</span> <span class="" style="color:rgb(0,0,102)">value</span>=<span class="" style="color:rgb(255,0,0)">"400"</span><span class="" style="color:rgb(0,0,0);font-weight:bold">/><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'm just DDoSing my box. <br>I'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's 25% loaded and with 25 cps it's 100% loaded.<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-11 16:38 GMT+02:00 Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></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're just DDoSing the box.</div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 6:16 AM, Vladislav Ivanov <span dir="ltr"><<a href="mailto:deforceczt@gmail.com" target="_blank">deforceczt@gmail.com</a>></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'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's lagging as hell, and i'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'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"><<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">"Run as" != "Start as"<br>
<br>
If you insist on not starting FS as root to let it change user, like most other daemons/services, you'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>
> I've just stumpled over this:<br>
> >Is FreeSWITCH starting with root permissions? It needs this in order to use the FIFO scheduler and access realtime<br>
> threads. If not started as root, this would explain your CPS limitations.<br>
><br>
> We like to run Freeswitch as a non privileged user, due to security concerns. So there are drawbacks here compared to<br>
> running FS as root? Can we somehow quantify the differences?<br>
><br>
> Best regards<br>
> Peter<br>
><br>
><br>
> On 02/02/16 13:58, Bote Man wrote:<br>
>><br>
>> Is FreeSWITCH starting with root permissions? It needs this in order to use the FIFO scheduler and access realtime<br>
>> threads. If not started as root, this would explain your CPS limitations. There are also limits that can be set in the<br>
>> config files.<br>
>><br>
>> After it starts it drops privileges to those specified on the command line with –u and –g switches.<br>
>><br>
>> FreeSWITCH uses multi-threading. I do not know about htop, but maybe it is showing the multiple threads?<br>
>><br>
>> top –H shows each thread.<br>
>><br>
>> ---<br>
>><br>
>> Bote<br>
>><br>
>> FreeSWITCH Docs Janitor<br>
>><br>
>> <a href="http://freeswitch.org/confluence" rel="noreferrer" target="_blank">http://freeswitch.org/confluence</a><br>
>><br>
</span>>> *From:*Vladislav Ivanov<br>
>> *Sent:* Tuesday, 02 February, 2016 07:09<br>
>> *Subject:* [Freeswitch-users] Does freeswitch forks his processes?<br>
<div><div>>><br>
>> 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" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">http://i.imgur.com/VNpl55z.jpg</a><br>
>><br>
>> I'm having issues with "loading" 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" rel="noreferrer" target="_blank">http://i.imgur.com/8BdQWVL.png</a><br>
>> <a href="http://i.imgur.com/mWRnoGr.png" rel="noreferrer" target="_blank">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<br>
>> respond really laggy.<br>
>><br>
>> Test is:<br>
>> sipp -> freeswitch -> 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>
>><br>
>><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>
><br>
><br>
> --<br>
> With kind regards<br>
> Peter Steinbach<br>
><br>
> Telefaks Services GmbH<br>
> mailto:<a href="mailto:lists" target="_blank">lists</a> (att) <a href="http://telefaks.de" rel="noreferrer" target="_blank">telefaks.de</a><br>
> Internet:<a href="http://www.telefaks.de" rel="noreferrer" target="_blank">www.telefaks.de</a><br>
><br>
><br>
><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>
><br>
<br>
--<br>
</div></div>------------------------------------------------------------<br>
Nathan Neulinger <a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a><br>
Missouri S&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">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></div>