"Run as" != "Start as" If you insist on not starting FS as root to let it change user, like most other daemons/services, you'll have to jump through a bunch of extra steps using file system capabilities to give it the ability to set scheduler parameters/etc that are restricted to root normally. -- Nathan On 02/02/2016 09:10 AM, Peter Steinbach wrote:
I've just stumpled over this:
Is FreeSWITCH starting with root permissions? It needs this in order to use the FIFO scheduler and access realtime threads. If not started as root, this would explain your CPS limitations.
We like to run Freeswitch as a non privileged user, due to security concerns. So there are drawbacks here compared to running FS as root? Can we somehow quantify the differences?
Best regards Peter
On 02/02/16 13:58, Bote Man wrote:
Is FreeSWITCH starting with root permissions? It needs this in order to use the FIFO scheduler and access realtime threads. If not started as root, this would explain your CPS limitations. There are also limits that can be set in the config files.
After it starts it drops privileges to those specified on the command line with –u and –g switches.
FreeSWITCH uses multi-threading. I do not know about htop, but maybe it is showing the multiple threads?
top –H shows each thread.
---
Bote
FreeSWITCH Docs Janitor
http://freeswitch.org/confluence
*From:*Vladislav Ivanov *Sent:* Tuesday, 02 February, 2016 07:09 *Subject:* [Freeswitch-users] Does freeswitch forks his processes?
Hey guys,
I have a question about freeswitch process/threading usage. So far that I haven't noticed freeswitch to fork himself, I have only 1 freeswitch instance. http://i.imgur.com/bdbYOwp.png
But then I found screenshot of htop with freeswitch and noticed that there is multiple freeswitch processes being run: http://i.imgur.com/VNpl55z.jpg
I'm having issues with "loading" the freeswitch after 50 cps in any cpu/ram configuration. Be it physical or virtual environment I cant pass the 50 cps mark. I have strange issue with CPU usage on same CPS:
http://i.imgur.com/8BdQWVL.png http://i.imgur.com/mWRnoGr.png
I timeload test freeswitch with 50cps for 5+ hours, and seems like there is some kind of leak somewhere. I have tested configuration on: Debian 8 2 core/8 gb ram 4 core/8 gb ram (graphs are from here) 8 core/32 gb ram
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.
Test is: sipp -> freeswitch -> sipp
Just 1 dialpeer with bridge action. No gateways. Just simple dialplan and 1 profile... Any advice?
Thank you all
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- With kind regards Peter Steinbach
Telefaks Services GmbH mailto:lists (att) telefaks.de Internet:www.telefaks.de
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect