Subject: kern/16790: via-rhine fd/hd slow transfer rate problem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <stock.alexander@gmx.de>
List: netbsd-bugs
Date: 05/13/2002 13:36:32
>Number:         16790
>Category:       kern
>Synopsis:       via-rhine fd/hd slow transfer rate problem
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 13 13:37:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Stock
>Release:        NetBSD 1.5.2
>Organization:
>Environment:
NetBSD zensox 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
Hello,

First my network:
Client - NetBSD/i386 with a 100mbit D-LINK DFE-530TX nic ( 100baseTX full-duplex enabled; autonegotation disabled )
Server - Linux/i386 with a 100mbit D-LINK DFE-530TX nic ( full-duplex enabled; autonegotation enabled but tried it with disabled too )
Both connected through a 100mbit switch ( level one 8port 10/100mbps; full-duplex supported )

If I try to get a file through ftp from the server, I get only ~100kb/s throughput. ifconfig.vr0 contains: media 100baseTX mediaopt full-duplex ). netstat shows no collisions too. Now, if I type:
( ifconfig vr0 media 100baseTX ( now collisions ) ; ifconfig vr0 media 100baseTX mediaopt full-duplex ) I get something like 11mbyte/s through the line and no collisions. If I reboot now I get the same strange thing, but if I boot windows2000 on the client machine there is always a good throughput ( ~11mbytes/s ). I hope somebody can help me.

Now the dmesg output:

NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001
    he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (Katmai) (686-class), 551.27 MHz
total memory = 383 MB
avail memory = 349 MB
using 4936 buffers containing 19744 KB of memory
BIOS32 rev. 0 found at 0xfb4f0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Nvidia Corporation GeForce 256 (rev. 0x10)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALLP KA18.2>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 17624 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 36094464 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 1: <CD-ROM CDU611, , 2.0a> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
pciide1 at pci0 dev 13 function 0: Promise Ultra100/ATA Bus Master IDE Accelerator (rev. 0x02)
pciide1: bus-master DMA support present
pciide1: primary channel configured to native-PCI mode
pciide1: using irq 10 for native-PCI interrupt
pciide1: disabling primary channel (no drives)
pciide1: secondary channel configured to native-PCI mode
pciide1: disabling secondary channel (no drives)
vr0 at pci0 dev 15 function 0: VIA VT6102 (Rhine II) 10/100 Ethernet
vr0: interrupting at irq 10
vr0: Ethernet address: 00:50:ba:1b:34:01
ukphy0 at vr0 phy 8: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0005be, model 0x0008, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
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
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: read port 0x203
sb1 at isapnp0 port 0x220/16,0x388/4,0x530/16 irq 5 drq 1,3
sb1: HIGHSCREEN SOUND-BOOSTAR 16 3D : dsp v3.02
audio0 at sb1: half duplex, mmap, independent
mpu at sb1 not configured
opl0 at sb1: model OPL3
midi1 at opl0: SB Yamaha OPL3
isapnp0: <HIGHSCREEN SOUND-BOOSTAR 16 3D, ADS7181, PNPB006, > port 0x330/2 irq 9 not configured
joy0 at isapnp0 port 0x200/8
joy0: HIGHSCREEN SOUND-BOOSTAR 16 3D
joy0: joystick not connected
isapnp0: <HIGHSCREEN SOUND-BOOSTAR 16 3D, TER2211, , > port 0x590/8 not configured
biomask ef45 netmask ef45 ttymask ffc7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0

Thanks
>How-To-Repeat:
If I reboot I get always the same problem.
>Fix:
First turn off full-duplex and then set it to full-duplex again to get full throughput.
>Release-Note:
>Audit-Trail:
>Unformatted: