Re: [asterisk-users] Troubleshooting load issues

2020-04-22 Thread Sean Bright

On 4/22/2020 2:55 PM, Dovid Bender wrote:
All the calls are using ulaw. The files that I am playing are gsm. I 
suppose doing a file convert with sox to .ulaw may help


You should absolutely do this.

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Troubleshooting load issues

2020-04-22 Thread Dovid Bender
Eric,

Thanks. I will give that a shot and will see how it acts tomorrow.



On Wed, Apr 22, 2020 at 3:26 PM Eric Wieling  wrote:

> Try setting transcode_via_sln=no in /etc/asterisk/asterisk.conf and
> restart Asterisk.  A reload will NOT apply the new value.  Setting it to
> no seems to smooth out CPU usage on one of my servers.
>
>
> On 4/22/20 2:01 PM, Dovid Bender wrote:
> > Hi,
> >
> > I have an Asterisk box which has an IVR that plays random gsm files. The
> > box has SSD's and two CPU E5-2695 v2 cpus with 64GB ram. The Asterisk
> > CPU usage along with the load seems to jump around. With about 500
> > callers it hovers between 250-400% CPU (so 2.5 to 4 cores) which seems
> > reasonable. Every so often the load average spikes. The idle never drops
> > below 85%. When the load average spikes I see a lot of kworker threads
> > and the CPU usage tends to (not not always) go up as well. How would I
> > go about seeing what in Asterisk is causing the spike? The box is locked
> > down and only takes calls from an OpenSiPS box. There is nothing else
> > running on the box.
> >
> > TIA.
> >
> > Dovid
> >
> >
>
> --
> http://help.nyigc.net/
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Troubleshooting load issues

2020-04-22 Thread Eric Wieling
Try setting transcode_via_sln=no in /etc/asterisk/asterisk.conf and 
restart Asterisk.  A reload will NOT apply the new value.  Setting it to 
no seems to smooth out CPU usage on one of my servers.



On 4/22/20 2:01 PM, Dovid Bender wrote:

Hi,

I have an Asterisk box which has an IVR that plays random gsm files. The 
box has SSD's and two CPU E5-2695 v2 cpus with 64GB ram. The Asterisk 
CPU usage along with the load seems to jump around. With about 500 
callers it hovers between 250-400% CPU (so 2.5 to 4 cores) which seems 
reasonable. Every so often the load average spikes. The idle never drops 
below 85%. When the load average spikes I see a lot of kworker threads 
and the CPU usage tends to (not not always) go up as well. How would I 
go about seeing what in Asterisk is causing the spike? The box is locked 
down and only takes calls from an OpenSiPS box. There is nothing else 
running on the box.


TIA.

Dovid




--
http://help.nyigc.net/

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Troubleshooting load issues

2020-04-22 Thread Telium Technical Support
I assumed the spikes were within the Asterisk process.   If the spikes last 
long enough use htop and iotop to see if the spikes are outside of your process.

 

If outside the Asterisk process then there are lots of generic troubleshooting 
guides.  If within the Asterisk process (and no transcoding) then turn verbose 
way up and watch for clues on CLI when a spike occurs.

 

 

From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf 
Of Dovid Bender
Sent: Wednesday, April 22, 2020 2:55 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [asterisk-users] Troubleshooting load issues

 

All the calls are using ulaw. The files that I am playing are gsm. I suppose 
doing a file convert with sox to .ulaw may help but it should be able to do 500 
calls without an issue. Can it possibly be a bug? if not how do I profile which 
call(s) can be causing the spike? 

 

 

On Wed, Apr 22, 2020 at 2:21 PM Telium Technical Support mailto:supp...@telium.io> > wrote:

Could some calls be arriving with a different codec?  (Is transcoding causing 
the spikes)?  Are you limiting codecs to match your audio files?

 

