Re: [asterisk-users] Asterisk stress call test

2008-08-20 Thread aby azid
Hi,

Would like to thank you everyone for the feedbacks and suggestions. I used
SIPp software(http://sipp.sourceforge.net/doc/reference.html#Installing+SIPp)
to do the stress test on Asterisk and managed to get the appropriate result.


Now my next task is to do a stress test on IAX2 channels. Is there such
tools and ways for me to create simultaneous AIX2 calls?. Again, really
appreciate if anyone can come up with ideas or tools for me to achieve this.

Thank you in advance,

Regards,
Aby Azid
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Asterisk stress call test

2008-08-15 Thread Saul Bejarano
The term DIE is not correct sorry, it will be better say CRASH if that 
works for you, if you stress call an asterisk the moment you reach the 
treshold of that stress test the application will stop responding, 
initially it will start popping errors on the log then it will just stop 
responding having to reboot the asterisk session.
The one crashing is asterisk as an application not the box itself.


Now, is there something you have to help this user? or it is just about 
making a point?


Al Baker wrote:
> 
> Saul Bejarano wrote:
>> Remember the rule of 30Mhz per call when you kill the machine and also 
>> the bandwidth usage on connected calls.
>>
>> Kind regards,
>>
>> Saul Bejarano
>>
>> aby azid wrote:
>>   
>>> Hi everyone,
>>>
>>> I'm required to make  a stress call on Asterisk server ( > 2000 calls 
>>> per seconds). Are there tools for me to do this sort of test. I was 
>>> thinking of sending loads of Asterisk call files simultaneously 
>>> (starting with 100 call files). Really appreciate if anyone can come up 
>>> with ideas or tools for me to achieve this.
>>>
>>> Cheers,
>>> Aby Azid
>>> Vyke Asia
>>> 
> Where did you get the "Rule" of 30Mhz per call ???
> Wouldn't this be highly dependent on whether it to TDM over a T1 or 
> whether it was in SIP , and which CODEC it was using.
> 
> And why would a properly configured machine "Die", have a HIGH Load 
> Average - YesDIED - Sounds like WinBlows to me
> 
> Yoa - Aby - You need to define your test scenario more fully.  Are you 
> making a call OUT of the box , into the box,  a MIX
> How Long are the calls ?
> Net, net , how many simultaneous call are you going to have ?
> How man Call Originations are there ?
> How may Call Answers ?
> 
> 
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
> 


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk stress call test

2008-08-15 Thread Saul Bejarano
Hi Atis:
Based on your experience.
How many calls can be handled by a single Pentium 3.0Ghz processor on a 
2GB RAM machine spining a 10Krpm disk?

Thanks for the repply, great tool.

Atis Lezdins wrote:
> On Fri, Aug 15, 2008 at 8:31 AM, aby azid <[EMAIL PROTECTED]> wrote:
>> Hi everyone,
>>
>> I'm required to make  a stress call on Asterisk server ( > 2000 calls per
>> seconds). Are there tools for me to do this sort of test. I was thinking of
>> sending loads of Asterisk call files simultaneously (starting with 100 call
>> files). Really appreciate if anyone can come up with ideas or tools for me
>> to achieve this.
>>
> 
> Hi,
> 
> I've written test framework, you'll need another machine with Asterisk
> (+php) on it to generate calls. It allows to write scripts in PHP to
> emulate random customer actions, etc.. You can download it here
> http://ftp.iq-labs.net/pbx-test/
> If you find it useful, or get into some problems, don't hesitate to write me.
> 
> If you need just bunch of identical calls, you may also try out SIPp.
> 
> Regards,
> Atis
> 
> 
> 
> 


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk stress call test

2008-08-15 Thread Saul Bejarano
Well lets go by parts:
In regards to your question about the CPU processor usage I am 
evaluating the scenario posted by the customer which is not at all the 
generic one you are talking about.
He wants STRESS CALL TEST which is SIP to SIP based on the software he 
is trying to use:

http://www.voip-info.org/wiki/view/Asterisk+dimensioning
You can find answers to your first question here, please follow the link.

Al Baker wrote:
> 
> Saul Bejarano wrote:
>> Remember the rule of 30Mhz per call when you kill the machine and also 
>> the bandwidth usage on connected calls.
>>
>> Kind regards,
>>
>> Saul Bejarano
>>
>> aby azid wrote:
>>   
>>> Hi everyone,
>>>
>>> I'm required to make  a stress call on Asterisk server ( > 2000 calls 
>>> per seconds). Are there tools for me to do this sort of test. I was 
>>> thinking of sending loads of Asterisk call files simultaneously 
>>> (starting with 100 call files). Really appreciate if anyone can come up 
>>> with ideas or tools for me to achieve this.
>>>
>>> Cheers,
>>> Aby Azid
>>> Vyke Asia
>>> 
> Where did you get the "Rule" of 30Mhz per call ???
> Wouldn't this be highly dependent on whether it to TDM over a T1 or 
> whether it was in SIP , and which CODEC it was using.
> 
> And why would a properly configured machine "Die", have a HIGH Load 
> Average - YesDIED - Sounds like WinBlows to me
> 
> Yoa - Aby - You need to define your test scenario more fully.  Are you 
> making a call OUT of the box , into the box,  a MIX
> How Long are the calls ?
> Net, net , how many simultaneous call are you going to have ?
> How man Call Originations are there ?
> How may Call Answers ?
> 
> 
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
> 


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk stress call test

