[asterisk-bugs] [DAHDI-tools 0018573]: dahdi_test accurately reports nonsense

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jan 4 16:57:21 UTC 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18573 
====================================================================== 
Reported By:                smurfix
Assigned To:                
====================================================================== 
Project:                    DAHDI-tools
Issue ID:                   18573
Category:                   Utilities
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
JIRA:                        
Reviewboard Link:            
====================================================================== 
Date Submitted:             2011-01-04 06:22 CST
Last Modified:              2011-01-04 10:57 CST
====================================================================== 
Summary:                    dahdi_test accurately reports nonsense
Description: 
dahdi_test reports -200% or 400% accuracy.

That's clearly stupid.

Also, the percentage printed in verbose mode clearly doesn't match the one
printed in terse mode.

SVN trunk as of last week.
====================================================================== 

---------------------------------------------------------------------- 
 (0130131) sruffell (administrator) - 2011-01-04 10:57
 https://issues.asterisk.org/view.php?id=18573#c130131 
---------------------------------------------------------------------- 
Something is wrong on your system:

With a default build today:

[root at foxtrot dahdi-linux]# /etc/init.d/dahdi stop
Unloading DAHDI hardware modules: done
[root at foxtrot dahdi-linux]# modprobe dahdi
[root at foxtrot dahdi-linux]# cat /sys/module/dahdi/version 
SVN-trunk-r9614
[root at foxtrot dahdi-linux]# dahdi_test& sleep 6; killall dahdi_test
[1] 9841
Opened pseudo dahdi interface, measuring accuracy...
100.000% 99.996% 99.999% 99.999% 99.999% [1]+  Terminated             
dahdi_test
[root at foxtrot dahdi-linux]# dahdi_test -v & sleep 6; killall dahdi_test
[1] 9870
Opened pseudo dahdi interface, measuring accuracy...

8192 samples in 8191.967 system clock sample intervals (100.000%)
8192 samples in 8191.648 system clock sample intervals (99.996%)
8192 samples in 8191.888 system clock sample intervals (99.999%)
8192 samples in 8191.913 system clock sample intervals (99.999%)
8192 samples in 8191.888 system clock sample intervals (99.999%)[1]+ 
Terminated              dahdi_test -v
[root at foxtrot dahdi-linux]# 


If I increase the chunksize from 8 to 40 the accuracy of any specific
period goes down, but with the -v option you can see that over time it's
balanced around where it should be.

[root at foxtrot dahdi-linux]# /etc/init.d/dahdi stop
Unloading DAHDI hardware modules: done
[root at foxtrot dahdi-linux]# modprobe dahdi
[root at foxtrot dahdi-linux]# cat /sys/module/dahdi/version 
SVN-trunk-r9614M
[root at foxtrot dahdi-linux]# dahdi_test& sleep 6; killall dahdi_test
[1] 10804
Opened pseudo dahdi interface, measuring accuracy...
99.903% 99.606% 99.904% 99.903% 99.903% [1]+  Terminated             
dahdi_test
[root at foxtrot dahdi-linux]# dahdi_test -v& sleep 6; killall dahdi_test
[1] 10833
Opened pseudo dahdi interface, measuring accuracy...

8192 samples in 8199.977 system clock sample intervals (100.097%)
8192 samples in 8159.704 system clock sample intervals (99.606%)
8192 samples in 8199.896 system clock sample intervals (100.096%)
8192 samples in 8199.904 system clock sample intervals (100.096%)
8192 samples in 8199.896 system clock sample intervals (100.096%)[1]+ 
Terminated              dahdi_test -v
[root at foxtrot dahdi-linux]# 


Are you running dynamic spans or something?  What is the output of
dahdi_scan? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-04 10:57 sruffell       Note Added: 0130131                          
======================================================================




More information about the asterisk-bugs mailing list