Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Load testing and thread use


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





PostPosted: Thu Mar 26, 2009 1:47 pm    Post subject: [Freeswitch-users] Load testing and thread use Reply with quote

Dear All,

I am testing FS as a call queuing server.

My test set up is as follows;
Two Windows XP (SP3) Pc’s with 1.0.3 installed out of the box. [ Before anyone says use Linux I need to use windows for a specific reason]

I have a single gateway [fsb1500] on FS-1 configured to register with FS-2 [extn 1500].

I then use the following CLI command to create a call from FS1[5900] to FS2[5900]
“bgapi originate sofia/gateway/fsb1500/5900@richardl-5013-2.mettonigroup.com 5900”

This happily connects FS1[5900] to FS2[5900] . Codec set to G711a.
I have one hardphone on FS2 with a call connected to 5900 to allow me to listen to MOH.

I have been monitoring the system resources used by FS and have observed that for each new call a new thread is created.
I have pushed well over 200 calls from FS-1 into FS2.
All goes well with the CPU usage by FS (<25%) until 150 concurrent calls when it starts to climb rapidly and at 175 (~50%).
One good thing is that memory usage is reasonable with 90MB for 150 calls.

My questions are;
Q1 – Is my test reasonable ?

Q2 - Windows XP is not that happy with large numbers of thread per app. Is there a way to configure FS to use fewer threads; instead of using 1/call can it be configured to use to 1/(n calls) ?

Q3 – If there’s not a way to configure FS to combine threads would it be reasonable to consider modifying the FS code to allow the combining of threads or would this be a mammoth task.

Regards

Richard Lamkin
************************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Datapulse Ltd (part of the Mettoni Group) Registered in England and Wales: 4485978 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN *************************************************************************
Back to top
solko at gcdf.pl
Guest





PostPosted: Thu Mar 26, 2009 3:01 pm    Post subject: [Freeswitch-users] Load testing and thread use Reply with quote

Richard Lamkin pisze:
Quote:
Dear All,



I am testing FS as a call queuing server.



My test set up is as follows;

Two Windows XP (SP3) Pc’s with 1.0.3 installed out of the box. [
Before anyone says use Linux I need to use windows for a specific reason]



I have a single gateway [fsb1500] on FS-1 configured to register with
FS-2 [extn 1500].



I then use the following CLI command to create a call from FS1[5900] to
FS2[5900]

“bgapi originate
sofia/gateway/fsb1500/5900@richardl-5013-2.mettonigroup.com 5900”



This happily connects FS1[5900] to FS2[5900] . Codec set to G711a.

I have one hardphone on FS2 with a call connected to 5900 to allow me to
listen to MOH.



I have been monitoring the system resources used by FS and have observed
that for each new call a new thread is created.

I have pushed well over 200 calls from FS-1 into FS2.

All goes well with the CPU usage by FS (<25%) until 150 concurrent calls
when it starts to climb rapidly and at 175 (~50%).

One good thing is that memory usage is reasonable with 90MB for 150 calls.



My questions are;

Q1 – Is my test reasonable ?

Memory usage looks good, I noticed on my laptop with Linux with Pentium M 1,6GHz that having something like 200 channels connected
makes very big CPU usage, but what to expect if every channel was connected to one channel.
Quote:


Q2 - Windows XP is not that happy with large numbers of thread per app.
Is there a way to configure FS to use fewer threads; instead of using
1/call can it be configured to use to 1/(n calls) ?

Anthony here describes that there is one thread for channel, so don't expect it will change.
Quote:


Q3 – If there’s not a way to configure FS to combine threads would it
be reasonable to consider modifying the FS code to allow the combining
of threads or would this be a mammoth task.

The same as above.

I don't know XP so well, but if it only has problems with many threads for one application then consider running multiple FS
instances on one machine.
Quote:


Regards


Szymon Olko

Quote:

*************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager. http://www.mettoni.com

Datapulse Ltd (part of the Mettoni Group)
Registered in England and Wales: 4485978
9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN
*************************************************************************



