Subject: Re: de(4) and transmit underflow
To: None <port-i386@NetBSD.ORG>
From: Chuck <nospam@best.com>
List: port-i386
Date: 04/21/1998 14:42:50
Matthias Scheler writes:
>Al Urbaitis <aurbaiti@servecom.picker.com> writes:
>>I am not to familiar with the vagaries of interupt sharing ... would
>>someone shed some light :-)
>It's very simple: do NOT use it.

Sometimes you have to share interrupts.  This system has an IDE disk
and four quad-port ethernet cards.

Below is `dmesg` from the system which is having problems and 
producing this error message:
  Apr 21 14:21:34 smdls4 /netbsd: de0: abnormal interrupt: transmit underflow
  (raising TX threshold to 96|256)

It has the following things on each IRQ:
   1: pc0
   3: com1
   4: com0
   5: com2 isapnp0
   6: fdc0
   7: sb0
   9: de1 de4 de10 de15 de18
  10: de0 de3 de6 de7 de8 de9 de13 de14 de16 de17 wss0
  11: de2 de5 de11 de12 de19
  12: pms0
  14: wdc0
  15: wdc1

The "transmit underflow" error happens only on de0.  I do not know why
so many devices are put on irq10 instead of being spread more evenly.

The config file used is basically GENERIC except I have commented out the
unused devices, added pms0, changed maxusers to 64, and added these lines:
  options               MCLSHIFT=11
  options               NMBCLUSTERS=768         # Default is 256 (512 w/GATEWAY)
  options               MSGBUFSIZE=16384        # Default is 4096

Is there anything else I might want to try to stop the "transmit underflow"
error, or anything else that might improve the system performance?

Thanks...
-- Chuck   ( ckane <at> best <dot> com )






Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3.1 (smdls) #4: Tue Apr 21 14:03:26 PDT 1998
    root@smdls3:/usr/src/sys/arch/i386/compile/smdls
