Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] Limit Asterisk


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
eduardo at ypytecnolog...
Guest





PostPosted: Wed Jul 23, 2014 2:49 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

people 


I have a running Asterisk 1.8.28 in great Dell server with two xeon processors and 16gb of ram and HD SAS 15k (Raid 1). This server is recording all calls (placed to record the audio in a ram disk), the entire CDR goes straight to MySQL by cdr_mysql.so. Each call runs some validation and AGI's have an auto dialer system that generates calls over the manager. Calls originate and terminate via SIP (no transcode). 


With this structure, even being a great server, we can not spend 150 simultaneous calls. When it reaches 140, the load average goes up a lot and the calls start to get very bad audio, tear, etc.. Using the top we see that all the processing is for asterisk. In this scenario, I think there is some limitation in Asterisk, or even the manager due to the auto dialer. 


Can anyone give me any tips where I can look where is the bottleneck? I need to get at least 250 calls that server quality.


tks
Back to top
sgriepentrog at digium...
Guest





PostPosted: Wed Jul 23, 2014 3:30 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

Your bottleneck is most likely your drive bandwidth.  Even with SAS drives, you'll need to move to a raid 5+ solution with 6+ drives to continue to increase the concurrent calls, or use a storage appliance.


To confirm this, install the tool nmon and use the v and d options to bring up the resource usage indicators and drive busy/throughput statistics.





On Wed, Jul 23, 2014 at 2:48 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:
Quote:
people 


I have a running Asterisk 1.8.28 in great Dell server with two xeon processors and 16gb of ram and HD SAS 15k (Raid 1). This server is recording all calls (placed to record the audio in a ram disk), the entire CDR goes straight to MySQL by cdr_mysql.so. Each call runs some validation and AGI's have an auto dialer system that generates calls over the manager. Calls originate and terminate via SIP (no transcode). 


With this structure, even being a great server, we can not spend 150 simultaneous calls. When it reaches 140, the load average goes up a lot and the calls start to get very bad audio, tear, etc.. Using the top we see that all the processing is for asterisk. In this scenario, I think there is some limitation in Asterisk, or even the manager due to the auto dialer. 


Can anyone give me any tips where I can look where is the bottleneck? I need to get at least 250 calls that server quality.


tks





--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org
Back to top
rwheeler at artifact-s...
Guest





PostPosted: Wed Jul 23, 2014 4:02 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

I would also do some math on the bandwidth requirement.

If you divide your disk bandwidth by your recording bit rate what is the theoretical maximum number of calls that you can record at once? Assumes that you have infinite CPU and memory and that you can actually drive the disks at their maximum.
If this comes out to 300, you are already there. If it comes out to 3000, you have something wrong in your setup or your assumptions and a target to work towards.

What quality are you using in the recording? 44k per second(CD quality sound) uses a lot more bandwidth than 3K (telephone quality)
What encoding are you using?
How low a bit rate can you use and still have usable recordings? If they are for legal or audit use, you can go pretty low. If you are recording soundtracks for reuse in training or publication, you may require higher bit rates.

If you disable recording, how many simultaneous calls can you support? Just to be sure that recording is the issue.

Ron

On 23/07/2014 4:29 PM, Scott Griepentrog wrote:

Quote:
Your bottleneck is most likely your drive bandwidth. Even with SAS drives, you'll need to move to a raid 5+ solution with 6+ drives to continue to increase the concurrent calls, or use a storage appliance.


To confirm this, install the tool nmon and use the v and d options to bring up the resource usage indicators and drive busy/throughput statistics.





On Wed, Jul 23, 2014 at 2:48 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:
Quote:
people


I have a running Asterisk 1.8.28 in great Dell server with two xeon processors and 16gb of ram and HD SAS 15k (Raid 1). This server is recording all calls (placed to record the audio in a ram disk), the entire CDR goes straight to MySQL by cdr_mysql.so. Each call runs some validation and AGI's have an auto dialer system that generates calls over the manager. Calls originate and terminate via SIP (no transcode).


With this structure, even being a great server, we can not spend 150 simultaneous calls. When it reaches 140, the load average goes up a lot and the calls start to get very bad audio, tear, etc.. Using the top we see that all the processing is for asterisk. In this scenario, I think there is some limitation in Asterisk, or even the manager due to the auto dialer.


Can anyone give me any tips where I can look where is the bottleneck? I need to get at least 250 calls that server quality.


tks





--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org





--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com (rwheeler@artifact-software.com)
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
Back to top
eduardo at ypytecnolog...
Guest





PostPosted: Wed Jul 23, 2014 4:04 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

