[Asterisk-Users] ztdummy inaccuracy on linux-2.6

Tamas jalsot at gmail.com
Mon Jan 16 13:51:48 MST 2006


Steven Ringwald wrote:
> On Mon, 2006-01-16 at 17:43 +0100, Tamas wrote:
>> Hello,
>>
>> I have some ugly numbers given by zttest for ztdummy on an AMD64 box
>> running linux-2.6.15 compiled for Athlon64.
>>
>> linux-2.6.15, zaptel/branches/1.2 r900, jiffies
>> ./zttest
>> Opened pseudo zap interface, measuring accuracy...
> [snip]
> 
>> --- Results after 136 passes ---
>> Best: 99.987793 -- Worst: 99.975586 -- Average: 99.975853
>>
>> linux-2.6.15, zaptel/branches/1.2 r900, RTC
>> Opened pseudo zap interface, measuring accuracy...
> 
>> [snip]
> 
>> --- Results after 96 passes ---
>> Best: 99.963379 -- Worst: 99.938965 -- Average: 99.952942
>>
>>  linux-2.6.15, zaptel/branches/1.2 r900+patch
>> bugs.digium.com/view.php?id=5971, RTC
>>
>> Opened pseudo zap interface, measuring accuracy...
> [snip]
>> --- Results after 136 passes ---
>> Best: 100.000000 -- Worst: 99.694824 -- Average: 99.951973
>>
>> HW:
>> Tyan Tomcat K8E, Athlon64 3000+, 1GB RAM, 3ware 8006, 2x Maxtor HDD
>>
>> SW:
>> Ubuntu 5.10, linux-2.6.15, zaptel from 1.2 branch
>>
>> Any idea what can be wrong?
> 
> What does your /proc/interrupts say? On my asterisk box, I was seeing
> crappy interrupt handling like this only when I was using XT-PIC
> interrupt handling, when I moved to IO-APIC, things got much better... 
> 
> Steve
> 

cat /proc/interrupts
           CPU0
  0:    6645053    IO-APIC-edge  timer
  1:          8    IO-APIC-edge  i8042
  2:          0          XT-PIC  cascade
  5:       3309   IO-APIC-level  eth1
  7:     679362   IO-APIC-level  eth0
  8:    8338011    IO-APIC-edge  rtc
 10:        204   IO-APIC-level  eth2, HFC PCI
 11:      20559   IO-APIC-level  3w-xxxx
NMI:        404
LOC:    6644437
ERR:          0
MIS:          0

eth2 is not use currently. This box is in preparation for production. I
don't know how can the HFC PCI card (Billion 1xBRI) get the same IRQ as
eth2 [onboard Broadcom NIC]. Probably because it's on different bus:
0000:04:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721
Gigabit Ethernet PCI Express (rev 11)
        Subsystem: Broadcom Corporation NetXtreme BCM5721 Gigabit
Ethernet PCI Express
        Flags: bus master, fast devsel, latency 0, IRQ 10
        Memory at fe5f0000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [48] Power Management version 2
        Capabilities: [50] Vital Product Data
        Capabilities: [58] Message Signalled Interrupts: 64bit+
Queue=0/3 Enable-
        Capabilities: [d0] #10 [0001]

0000:01:08.0 Network controller: Cologne Chip Designs GmbH ISDN network
controller [HFC-PCI] (rev 02)
        Subsystem: Cologne Chip Designs GmbH ISDN Board
        Flags: bus master, medium devsel, latency 16, IRQ 10
        I/O ports at d000 [disabled] [size=8]
        Memory at fdffc000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [40] Power Management version 1

Anything else to take a look for?

Thanks!

Regards,
	Tamas





More information about the asterisk-users mailing list