From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com 
<mailto:asterisk-users-boun...@lists.digium.com> ] On Behalf Of Dovid Bender
Sent: Wednesday, April 22, 2020 2:01 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
mailto:asterisk-users@lists.digium.com> >
Subject: [asterisk-users] Troubleshooting load issues

 

Hi,

 

I have an Asterisk box which has an IVR that plays random gsm files. The box 
has SSD's and two CPU E5-2695 v2 cpus with 64GB ram. The Asterisk CPU usage 
along with the load seems to jump around. With about 500 callers it hovers 
between 250-400% CPU (so 2.5 to 4 cores) which seems reasonable. Every so often 
the load average spikes. The idle never drops below 85%. When the load average 
spikes I see a lot of kworker threads and the CPU usage tends to (not not 
always) go up as well. How would I go about seeing what in Asterisk is causing 
the spike? The box is locked down and only takes calls from an OpenSiPS box. 
There is nothing else running on the box.

 

TIA.

 

Dovid

 

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Troubleshooting load issues

2020-04-22 Thread Doug Lytle
>>> All the calls are using ulaw. The files that I am playing are gsm. I 
>>> suppose doing a file convert with sox to .ulaw may help but it should be 
>>> able to do 500 calls without an issue. Can it possibly be a bug? if not how 
>>> do >>> I profile which call(s) can be causing the spike? 

One of the things that come to mind is that the operating system is flushing 
your SSDs at the time of the spike.  You could always use iotop to watch what 
the file system is doing at the time of the spike.

Doug

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Troubleshooting load issues

2020-04-22 Thread Dovid Bender
All the calls are using ulaw. The files that I am playing are gsm. I
suppose doing a file convert with sox to .ulaw may help but it should be
able to do 500 calls without an issue. Can it possibly be a bug? if not how
do I profile which call(s) can be causing the spike?


On Wed, Apr 22, 2020 at 2:21 PM Telium Technical Support 
wrote:

> Could some calls be arriving with a different codec?  (Is transcoding
> causing the spikes)?  Are you limiting codecs to match your audio files?
>
>
>
> *From:* asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] *On
> Behalf Of *Dovid Bender
> *Sent:* Wednesday, April 22, 2020 2:01 PM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>
> *Subject:* [asterisk-users] Troubleshooting load issues
>
>
>
> Hi,
>
>
>
> I have an Asterisk box which has an IVR that plays random gsm files. The
> box has SSD's and two CPU E5-2695 v2 cpus with 64GB ram. The Asterisk CPU
> usage along with the load seems to jump around. With about 500 callers it
> hovers between 250-400% CPU (so 2.5 to 4 cores) which seems reasonable.
> Every so often the load average spikes. The idle never drops below 85%.
> When the load average spikes I see a lot of kworker threads and the CPU
> usage tends to (not not always) go up as well. How would I go about seeing
> what in Asterisk is causing the spike? The box is locked down and only
> takes calls from an OpenSiPS box. There is nothing else running on the box.
>
>
>
> TIA.
>
>
>
> Dovid
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] Troubleshooting load issues

2020-04-22 Thread Telium Technical Support
Could some calls be arriving with a different codec?  (Is transcoding causing 
the spikes)?  Are you limiting codecs to match your audio files?

 

From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf 
Of Dovid Bender
Sent: Wednesday, April 22, 2020 2:01 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: [asterisk-users] Troubleshooting load issues

 

Hi,

 

I have an Asterisk box which has an IVR that plays random gsm files. The box 
has SSD's and two CPU E5-2695 v2 cpus with 64GB ram. The Asterisk CPU usage 
along with the load seems to jump around. With about 500 callers it hovers 
between 250-400% CPU (so 2.5 to 4 cores) which seems reasonable. Every so often 
the load average spikes. The idle never drops below 85%. When the load average 
spikes I see a lot of kworker threads and the CPU usage tends to (not not 
always) go up as well. How would I go about seeing what in Asterisk is causing 
the spike? The box is locked down and only takes calls from an OpenSiPS box. 
There is nothing else running on the box.

 

TIA.

 

Dovid

 

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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