Thanks for the feedback. 


In this case SSD disks you think it solves?



Eduardo


2014-07-23 18:01 GMT-03:00 Ron Wheeler <rwheeler@artifact-software.com (rwheeler@artifact-software.com)>:
Quote:
I would also do some math on the bandwidth requirement.

If you divide your disk bandwidth by your recording bit rate what is the theoretical maximum number of calls that you can record at once? Assumes that you have infinite CPU and memory and that you can actually drive the disks at their maximum.
If this comes out to 300, you are already there. If it comes out to 3000, you have something wrong in your setup or your assumptions and a target to work towards.
 
What quality are you using in the recording? 44k per second(CD quality sound)  uses a lot more bandwidth than 3K (telephone quality)
What encoding are you using?
How low a bit rate can you use and still have usable recordings? If they are for legal or audit use, you can go pretty low. If you are recording soundtracks for reuse in training or publication, you may require higher bit rates.

If you disable recording, how many simultaneous calls can you support? Just to be sure that recording is the issue.

Ron

On 23/07/2014 4:29 PM, Scott Griepentrog wrote:



Quote:
Your bottleneck is most likely your drive bandwidth.  Even with SAS drives, you'll need to move to a raid 5+ solution with 6+ drives to continue to increase the concurrent calls, or use a storage appliance.


To confirm this, install the tool nmon and use the v and d options to bring up the resource usage indicators and drive busy/throughput statistics.





On Wed, Jul 23, 2014 at 2:48 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:
Quote:
people 


I have a running Asterisk 1.8.28 in great Dell server with two xeon processors and 16gb of ram and HD SAS 15k (Raid 1). This server is recording all calls (placed to record the audio in a ram disk), the entire CDR goes straight to MySQL by cdr_mysql.so. Each call runs some validation and AGI's have an auto dialer system that generates calls over the manager. Calls originate and terminate via SIP (no transcode). 


With this structure, even being a great server, we can not spend 150 simultaneous calls. When it reaches 140, the load average goes up a lot and the calls start to get very bad audio, tear, etc.. Using the top we see that all the processing is for asterisk. In this scenario, I think there is some limitation in Asterisk, or even the manager due to the auto dialer. 


Can anyone give me any tips where I can look where is the bottleneck? I need to get at least 250 calls that server quality.


tks





--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org









Quote:
--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com (rwheeler@artifact-software.com)
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
eduardo at ypytecnolog...
Guest





PostPosted: Wed Jul 23, 2014 4:04 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

Thanks for the feedback. 


In this case SSD disks you think it solves?





2014-07-23 17:29 GMT-03:00 Scott Griepentrog <sgriepentrog@digium.com (sgriepentrog@digium.com)>:
Quote:
Your bottleneck is most likely your drive bandwidth.  Even with SAS drives, you'll need to move to a raid 5+ solution with 6+ drives to continue to increase the concurrent calls, or use a storage appliance.


To confirm this, install the tool nmon and use the v and d options to bring up the resource usage indicators and drive busy/throughput statistics.





On Wed, Jul 23, 2014 at 2:48 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:


Quote:
people 


I have a running Asterisk 1.8.28 in great Dell server with two xeon processors and 16gb of ram and HD SAS 15k (Raid 1). This server is recording all calls (placed to record the audio in a ram disk), the entire CDR goes straight to MySQL by cdr_mysql.so. Each call runs some validation and AGI's have an auto dialer system that generates calls over the manager. Calls originate and terminate via SIP (no transcode). 


With this structure, even being a great server, we can not spend 150 simultaneous calls. When it reaches 140, the load average goes up a lot and the calls start to get very bad audio, tear, etc.. Using the top we see that all the processing is for asterisk. In this scenario, I think there is some limitation in Asterisk, or even the manager due to the auto dialer. 


Can anyone give me any tips where I can look where is the bottleneck? I need to get at least 250 calls that server quality.


tks







--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org




--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
rwheeler at artifact-s...
Guest





PostPosted: Wed Jul 23, 2014 4:14 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

Do the calculations for both and see what the answer is.
The nice thing about having a model is that you can test configurations without actually having to build one until you are confident that it should work.

Ron


On 23/07/2014 5:04 PM, Eduardo Leones wrote:

Quote:
Thanks for the feedback.


In this case SSD disks you think it solves?





2014-07-23 17:29 GMT-03:00 Scott Griepentrog <sgriepentrog@digium.com (sgriepentrog@digium.com)>:
Quote:
Your bottleneck is most likely your drive bandwidth. Even with SAS drives, you'll need to move to a raid 5+ solution with 6+ drives to continue to increase the concurrent calls, or use a storage appliance.