2008-08-15 Thread Mik Cheez
Aby,

Assuming you're building Asterisk from source, you can change the 
following in the scan_thread function:

change-
 sleep(1);

to-
 /*sleep(1);*/
 usleep(10);


This will change the delay from 1 second to 10 microseconds (0.1 
second).

Of course Al's question is more relevant, as placing a thousand SIP 
calls is much different than sending calls through a ZAP channel.  If 
SIP, then what codec?  Also, you're going to find that Asterisk isn't 
the bottleneck in the scenario, but rather the computer (or computers) 
itself.  You can look around www.voip-info.org to see how other users 
performance tests look before trying your own stress test.  This will 
allow you to estimate your own performance before making call 1.

Best regards,

Mik

aby azid wrote:
> Hi,
> 
> Thanks for the reply mates, to Al Baker, It's a stress test for Asterisk 
> outgoing calls, this is to see how Asterisk cope when thousands(1000 - 
> 2000) of calls made simultaneously from the server.
> 
> To Mik, where do I find the pbx_spool.c ?, really appreciate if u can 
> explain more details on the method you used.
> 
> Cheers,
> Aby Azid
> Vyke Asia
> 
> On Fri, Aug 15, 2008 at 1:45 PM, Saul Bejarano <[EMAIL PROTECTED] 
> > wrote:
> 
> Remember the rule of 30Mhz per call when you kill the machine and also
> the bandwidth usage on connected calls.
> 
> Kind regards,
> 
> Saul Bejarano
> 
> aby azid wrote:
>  > Hi everyone,
>  >
>  > I'm required to make  a stress call on Asterisk server ( > 2000 calls
>  > per seconds). Are there tools for me to do this sort of test. I was
>  > thinking of sending loads of Asterisk call files simultaneously
>  > (starting with 100 call files). Really appreciate if anyone can
> come up
>  > with ideas or tools for me to achieve this.
>  >
>  > Cheers,
>  > Aby Azid
>  > Vyke Asia
>  >
>  >
>  >
> 
>  >
>  > ___
>  > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>  >
>  > AstriCon 2008 - September 22 - 25 Phoenix, Arizona
>  > Register Now: http://www.astricon.net
>  >
>  > asterisk-users mailing list
>  > To UNSUBSCRIBE or update options visit:
>  >http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> 
> 
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk stress call test

2008-08-15 Thread Atis Lezdins
On Fri, Aug 15, 2008 at 8:31 AM, aby azid <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm required to make  a stress call on Asterisk server ( > 2000 calls per
> seconds). Are there tools for me to do this sort of test. I was thinking of
> sending loads of Asterisk call files simultaneously (starting with 100 call
> files). Really appreciate if anyone can come up with ideas or tools for me
> to achieve this.
>

Hi,

I've written test framework, you'll need another machine with Asterisk
(+php) on it to generate calls. It allows to write scripts in PHP to
emulate random customer actions, etc.. You can download it here
http://ftp.iq-labs.net/pbx-test/
If you find it useful, or get into some problems, don't hesitate to write me.

If you need just bunch of identical calls, you may also try out SIPp.

Regards,
Atis




-- 
Atis Lezdins,
VoIP Project Manager / Developer,
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk stress call test

2008-08-15 Thread Al Baker
OK - but again - more specifics are needed.
If you are going TDM over T1 that is a Totally Different Animal
than cranking up all these using IAX or .
Also, you still have to identify how many simultaneous calls you will have.
Again 1000 calls done "essentially" all at once is a different animal 
than if if stagger them , even a little.
So your traffic Profile will make a huge difference

aby azid wrote:
> Hi,
>
> Thanks for the reply mates, to Al Baker, It's a stress test for 
> Asterisk outgoing calls, this is to see how Asterisk cope when 
> thousands(1000 - 2000) of calls made simultaneously from the server.
>
> To Mik, where do I find the pbx_spool.c ?, really appreciate if u can 
> explain more details on the method you used.
>
> Cheers,
> Aby Azid
> Vyke Asia
>
> On Fri, Aug 15, 2008 at 1:45 PM, Saul Bejarano <[EMAIL PROTECTED] 
> > wrote:
>
> Remember the rule of 30Mhz per call when you kill the machine and also
> the bandwidth usage on connected calls.
>
> Kind regards,
>
> Saul Bejarano
>
> aby azid wrote:
> > Hi everyone,
> >
> > I'm required to make  a stress call on Asterisk server ( > 2000
> calls
> > per seconds). Are there tools for me to do this sort of test. I was
> > thinking of sending loads of Asterisk call files simultaneously
> > (starting with 100 call files). Really appreciate if anyone can
> come up
> > with ideas or tools for me to achieve this.
> >
> > Cheers,
> > Aby Azid
> > Vyke Asia
> >
> >
> >
> 
> >
> > ___
> > -- Bandwidth and Colocation Provided by
> http://www.api-digital.com --
> >
> > AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> > Register Now: http://www.astricon.net
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> 
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk stress call test