cpu0: family 6 model 1 step 9
cpu0: Intel Pentium Pro (686-class)
real mem  = 67756032
avail mem = 64364544
using 852 buffers containing 3489792 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82441FX PCI and Memory Controller (PMC) (rev. 0x02)
pcib0 at pci0 dev 1 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
Intel 82371SB IDE Interface (PIIX3) (IDE mass storage, interface 0x80) at pci0 dev 1 function 1 not configured
Intel 82371SB USB Host Controller (PIIX3) (USB serial bus, revision 0x01) at pci0 dev 1 function 2 not configured
ppb0 at pci0 dev 2 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x01)
pci1 at ppb0 bus 1
ppb1 at pci1 dev 1 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x02)
Apr 21 14:12:39 smdls4 last message repeated 6 times
de0 at pci2 dev 4 function 0
de0: interrupting at irq 10
de0: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de0: address 00:c0:95:e0:1d:90
de1 at pci2 dev 5 function 0
de1: interrupting at irq 9
de1: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de1: address 00:c0:95:e0:1d:91
de2 at pci2 dev 6 function 0
de2: interrupting at irq 11
de2: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de2: address 00:c0:95:e0:1d:92
de3 at pci2 dev 7 function 0
de3: interrupting at irq 10
de3: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de3: address 00:c0:95:e0:1d:93
ppb2 at pci1 dev 2 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x02)
pci3 at ppb2 bus 3
de4 at pci3 dev 4 function 0
de4: interrupting at irq 9
de4: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de4: address 00:c0:95:e0:1d:ac
de5 at pci3 dev 5 function 0
de5: interrupting at irq 11
de5: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de5: address 00:c0:95:e0:1d:ad
de6 at pci3 dev 6 function 0
de6: interrupting at irq 10
de6: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de6: address 00:c0:95:e0:1d:ae
de7 at pci3 dev 7 function 0
de7: interrupting at irq 10
de7: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de7: address 00:c0:95:e0:1d:af
ppb3 at pci1 dev 4 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x02)
pci4 at ppb3 bus 4
de8 at pci4 dev 4 function 0
de8: interrupting at irq 10
de8: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de8: address 00:c0:95:e0:1e:30
de9 at pci4 dev 5 function 0
de9: interrupting at irq 10
de9: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de9: address 00:c0:95:e0:1e:31
de10 at pci4 dev 6 function 0
de10: interrupting at irq 9
de10: address 00:c0:95:e0:1e:32
de11 at pci4 dev 7 function 0
de11: interrupting at irq 11
de11: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de11: address 00:c0:95:e0:1e:33
ppb4 at pci0 dev 15 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x02)
pci5 at ppb4 bus 5
de12 at pci5 dev 4 function 0
de12: interrupting at irq 11
de12: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de12: address 00:c0:95:e0:23:f4
de13 at pci5 dev 5 function 0
de13: interrupting at irq 10
de13: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de13: address 00:c0:95:e0:23:f5
de14 at pci5 dev 6 function 0
de14: interrupting at irq 10
de14: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de14: address 00:c0:95:e0:23:f6
de15 at pci5 dev 7 function 0
de15: interrupting at irq 9
de15: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de15: address 00:c0:95:e0:23:f7
ppb5 at pci0 dev 16 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x02)
pci6 at ppb5 bus 6
de16 at pci6 dev 4 function 0
de16: interrupting at irq 10
de16: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de16: address 00:c0:95:e0:23:b8
de17 at pci6 dev 5 function 0
de17: interrupting at irq 10
de17: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de17: address 00:c0:95:e0:23:b9
de18 at pci6 dev 6 function 0
de18: interrupting at irq 9
de18: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de18: address 00:c0:95:e0:23:ba
de19 at pci6 dev 7 function 0
de19: interrupting at irq 11
de19: ZNYX ZX34X 21140A [10-100Mb/s] pass 2.2
de19: address 00:c0:95:e0:23:bb
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
com2 at isa0 port 0x3e8-0x3ef irq 5: ns16550a, working fifo
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wd0 at wdc0 drive 0: <FUJITSU MPA3026ATU>
wd0: 2503MB, 5086 cyl, 16 head, 63 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, lba addressing
wdc1 at isa0 port 0x170-0x177 irq 15
atapibus1 at wdc1
cd0 at atapibus1 drive 0: <CD-ROM CDU511-F, , 1.0j> type 5 cdrom removable
sb0 at isa0 port 0x220-0x237 irq 7 drq 1: dsp v3.02
audio0 at sb0
wss0 at isa0 port 0x530-0x537 irq 10 drq 0 drq2 1wss0: wssfind failed
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pms0 at pc0 irq 12
spkr0 at pc0 port 0x61
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0 at isa0 port 0x279: read port 0x203
isapnp0: <IBM Audio Feature, CSC0000, , WSS/SB> port 0x120/4,0x388/4,0x240/16 irq 5 drq 0,0 not configured
isapnp0: <IBM Audio Feature, CSC000F, , UNUSED> not configured
isapnp0: <IBM Audio Feature, CSC0010, , CTRL> port 0x110/8 not configured
biomask c040 netmask ce40 ttymask de42
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
de1: enabling 100baseTX port
de9: enabling 100baseTX port
de10: enabling 100baseTX port
de12: enabling 100baseTX port
de19: autosense failed: cable problem?
de18: autosense failed: cable problem?
de17: autosense failed: cable problem?
de16: autosense failed: cable problem?
de15: autosense failed: cable problem?
de14: autosense failed: cable problem?
de13: autosense failed: cable problem?
de11: autosense failed: cable problem?
de8: autosense failed: cable problem?
de7: autosense failed: cable problem?
de5: autosense failed: cable problem?
de3: autosense failed: cable problem?
de2: autosense failed: cable problem?
de0: autosense failed: cable problem?
AFS 3.3 ($Revision: 1.52 $) initialized
Starting AFS cache scan...found 0 non-empty cache files (0%).