[asterisk-bugs] [DAHDI-linux 0018142]: [patch] The TE122 and dadi produces an unusual high load

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 20 23:31:36 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18142 
====================================================================== 
Reported By:                foxfire
Assigned To:                sruffell
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   18142
Category:                   wcte12xp
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
JIRA:                        
Reviewboard Link:            
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-10-14 08:33 CDT
Last Modified:              2011-01-20 23:31 CST
====================================================================== 
Summary:                    [patch] The TE122 and dadi produces an unusual high
load
Description: 
When starting dahdi_linux and there is a TE122 installed in the machine in
a few seconds the load raizes from 0.00 to over 0.50 .
This happens always, i have no problem with any other digium card only the
TE122.
I stopped all services and only started dahdi.
Disabling the mg2 echocancler does not help.
I consider this major because call quality is affected due to the load
increasing to values.

====================================================================== 

---------------------------------------------------------------------- 
 (0130845) svnbot (reporter) - 2011-01-20 23:31
 https://issues.asterisk.org/view.php?id=18142#c130845 
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 9683

U   linux/branches/2.4/drivers/dahdi/wcte12xp/base.c
U   linux/branches/2.4/include/dahdi/kernel.h

------------------------------------------------------------------------
r9683 | sruffell | 2011-01-20 23:31:36 -0600 (Thu, 20 Jan 2011) | 50 lines

wcte12xp: Use interruptible waits to decrease impact on load average.

The wcte12xp does all the checking for alarm in a user space workqueue.
Most of this time is spent sleeping waiting for reads from the framer to
complete.  Tasks in uninterruptible sleeps are added to running tasks
for the purposes of calculating load average. This change makes the
sleeps interruptible so as to not affect the load average as much.

For example, the following command will load and configure the driver and
then print the load average every 10 seconds.

]# modprobe wcte12xp && dahdi_cfg && ((x=12)); while [[ $x -gt 0 ]]; do
cat
/proc/loadavg; sleep 10; let x=$x-1; done

With this change:
0.29 0.10 0.02 1/101 29945
0.24 0.10 0.02 1/101 29967
0.20 0.09 0.02 1/101 30019
0.17 0.09 0.02 1/101 30041
0.15 0.09 0.02 1/101 30062
0.12 0.08 0.02 1/101 30085
0.10 0.08 0.02 1/101 30107
0.09 0.08 0.02 1/101 30129
0.07 0.08 0.02 1/101 30151
0.14 0.09 0.02 1/101 30173
0.12 0.09 0.02 1/101 30195
0.10 0.08 0.02 1/101 30217
(and I've seen it get down to 0.0)

Before this change:
0.57 0.22 0.07 1/101 31920
0.48 0.21 0.07 1/101 31942
0.48 0.22 0.07 1/101 31964
0.48 0.23 0.08 1/101 31986
0.41 0.22 0.07 1/101 32008
0.42 0.23 0.08 1/101 32030
0.43 0.24 0.08 1/101 32054
0.45 0.25 0.09 1/101 32076
0.45 0.25 0.09 1/101 32098
0.46 0.26 0.10 1/101 32120
0.47 0.27 0.10 1/101 32172
0.39 0.26 0.10 1/101 32194

(closes issue https://issues.asterisk.org/view.php?id=18142)
Reported by: foxfire
Tested by: foxfire

Signed-off-by: Shaun Ruffell <sruffell at digium.com>

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9512
------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=9683 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-20 23:31 svnbot         Checkin                                      
2011-01-20 23:31 svnbot         Note Added: 0130845                          
======================================================================




More information about the asterisk-bugs mailing list