[asterisk-bugs] [Asterisk 0018533]: Asterisk consumes 100% of CPU on Mac OS X
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Dec 28 18:49:39 UTC 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18533
======================================================================
Reported By: ssokol
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18533
Category: Core/Portability
Reproducibility: always
Severity: major
Priority: normal
Status: new
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.8
SVN Revision (number only!): 294125
Request Review:
======================================================================
Date Submitted: 2010-12-26 11:12 CST
Last Modified: 2010-12-28 12:49 CST
======================================================================
Summary: Asterisk consumes 100% of CPU on Mac OS X
Description:
I've run Asterisk 1.8.0 and 1.8.1 on several Macs (all running Mac OS X
10.6.5) and in every case it sucks up 100.x% of available CPU. (Note that
in call cases the system has at least 2 cores, so this is possible). I've
run a profile (or what the Mac calls a "sample") and it shows a lot of
this:
2169 Thread_29623
2169 thread_start
2169 _pthread_start
2169 dummy_start
2169 do_devstate_changes
2169 _pthread_cond_wait
2169 __semwait_signal
2169 Thread_29624
2169 thread_start
2169 _pthread_start
2169 dummy_start
2169 tps_processing_function
2169 _pthread_cond_wait
2169 __semwait_signal
2169 Thread_29625
2169 thread_start
2169 _pthread_start
2169 dummy_start
2169 do_parking_thread
2169 ast_internal_poll
2169 select$DARWIN_EXTSN
I'll attach the complete sample file. Please let me know what else you
need to help figure this out.
======================================================================
----------------------------------------------------------------------
(0130008) ssokol (reporter) - 2010-12-28 12:49
https://issues.asterisk.org/view.php?id=18533#c130008
----------------------------------------------------------------------
The culprit seems to be pbx_spool.so. I started Asterisk without any
modules and loaded in key suspects one at a time until the CPU load jumped
to 100%. Loading pbx_spool.so did it.
So to confirm that it is the only issue, I restarted with a noload
statement for spool but everything else as normal. The CPU load was a
constant 0.6%. I tried again with both pbx_spool.so and chan_iax2.so
noloaded and the CPU load dropped to 0% at idle.
Issue History
Date Modified Username Field Change
======================================================================
2010-12-28 12:49 ssokol Note Added: 0130008
======================================================================
More information about the asterisk-bugs
mailing list