[asterisk-bugs] [Asterisk 0016158]: High CPU usage, choppy sound

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 10 17:37:04 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16158 
====================================================================== 
Reported By:                mustardman
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16158
Category:                   Channels/chan_sip/General
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.1.9 
JIRA:                       SWP-382 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-30 19:45 CDT
Last Modified:              2009-12-10 17:37 CST
====================================================================== 
Summary:                    High CPU usage, choppy sound
Description: 
After upgrading from Asterisk 1.6.1.6 to 1.6.1.8 I seem to have a random
problem with high CPU usage.  When making a SIP to SIP call or SIP to
System call Asterisk process CPU usage goes much higher than normal and the
sound get's choppy.  This is somewhat random but occurs fairly regularly,
maybe 50% of the time.

If it happens it happens as soon as a call is answered.  CPU usage
sometimes stays high for minutes and will suddenly go low even though I
didn't do anything.  More often than not it only stays high for a short
period of time and then goes back to normal.

I am running 64bit CentOS 5.4.  Log files and Asterisk CLI -vvvvvvvvvvr
look clean.  

Not sure if this is useful but I will attached a gdb.txt file taken while
it is happening
====================================================================== 

---------------------------------------------------------------------- 
 (0115123) lmadsen (administrator) - 2009-12-10 17:37
 https://issues.asterisk.org/view.php?id=16158#c115123 
---------------------------------------------------------------------- 
Hmmm, so I have CentOS 5.3, 64-bit, running 1.6.1.8, and a Zoiper softphone
attached. I didn't have anything going on for 41 minutes, and the first
thing that I did was place a call to Echo(), and didn't see any spike at
all.

I was running top in another window and watched it while I placed the
call, and there was no spike.

Unfortunately I'm not sure what else I can do to reproduce this at the
moment. Any suggestions?

[root at asttest1 asterisk]# uname -a
Linux asttest1 2.6.18-128.4.1.el5 https://issues.asterisk.org/view.php?id=1 SMP
Tue Aug 4 20:19:25 EDT 2009
x86_64 x86_64 x86_64 GNU/Linux

The one thing I noticed that you did differently was to run safe_asterisk
instead of what I did of running Asterisk in the foreground (asterisk
-cvvvvg).

I just noticed that you say you don't have DAHDI installed at all. I just
had DAHDI dummy module loaded while doing this test, so I'm going to unload
that module, and then restart Asterisk with 'service asterisk start' so it
uses the safe_asterisk script.

In another 30 minutes I'll try placing a call to Echo() again and see if I
get the spike inside of top. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-10 17:37 lmadsen        Note Added: 0115123                          
======================================================================




More information about the asterisk-bugs mailing list