To confirm this, install the tool nmon and use the v and d options to bring up the resource usage indicators and drive busy/throughput statistics.





On Wed, Jul 23, 2014 at 2:48 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:


Quote:
people


I have a running Asterisk 1.8.28 in great Dell server with two xeon processors and 16gb of ram and HD SAS 15k (Raid 1). This server is recording all calls (placed to record the audio in a ram disk), the entire CDR goes straight to MySQL by cdr_mysql.so. Each call runs some validation and AGI's have an auto dialer system that generates calls over the manager. Calls originate and terminate via SIP (no transcode).


With this structure, even being a great server, we can not spend 150 simultaneous calls. When it reaches 140, the load average goes up a lot and the calls start to get very bad audio, tear, etc.. Using the top we see that all the processing is for asterisk. In this scenario, I think there is some limitation in Asterisk, or even the manager due to the auto dialer.


Can anyone give me any tips where I can look where is the bottleneck? I need to get at least 250 calls that server quality.


tks







--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org




--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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






--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com (rwheeler@artifact-software.com)
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Wed Jul 23, 2014 4:30 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

Please don't top-post.

On Wed, 23 Jul 2014, Eduardo Leones wrote:

Quote:
In this case SSD disks you think it solves?

Don't buy hardware until you've identified (either empirical or
calculated) the bottleneck.

But...

SSDs do rock. I recently observed (via vmstat 5) a Samsung 840 topping out
at 460,000 blocks per second. I can remember when 10,000 was big Smile

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
asterisk at lists.mino...
Guest





PostPosted: Wed Jul 23, 2014 4:49 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

On 23/7/14 10:29 pm, Steve Edwards wrote:
Quote:
Don't buy hardware until you've identified (either empirical or
calculated) the bottleneck.

If you've plenty of spare RAM (and at 16GB I'd suggest you probably do),
I'd throw in the possibility of recording to RAM disk, then moving the
calls to hard disk during your quiet (or closed) hours.

Quote:
SSDs do rock. I recently observed (via vmstat 5) a Samsung 840 topping
out at 460,000 blocks per second. I can remember when 10,000 was big Smile

This. The 840 is a great bit of kit - we've replaced nearly all our
spinning disks with a mix of Samsung 830 and 840 drives.

Kind regards,

Chris
--
This email is made from 100% recycled electrons

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Wed Jul 23, 2014 5:19 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

On Wed, 23 Jul 2014, Chris Bagnall wrote:

Quote:
The 840 is a great bit of kit...

The 850 is supposed to be shipping next week. It's got 3d VNAND so the
chip geometry can be bigger -- higher speeds and greater reliability.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
sgriepentrog at digium...
Guest





PostPosted: Thu Jul 24, 2014 6:55 am    Post subject: [asterisk-users] Limit Asterisk Reply with quote

Whether SSD drives allow you to add any additional calls depends entirely on whether or not they can be written to faster than the SAS drives you have.  My experience shows SSD's can be twice as fast as run-of-the-mill SATA, but the performance difference compared to SAS is likely not as great, and could even be worse.  You'll need to test two drives to find out.  I recommend mounting both to test them and copying a very large ISO file using dd which will give you the transfer rate when finished.  Then you should have your answer.



On Wed, Jul 23, 2014 at 4:03 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:
Quote:
Thanks for the feedback. 


In this case SSD disks you think it solves?



Eduardo


2014-07-23 18:01 GMT-03:00 Ron Wheeler <rwheeler@artifact-software.com (rwheeler@artifact-software.com)>:
Quote:
I would also do some math on the bandwidth requirement.

If you divide your disk bandwidth by your recording bit rate what is the theoretical maximum number of calls that you can record at once? Assumes that you have infinite CPU and memory and that you can actually drive the disks at their maximum.
If this comes out to 300, you are already there. If it comes out to 3000, you have something wrong in your setup or your assumptions and a target to work towards.
 
What quality are you using in the recording? 44k per second(CD quality sound)  uses a lot more bandwidth than 3K (telephone quality)
What encoding are you using?
How low a bit rate can you use and still have usable recordings? If they are for legal or audit use, you can go pretty low. If you are recording soundtracks for reuse in training or publication, you may require higher bit rates.

If you disable recording, how many simultaneous calls can you support? Just to be sure that recording is the issue.

Ron

On 23/07/2014 4:29 PM, Scott Griepentrog wrote:



Quote:
Your bottleneck is most likely your drive bandwidth.  Even with SAS drives, you'll need to move to a raid 5+ solution with 6+ drives to continue to increase the concurrent calls, or use a storage appliance.