------------------------------------------------------------------------

_______________________________________________
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


_______________________________________________
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
anthony.minessale at g...
Guest





PostPosted: Thu Mar 26, 2009 3:31 pm    Post subject: [Freeswitch-users] Load testing and thread use Reply with quote

The core philosophy of the entire design is based on a single thread per channel.
There is no way to avoid this.

What are the specs of your machines?
DId you try using the 2003 server instead of XP (a home version meant for single users)

We have little feedback on performance on win32 (good or bad) but we do have many people using it.

Did you do any more extensive profiling to see what is using the most cpu (look for process explorer)


2009/3/26 Richard Lamkin <Richard.Lamkin@mettoni.com (Richard.Lamkin@mettoni.com)>
Quote:

Dear All,

I am testing FS as a call queuing server.

My test set up is as follows;
Two Windows XP (SP3) Pcs with 1.0.3 installed out of the box. [ Before anyone says use Linux I need to use windows for a specific reason]

I have a single gateway [fsb1500] on FS-1 configured to register with FS-2 [extn 1500].

I then use the following CLI command to create a call from FS1[5900] to FS2[5900]
bgapi originate sofia/gateway/fsb1500/5900@richardl-5013-2.mettonigroup.com (5900@richardl-5013-2.mettonigroup.com) 5900

This happily connects FS1[5900] to FS2[5900] . Codec set to G711a.
I have one hardphone on FS2 with a call connected to 5900 to allow me to listen to MOH.

I have been monitoring the system resources used by FS and have observed that for each new call a new thread is created.
I have pushed well over 200 calls from FS-1 into FS2.
All goes well with the CPU usage by FS (<25%) until 150 concurrent calls when it starts to climb rapidly and at 175 (~50%).
One good thing is that memory usage is reasonable with 90MB for 150 calls.

My questions are;
Q1 Is my test reasonable ?

Q2 - Windows XP is not that happy with large numbers of thread per app. Is there a way to configure FS to use fewer threads; instead of using 1/call can it be configured to use to 1/(n calls) ?

Q3 If theres not a way to configure FS to combine threads would it be reasonable to consider modifying the FS code to allow the combining of threads or would this be a mammoth task.

Regards

Richard Lamkin
Quote:
*************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager. http://www.mettoni.com

Datapulse Ltd (part of the Mettoni Group)
Registered in England and Wales: 4485978
9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN
*************************************************************************



_______________________________________________
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

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Mar 26, 2009 5:10 pm    Post subject: [Freeswitch-users] Load testing and thread use Reply with quote

Is this windows specific?

/b

On Mar 26, 2009, at 4:40 PM, Peter J. Zandvoort wrote:
Quote:
have you looked at fibers?


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



-- Meet us a ClueCon! http://www.cluecon.com
Back to top
peter at cindyandpeter...
Guest





PostPosted: Thu Mar 26, 2009 5:10 pm    Post subject: [Freeswitch-users] Load testing and thread use Reply with quote

Anthony,

No argument on the core design – this is what differentiates FS from * and what makes things solid. But, on Windows at least, the “one-thread-per-client” concept normally only scales so far (Server normally being a bit better than XP).

Not sure about their availability on other platforms, but have you looked at fibers? They seem to be a lighter weight alternative with most of the benefits.

Peter


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: Thursday, March 26, 2009 4:21 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Load testing and thread use


The core philosophy of the entire design is based on a single thread per channel.
There is no way to avoid this.

What are the specs of your machines?
DId you try using the 2003 server instead of XP (a home version meant for single users)

We have little feedback on performance on win32 (good or bad) but we do have many people using it.

Did you do any more extensive profiling to see what is using the most cpu (look for process explorer)


2009/3/26 Richard Lamkin <Richard.Lamkin@mettoni.com (Richard.Lamkin@mettoni.com)>
Dear All,

I am testing FS as a call queuing server.

My test set up is as follows;
Two Windows XP (SP3) Pc’s with 1.0.3 installed out of the box. [ Before anyone says use Linux I need to use windows for a specific reason]