2008-08-15 Thread aby azid
Hi,

Thanks for the reply mates, to Al Baker, It's a stress test for Asterisk
outgoing calls, this is to see how Asterisk cope when thousands(1000 - 2000)
of calls made simultaneously from the server.

To Mik, where do I find the pbx_spool.c ?, really appreciate if u can
explain more details on the method you used.

Cheers,
Aby Azid
Vyke Asia

On Fri, Aug 15, 2008 at 1:45 PM, Saul Bejarano <[EMAIL PROTECTED]> wrote:

> Remember the rule of 30Mhz per call when you kill the machine and also
> the bandwidth usage on connected calls.
>
> Kind regards,
>
> Saul Bejarano
>
> aby azid wrote:
> > Hi everyone,
> >
> > I'm required to make  a stress call on Asterisk server ( > 2000 calls
> > per seconds). Are there tools for me to do this sort of test. I was
> > thinking of sending loads of Asterisk call files simultaneously
> > (starting with 100 call files). Really appreciate if anyone can come up
> > with ideas or tools for me to achieve this.
> >
> > Cheers,
> > Aby Azid
> > Vyke Asia
> >
> >
> > 
> >
> > ___
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> > Register Now: http://www.astricon.net
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Asterisk stress call test

2008-08-14 Thread Mik Cheez
I had done something similar in the past, and I have one suggestion that 
may be helpful; the call files are set to be checked every second, which 
can bottleneck the system a bit.  You can modify the code (pbx_spool.c) 
to check in fractions of a second, which should keep the calls more 
fluid.  You'll also want to make sure whatever process you're using to 
make the call files can easily be stopped or paused, and that you have a 
limit on the number of files that can exist in the file at one time.

Mik


aby azid wrote:
> Hi everyone,
> 
> I'm required to make  a stress call on Asterisk server ( > 2000 calls 
> per seconds). Are there tools for me to do this sort of test. I was 
> thinking of sending loads of Asterisk call files simultaneously 
> (starting with 100 call files). Really appreciate if anyone can come up 
> with ideas or tools for me to achieve this.
> 
> Cheers,
> Aby Azid
> Vyke Asia
> 
> 
> 
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk stress call test

2008-08-14 Thread Al Baker


Saul Bejarano wrote:
> Remember the rule of 30Mhz per call when you kill the machine and also 
> the bandwidth usage on connected calls.
>
> Kind regards,
>
> Saul Bejarano
>
> aby azid wrote:
>   
>> Hi everyone,
>>
>> I'm required to make  a stress call on Asterisk server ( > 2000 calls 
>> per seconds). Are there tools for me to do this sort of test. I was 
>> thinking of sending loads of Asterisk call files simultaneously 
>> (starting with 100 call files). Really appreciate if anyone can come up 
>> with ideas or tools for me to achieve this.
>>
>> Cheers,
>> Aby Azid
>> Vyke Asia
>> 
Where did you get the "Rule" of 30Mhz per call ???
Wouldn't this be highly dependent on whether it to TDM over a T1 or 
whether it was in SIP , and which CODEC it was using.

And why would a properly configured machine "Die", have a HIGH Load 
Average - YesDIED - Sounds like WinBlows to me

Yoa - Aby - You need to define your test scenario more fully.  Are you 
making a call OUT of the box , into the box,  a MIX
How Long are the calls ?
Net, net , how many simultaneous call are you going to have ?
How man Call Originations are there ?
How may Call Answers ?



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk stress call test

2008-08-14 Thread Saul Bejarano
Remember the rule of 30Mhz per call when you kill the machine and also 
the bandwidth usage on connected calls.

Kind regards,

Saul Bejarano

aby azid wrote:
> Hi everyone,
> 
> I'm required to make  a stress call on Asterisk server ( > 2000 calls 
> per seconds). Are there tools for me to do this sort of test. I was 
> thinking of sending loads of Asterisk call files simultaneously 
> (starting with 100 call files). Really appreciate if anyone can come up 
> with ideas or tools for me to achieve this.
> 
> Cheers,
> Aby Azid
> Vyke Asia
> 
> 
> 
> 
> ___
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Asterisk stress call test

2008-08-14 Thread aby azid
Hi everyone,

I'm required to make  a stress call on Asterisk server ( > 2000 calls per
seconds). Are there tools for me to do this sort of test. I was thinking of
sending loads of Asterisk call files simultaneously (starting with 100 call
files). Really appreciate if anyone can come up with ideas or tools for me
to achieve this.

Cheers,
Aby Azid
Vyke Asia
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users