To confirm this, install the tool nmon and use the v and d options to bring up the resource usage indicators and drive busy/throughput statistics.





On Wed, Jul 23, 2014 at 2:48 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:
Quote:
people 


I have a running Asterisk 1.8.28 in great Dell server with two xeon processors and 16gb of ram and HD SAS 15k (Raid 1). This server is recording all calls (placed to record the audio in a ram disk), the entire CDR goes straight to MySQL by cdr_mysql.so. Each call runs some validation and AGI's have an auto dialer system that generates calls over the manager. Calls originate and terminate via SIP (no transcode). 


With this structure, even being a great server, we can not spend 150 simultaneous calls. When it reaches 140, the load average goes up a lot and the calls start to get very bad audio, tear, etc.. Using the top we see that all the processing is for asterisk. In this scenario, I think there is some limitation in Asterisk, or even the manager due to the auto dialer. 


Can anyone give me any tips where I can look where is the bottleneck? I need to get at least 250 calls that server quality.


tks





--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org









Quote:
--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com (rwheeler@artifact-software.com)
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org
Back to top
eduardo at ypytecnolog...
Guest





PostPosted: Thu Jul 24, 2014 7:06 am    Post subject: [asterisk-users] Limit Asterisk Reply with quote

Thank you all for the answers. I will do tests to find the problem. 


One other question I have, in the scenario that I sent, how bad would be to transcode G711 to G729 in 70% of calls? There is a study that shows a statistically loss of performance (concurrent calls) with active transcode?


tks





2014-07-24 8:54 GMT-03:00 Scott Griepentrog <sgriepentrog@digium.com (sgriepentrog@digium.com)>:
Quote:
Whether SSD drives allow you to add any additional calls depends entirely on whether or not they can be written to faster than the SAS drives you have.  My experience shows SSD's can be twice as fast as run-of-the-mill SATA, but the performance difference compared to SAS is likely not as great, and could even be worse.  You'll need to test two drives to find out.  I recommend mounting both to test them and copying a very large ISO file using dd which will give you the transfer rate when finished.  Then you should have your answer.



On Wed, Jul 23, 2014 at 4:03 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:
Quote:
Thanks for the feedback. 


In this case SSD disks you think it solves?




Eduardo


2014-07-23 18:01 GMT-03:00 Ron Wheeler <rwheeler@artifact-software.com (rwheeler@artifact-software.com)>:
Quote:
I would also do some math on the bandwidth requirement.

If you divide your disk bandwidth by your recording bit rate what is the theoretical maximum number of calls that you can record at once? Assumes that you have infinite CPU and memory and that you can actually drive the disks at their maximum.
If this comes out to 300, you are already there. If it comes out to 3000, you have something wrong in your setup or your assumptions and a target to work towards.
 
What quality are you using in the recording? 44k per second(CD quality sound)  uses a lot more bandwidth than 3K (telephone quality)
What encoding are you using?
How low a bit rate can you use and still have usable recordings? If they are for legal or audit use, you can go pretty low. If you are recording soundtracks for reuse in training or publication, you may require higher bit rates.

If you disable recording, how many simultaneous calls can you support? Just to be sure that recording is the issue.

Ron

On 23/07/2014 4:29 PM, Scott Griepentrog wrote:



Quote:
Your bottleneck is most likely your drive bandwidth.  Even with SAS drives, you'll need to move to a raid 5+ solution with 6+ drives to continue to increase the concurrent calls, or use a storage appliance.


To confirm this, install the tool nmon and use the v and d options to bring up the resource usage indicators and drive busy/throughput statistics.





On Wed, Jul 23, 2014 at 2:48 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:
Quote:
people 


I have a running Asterisk 1.8.28 in great Dell server with two xeon processors and 16gb of ram and HD SAS 15k (Raid 1). This server is recording all calls (placed to record the audio in a ram disk), the entire CDR goes straight to MySQL by cdr_mysql.so. Each call runs some validation and AGI's have an auto dialer system that generates calls over the manager. Calls originate and terminate via SIP (no transcode). 


With this structure, even being a great server, we can not spend 150 simultaneous calls. When it reaches 140, the load average goes up a lot and the calls start to get very bad audio, tear, etc.. Using the top we see that all the processing is for asterisk. In this scenario, I think there is some limitation in Asterisk, or even the manager due to the auto dialer. 


Can anyone give me any tips where I can look where is the bottleneck? I need to get at least 250 calls that server quality.


tks





--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org









Quote:
--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com (rwheeler@artifact-software.com)
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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






--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org






