<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">http://pastebin.com/62B45z4i</a><br><br>Anything I'm missing? Really strange that CPU drops like that... <br><br><br></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 class=""><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 class="h5">>><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">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>
><br>
><br>
> --<br>
> With kind regards<br>
> Peter Steinbach<br>
><br>
> Telefaks Services GmbH<br>
> mailto:<a href="mailto:lists">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">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>
><br>
<br>
--<br>
</div></div>------------------------------------------------------------<br>
Nathan Neulinger <a href="mailto:nneul@mst.edu">nneul@mst.edu</a><br>
Missouri S&T Information Technology <a href="tel:%28573%29%20612-1412" value="+15736121412">(573) 612-1412</a><br>
System Administrator - Architect<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>