Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Does freeswitch forks his processes?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
deforceczt at gmail.com
Guest





PostPosted: Tue Feb 02, 2016 7:10 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

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
Back to top
bote_radio at botecomm...
Guest





PostPosted: Tue Feb 02, 2016 8:00 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

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
Back to top
giacomo.vacca at gmail...
Guest





PostPosted: Tue Feb 02, 2016 8:00 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

FreeSWITCH is a single process, multi-threading application.htop is showing you threads activity.


On 2 February 2016 at 13:08, Vladislav Ivanov <deforceczt@gmail.com (deforceczt@gmail.com)> wrote:
Quote:
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 (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 (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
Back to top
krice at freeswitch.org
Guest





PostPosted: Tue Feb 02, 2016 9:55 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

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.

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.


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 consulting@freeswitch.org (consulting@freeswitch.org) 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

K

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Vladislav Ivanov
Sent: Tuesday, February 2, 2016 6:09 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
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
Back to top
lists at telefaks.de
Guest





PostPosted: Tue Feb 02, 2016 10:11 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

I've just stumpled over this:
Quote:
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:

Quote:
<![endif]--> <![endif]-->
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








Quote:
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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 ([email]lists[/email]) (att) telefaks.de
Internet: www.telefaks.de

Back to top
nneul at mst.edu
Guest





PostPosted: Tue Feb 02, 2016 10:24 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

"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:
Quote:
I've just stumpled over this:
Quote:
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:
Quote:

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

_________________________________________________________________________
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
Back to top
deforceczt at gmail.com
Guest





PostPosted: Thu Feb 11, 2016 7:17 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

Hey guys,

It is true, I haven't ran it as root, I fixed it.
But I still have issues with passing more than 50cps, same is happening...
4 cores CPU - CPU is good, 80% idle, load average: 0.81, 0.98 
This at 25 cps (I bridge the call, so cps*2)
Then I add 5 cps more:
load average: 1061.40, 333.52
And all OS start's lagging as hell, and i'm unable to find issue, have no idea what is happening...

My settings:
http://pastebin.com/62B45z4i

Anything I'm missing? Really strange that CPU drops like that... 





2016-02-02 17:22 GMT+02:00 Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)>:
Quote:
"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:
Quote:
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:
Quote:

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 (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 (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 ([email]lists[/email])  (att) telefaks.de
Internet:www.telefaks.de



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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 (nneul@mst.edu)
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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


Back to top
gmaruzz at gmail.com
Guest





PostPosted: Thu Feb 11, 2016 9:00 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

by default FreeSWITCH has a limit of 30cps... You must edit config files to change that...




On Thu, Feb 11, 2016 at 1:16 PM, Vladislav Ivanov <deforceczt@gmail.com (deforceczt@gmail.com)> wrote:
Quote:
Hey guys,

It is true, I haven't ran it as root, I fixed it.
But I still have issues with passing more than 50cps, same is happening...
4 cores CPU - CPU is good, 80% idle, load average: 0.81, 0.98 
This at 25 cps (I bridge the call, so cps*2)
Then I add 5 cps more:
load average: 1061.40, 333.52
And all OS start's lagging as hell, and i'm unable to find issue, have no idea what is happening...

My settings:
http://pastebin.com/62B45z4i

Anything I'm missing? Really strange that CPU drops like that... 





2016-02-02 17:22 GMT+02:00 Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)>:
Quote:
"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:
Quote:
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:
Quote:

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 (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 (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 ([email]lists[/email])  (att) telefaks.de
Internet:www.telefaks.de



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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 (nneul@mst.edu)
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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








_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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



--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Feb 11, 2016 9:40 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

I sense that your load testing method is flawed and you're just DDoSing the box.

On Thu, Feb 11, 2016 at 6:16 AM, Vladislav Ivanov <deforceczt@gmail.com (deforceczt@gmail.com)> wrote:
Quote:
Hey guys,

It is true, I haven't ran it as root, I fixed it.
But I still have issues with passing more than 50cps, same is happening...
4 cores CPU - CPU is good, 80% idle, load average: 0.81, 0.98 
This at 25 cps (I bridge the call, so cps*2)
Then I add 5 cps more:
load average: 1061.40, 333.52
And all OS start's lagging as hell, and i'm unable to find issue, have no idea what is happening...

My settings:
http://pastebin.com/62B45z4i

Anything I'm missing? Really strange that CPU drops like that... 





2016-02-02 17:22 GMT+02:00 Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)>:
Quote:
"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:
Quote:
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:
Quote:

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 (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 (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 ([email]lists[/email])  (att) telefaks.de
Internet:www.telefaks.de



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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 (nneul@mst.edu)
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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








_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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




--

Brian West
brian@freeswitch.org (brian@freeswitch.org)


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
Back to top
deforceczt at gmail.com
Guest





PostPosted: Thu Feb 11, 2016 9:47 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

I have changed it:
 <param name="sessions-per-second" value="400"/>

If there was limit - there would be no CPU hogging.
Here is status command:
FreeSWITCH (Version 1.6.6 git d2d0b32 2016-01-11 20:16:12Z 64bit) is ready
0 session(s) since startup
0 session(s) - peak 0, last 5min 0
0 session(s) per Sec out of max 400, peak 0, last 5min 0
10000 session(s) max
min idle cpu 0.00/100.00
Current Stack Size/Max 240K/8192K

I can believe that i'm just DDoSing my box.
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.




2016-02-11 16:38 GMT+02:00 Brian West <brian@freeswitch.org (brian@freeswitch.org)>:
Quote:
I sense that your load testing method is flawed and you're just DDoSing the box.

On Thu, Feb 11, 2016 at 6:16 AM, Vladislav Ivanov <deforceczt@gmail.com (deforceczt@gmail.com)> wrote:
Quote:
Hey guys,

It is true, I haven't ran it as root, I fixed it.
But I still have issues with passing more than 50cps, same is happening...
4 cores CPU - CPU is good, 80% idle, load average: 0.81, 0.98 
This at 25 cps (I bridge the call, so cps*2)
Then I add 5 cps more:
load average: 1061.40, 333.52
And all OS start's lagging as hell, and i'm unable to find issue, have no idea what is happening...

My settings:
http://pastebin.com/62B45z4i

Anything I'm missing? Really strange that CPU drops like that... 





2016-02-02 17:22 GMT+02:00 Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)>:
Quote:
"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:
Quote:
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:
Quote:

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 (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 (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 ([email]lists[/email])  (att) telefaks.de
Internet:www.telefaks.de



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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 (nneul@mst.edu)
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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








_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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




--



Brian West
brian@freeswitch.org (brian@freeswitch.org)


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:[url=tel:%2B19184209001]+19184209001[/url] | F:[url=tel:%2B19184209002]+19184209002[/url] | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest











_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Feb 11, 2016 11:17 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

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.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.








On Thu, Feb 11, 2016 at 8:45 AM, Vladislav Ivanov <deforceczt@gmail.com (deforceczt@gmail.com)> wrote:
Quote:
I have changed it:
 <param name="sessions-per-second" value="400"/>

If there was limit - there would be no CPU hogging.
Here is status command:
FreeSWITCH (Version 1.6.6 git d2d0b32 2016-01-11 20:16:12Z 64bit) is ready
0 session(s) since startup
0 session(s) - peak 0, last 5min 0
0 session(s) per Sec out of max 400, peak 0, last 5min 0
10000 session(s) max
min idle cpu 0.00/100.00
Current Stack Size/Max 240K/8192K

I can believe that i'm just DDoSing my box.
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.




2016-02-11 16:38 GMT+02:00 Brian West <brian@freeswitch.org (brian@freeswitch.org)>:
Quote:
I sense that your load testing method is flawed and you're just DDoSing the box.

On Thu, Feb 11, 2016 at 6:16 AM, Vladislav Ivanov <deforceczt@gmail.com (deforceczt@gmail.com)> wrote:
Quote:
Hey guys,

It is true, I haven't ran it as root, I fixed it.
But I still have issues with passing more than 50cps, same is happening...
4 cores CPU - CPU is good, 80% idle, load average: 0.81, 0.98 
This at 25 cps (I bridge the call, so cps*2)
Then I add 5 cps more:
load average: 1061.40, 333.52
And all OS start's lagging as hell, and i'm unable to find issue, have no idea what is happening...

My settings:
http://pastebin.com/62B45z4i

Anything I'm missing? Really strange that CPU drops like that... 





2016-02-02 17:22 GMT+02:00 Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)>:
Quote:
"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:
Quote:
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:
Quote:

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 (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 (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 ([email]lists[/email])  (att) telefaks.de
Internet:www.telefaks.de



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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 (nneul@mst.edu)
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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








_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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




--



Brian West
brian@freeswitch.org (brian@freeswitch.org)


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:[url=tel:%2B19184209001]+19184209001[/url] | F:[url=tel:%2B19184209002]+19184209002[/url] | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest











_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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






_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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




--
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
☞ http://freeswitch.org/  ☞ http://cluecon.com/  ☞ http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ http://freeswitch.org/g+


ClueCon Weekly Development Call 

☎ sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])  ☎ +19193869900 




https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
Back to top
gmaruzz at gmail.com
Guest





PostPosted: Thu Feb 11, 2016 11:21 am    Post subject: [Freeswitch-users] Does freeswitch forks his processes? Reply with quote

Smile)

guys like talk about fast cars and
Smile)



On Thu, Feb 11, 2016 at 5:15 PM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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.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.








On Thu, Feb 11, 2016 at 8:45 AM, Vladislav Ivanov <deforceczt@gmail.com (deforceczt@gmail.com)> wrote:
Quote:
I have changed it:
 <param name="sessions-per-second" value="400"/>

If there was limit - there would be no CPU hogging.
Here is status command:
FreeSWITCH (Version 1.6.6 git d2d0b32 2016-01-11 20:16:12Z 64bit) is ready
0 session(s) since startup
0 session(s) - peak 0, last 5min 0
0 session(s) per Sec out of max 400, peak 0, last 5min 0
10000 session(s) max
min idle cpu 0.00/100.00
Current Stack Size/Max 240K/8192K

I can believe that i'm just DDoSing my box.
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.




2016-02-11 16:38 GMT+02:00 Brian West <brian@freeswitch.org (brian@freeswitch.org)>:
Quote:
I sense that your load testing method is flawed and you're just DDoSing the box.

On Thu, Feb 11, 2016 at 6:16 AM, Vladislav Ivanov <deforceczt@gmail.com (deforceczt@gmail.com)> wrote:
Quote:
Hey guys,

It is true, I haven't ran it as root, I fixed it.
But I still have issues with passing more than 50cps, same is happening...
4 cores CPU - CPU is good, 80% idle, load average: 0.81, 0.98 
This at 25 cps (I bridge the call, so cps*2)
Then I add 5 cps more:
load average: 1061.40, 333.52
And all OS start's lagging as hell, and i'm unable to find issue, have no idea what is happening...

My settings:
http://pastebin.com/62B45z4i

Anything I'm missing? Really strange that CPU drops like that... 





2016-02-02 17:22 GMT+02:00 Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)>:
Quote:
"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:
Quote:
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:
Quote:

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 (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 (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 ([email]lists[/email])  (att) telefaks.de
Internet:www.telefaks.de



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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 (nneul@mst.edu)
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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








_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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




--



Brian West
brian@freeswitch.org (brian@freeswitch.org)


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:[url=tel:%2B19184209001]+19184209001[/url] | F:[url=tel:%2B19184209002]+19184209002[/url] | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest











_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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






_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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




--


Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
☞ http://freeswitch.org/  ☞ http://cluecon.com/  ☞ http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ http://freeswitch.org/g+


ClueCon Weekly Development Call 

☎ sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])  ☎ [url=tel:%2B19193869900]+19193869900[/url] 




https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA









_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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



--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services