--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
eduardo at ypytecnolog...
Guest





PostPosted: Thu Jul 24, 2014 12:07 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

Another question, what audio format I use in MixMonitor to maintain a connection with reasonable quality and reduce the use of I / O disk? Today I use wav.

tks



2014-07-24 9:05 GMT-03:00 Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)>:
Quote:
Thank you all for the answers. I will do tests to find the problem. 


One other question I have, in the scenario that I sent, how bad would be to transcode G711 to G729 in 70% of calls? There is a study that shows a statistically loss of performance (concurrent calls) with active transcode?


tks





2014-07-24 8:54 GMT-03:00 Scott Griepentrog <sgriepentrog@digium.com (sgriepentrog@digium.com)>:
Quote:
Whether SSD drives allow you to add any additional calls depends entirely on whether or not they can be written to faster than the SAS drives you have.  My experience shows SSD's can be twice as fast as run-of-the-mill SATA, but the performance difference compared to SAS is likely not as great, and could even be worse.  You'll need to test two drives to find out.  I recommend mounting both to test them and copying a very large ISO file using dd which will give you the transfer rate when finished.  Then you should have your answer.



On Wed, Jul 23, 2014 at 4:03 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:
Quote:
Thanks for the feedback. 


In this case SSD disks you think it solves?




Eduardo


2014-07-23 18:01 GMT-03:00 Ron Wheeler <rwheeler@artifact-software.com (rwheeler@artifact-software.com)>:
Quote:
I would also do some math on the bandwidth requirement.

If you divide your disk bandwidth by your recording bit rate what is the theoretical maximum number of calls that you can record at once? Assumes that you have infinite CPU and memory and that you can actually drive the disks at their maximum.
If this comes out to 300, you are already there. If it comes out to 3000, you have something wrong in your setup or your assumptions and a target to work towards.
 
What quality are you using in the recording? 44k per second(CD quality sound)  uses a lot more bandwidth than 3K (telephone quality)
What encoding are you using?
How low a bit rate can you use and still have usable recordings? If they are for legal or audit use, you can go pretty low. If you are recording soundtracks for reuse in training or publication, you may require higher bit rates.

If you disable recording, how many simultaneous calls can you support? Just to be sure that recording is the issue.

Ron

On 23/07/2014 4:29 PM, Scott Griepentrog wrote:



Quote:
Your bottleneck is most likely your drive bandwidth.  Even with SAS drives, you'll need to move to a raid 5+ solution with 6+ drives to continue to increase the concurrent calls, or use a storage appliance.


To confirm this, install the tool nmon and use the v and d options to bring up the resource usage indicators and drive busy/throughput statistics.





On Wed, Jul 23, 2014 at 2:48 PM, Eduardo Leones <eduardo@ypytecnologia.com.br (eduardo@ypytecnologia.com.br)> wrote:
Quote:
people 


I have a running Asterisk 1.8.28 in great Dell server with two xeon processors and 16gb of ram and HD SAS 15k (Raid 1). This server is recording all calls (placed to record the audio in a ram disk), the entire CDR goes straight to MySQL by cdr_mysql.so. Each call runs some validation and AGI's have an auto dialer system that generates calls over the manager. Calls originate and terminate via SIP (no transcode). 


With this structure, even being a great server, we can not spend 150 simultaneous calls. When it reaches 140, the load average goes up a lot and the calls start to get very bad audio, tear, etc.. Using the top we see that all the processing is for asterisk. In this scenario, I think there is some limitation in Asterisk, or even the manager due to the auto dialer. 


Can anyone give me any tips where I can look where is the bottleneck? I need to get at least 250 calls that server quality.


tks





--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org









Quote:
--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com (rwheeler@artifact-software.com)
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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






--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org






--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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






Back to top
asterisk.org at sedwar...
Guest





PostPosted: Thu Jul 24, 2014 12:39 pm    Post subject: [asterisk-users] Limit Asterisk Reply with quote

Please don't top-post.

Please trim irrelevant posts.

On Thu, 24 Jul 2014, Eduardo Leones wrote:

Quote:
Another question, what audio format I use in MixMonitor to maintain a
connection with reasonable quality and reduce the use of I / O disk?

I think the question is premature.

You have a resource limitation. Until you know what that limitation is,
you can't really make intelligent changes.

Is it I/O activity or I/O bandwidth?

Are you swapping? (Swapping is 'death' to performance.)

Are you running out of CPU?

If you're planning on transcoding to something as computationally
intensive as 729, do you have gobs of excess CPU capacity? If not, you'll
just be trading 1 resource limitation for another.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk 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