I have a single gateway [fsb1500] on FS-1 configured to register with FS-2 [extn 1500].

I then use the following CLI command to create a call from FS1[5900] to FS2[5900]
“bgapi originate sofia/gateway/fsb1500/5900@richardl-5013-2.mettonigroup.com (5900@richardl-5013-2.mettonigroup.com) 5900”

This happily connects FS1[5900] to FS2[5900] . Codec set to G711a.
I have one hardphone on FS2 with a call connected to 5900 to allow me to listen to MOH.

I have been monitoring the system resources used by FS and have observed that for each new call a new thread is created.
I have pushed well over 200 calls from FS-1 into FS2.
All goes well with the CPU usage by FS (<25%) until 150 concurrent calls when it starts to climb rapidly and at 175 (~50%).
One good thing is that memory usage is reasonable with 90MB for 150 calls.

My questions are;
Q1 – Is my test reasonable ?

Q2 - Windows XP is not that happy with large numbers of thread per app. Is there a way to configure FS to use fewer threads; instead of using 1/call can it be configured to use to 1/(n calls) ?

Q3 – If there’s not a way to configure FS to combine threads would it be reasonable to consider modifying the FS code to allow the combining of threads or would this be a mammoth task.

Regards

Richard Lamkin
Quote:
*************************************************************************This email and any files transmitted with it are confidential andintended solely for the use of the individual or entity to whom theyare addressed. If you have received this email in error please notifythe system manager. http://www.mettoni.com Datapulse Ltd (part of the Mettoni Group)Registered in England and Wales: 44859789400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN*************************************************************************This email and any files transmitted with it are confidential and
0


_______________________________________________
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

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Mar 26, 2009 5:11 pm    Post subject: [Freeswitch-users] Load testing and thread use Reply with quote

OH so this is like coroutines.

/b

On Mar 26, 2009, at 4:40 PM, Peter J. Zandvoort wrote:
Quote:
have you looked at fibers?


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



-- Meet us a ClueCon! http://www.cluecon.com
Back to top
grevenx at me.com
Guest





PostPosted: Thu Mar 26, 2009 5:20 pm    Post subject: [Freeswitch-users] Load testing and thread use Reply with quote

[url=http://en.wikipedia.org/wiki/Fiber_(computer_science)]http://en.wikipedia.org/wiki/Fiber_(computer_science)[/url]

Even Andr Fiskvik

On 26. mars. 2009, at 23.05, Brian West wrote:
Quote:
OH so this is like coroutines.

/b

On Mar 26, 2009, at 4:40 PM, Peter J. Zandvoort wrote:
Quote:
have you looked at fibers?


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



-- Meet us a ClueCon! 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
peter at cindyandpeter...
Guest





PostPosted: Thu Mar 26, 2009 5:41 pm    Post subject: [Freeswitch-users] Load testing and thread use Reply with quote

Looks like it! I must admit that I have very little experience with it…. it just looked like an additional toy to add to the bag of tricks. I’ve seen it used on mail servers and I think SQL Server now has the option. Both sound like things that would have long running client connections for which you want the simplicity of dedicated threads but not the overhead.

For Windows: [url=http://msdn.microsoft.com/en-us/library/ms682115(VS.85).aspx]http://msdn.microsoft.com/en-us/library/ms682115(VS.85).aspx[/url]



From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Even Andr Fiskvik
Sent: Thursday, March 26, 2009 6:12 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Load testing and thread use



[url=http://en.wikipedia.org/wiki/Fiber_(computer_science)]http://en.wikipedia.org/wiki/Fiber_(computer_science)[/url]


Even Andr Fiskvik


On 26. mars. 2009, at 23.05, Brian West wrote:




OH so this is like coroutines.


/b


On Mar 26, 2009, at 4:40 PM, Peter J. Zandvoort wrote:




have you looked at fibers?


Brian West

brian@freeswitch.org (brian@freeswitch.org)




-- Meet us a ClueCon! 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
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