Subject: extremely slow ethernet performance
To: None <current-users@netbsd.org>
From: Sean Davis <dive-nb@endersgame.net>
List: current-users
Date: 09/02/2001 12:03:12
I've got a laptop running NetBSD/i386 -current (as of 20010820), and I'm
getting some seriously lagged network performance on it.
It's hardware configuration is:

K6/266mhz CPU, 32MB ram, 3.8GB disk, with a Linksys PCMPC100 Fast Ethernet
PCMCIA NIC.

According to my switch, the card is synced at 100BaseTX Full-Duplex, and I
will see burst speeds sometimes at a few megabytes/sec like I *should* with
100mbit/fdx, but most of the time (say if I'm transferring a large file), I
get speeds averaging around 14 KB/s.

Any ideas as to what's wrong?

Any help would be seriously appreciated, as this is quite a PITA when trying
to update the system via files on eros, the main server on my LAN (networked
via a thunderlan card, and I get great speed from eros to the other machines
with 100tx adapters on my LAN, so I am sure the problem lies somewhere in
the laptop's configuration.)


dmesg output, and kernel config file follow.

NetBSD 1.5X (PHILOTE) #15: Mon Aug 20 10:25:22 EDT 2001
    dive@eros.endersgame.net:/usr/src/sys/arch/i386/compile/PHILOTE
cpu0: AMD K6 (586-class), 267.29 MHz
cpu0: I-cache 32 KB 32b/line 2-way, D-cache 32 KB 32b/line 2-way
cpu0: features 8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8001bf<MMX>
total memory = 32380 KB
avail memory = 28800 KB
using 430 buffers containing 1720 KB of memory
BIOS32 rev. 0 found at 0xfd780
PCI BIOS rev. 2.1 found at 0xfdb36
pcibios: config mechanism [1][x], special cycles [x][x], last bus 0
PCI IRQ Routing Table rev. 1.0 found at 0xfdf80, size 80 bytes (3 entries)
PCI Interrupt Router at 000:01:0 (vendor 0x1045 product 0xc700)
PCI Exclusive IRQs: 11
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:10:0 0x104c 0xac15   A  0x02  11  2    fixed up
000:10:1 0x104c 0xac15   B  0x12  10  1    fixed up
000:18:0 0x10c8 0x0004   A  0x22  11  0    already assigned
------------------------------------------
PCI fixup examining 1045:c701
PCI fixup examining 1045:c700
PCI fixup examining 104c:ac15
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 104c:ac15
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 10c8:04
PCI fixup examining 1045:d568
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1045 0xc701 
		[OK]
000:01:0 0x1045 0xc700 
		[OK]
000:10:0 0x104c 0xac15 
	10h mem  0x00000000 0x00001000
		[NG]
000:10:1 0x104c 0xac15 
	10h mem  0x00000000 0x00001000
		[NG]
000:18:0 0x10c8 0x0004 
	10h mem  0xfd000000 0x01000000
	14h mem  0xfea00000 0x00200000
	18h mem  0xfed00000 0x00100000
		[OK]
000:20:0 0x1045 0xd568 
	20h port 0x0000fcf0 0x00000010
		[OK]
--------------------------[  2 devices bogus]
 Physical memory end: 0x01ffe000
 PCI memory mapped I/O space start: 0x02000000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1045 0xc701 
		[OK]
000:01:0 0x1045 0xc700 
		[OK]
000:10:0 0x104c 0xac15 
	10h mem  0x02000000 0x00001000
		[OK]
000:10:1 0x104c 0xac15 
	10h mem  0x02001000 0x00001000
		[OK]
000:18:0 0x10c8 0x0004 
	10h mem  0xfd000000 0x01000000
	14h mem  0xfea00000 0x00200000
	18h mem  0xfed00000 0x00100000
		[OK]
000:20:0 0x1045 0xd568 
	20h port 0x0000fcf0 0x00000010
		[OK]
--------------------------[  0 devices bogus]
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: vendor 0x1045 product 0xc701 (rev. 0x32)
pcib0 at pci0 dev 1 function 0
pcib0: vendor 0x1045 product 0xc700 (rev. 0x31)
cbb0 at pci0 dev 10 function 0: vendor 0x104c product 0xac15 (rev. 0x01)
cbb1 at pci0 dev 10 function 1: vendor 0x104c product 0xac15 (rev. 0x01)
vga0 at pci0 dev 18 function 0: vendor 0x10c8 product 0x0004 (rev. 0x01)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
pciide0 at pci0 dev 20 function 0: OPTi 82d568 (82c621 compatible) PCI IDE controller (rev. 0x30)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK227A-41>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 3909 MB, 7944 cyl, 16 head, 63 sec, 512 bytes/sect x 8007552 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-1802B, , 1415> 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:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
isa0 at pcib0
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
ess0 at isa0 port 0x220-0x22f irq 5 drq 1 drq2 5
ess0: ESS Technology ES1869 [version 0x688b]
ess0: audio1 interrupting at irq 5
audio0 at ess0: half duplex, mmap, independent
opl at ess0 not configured
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
cbb1: interrupting at irq 10
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia1 at cardslot1
biomask ffdd netmask ffdd ttymask ffdf
ne0 at pcmcia1 function 0
ne0: SVEC PN650TX 10/100 Dual Speed Fast Ethernet PC Card (DL10022) Ethernet
ne0: Ethernet address 00:e0:98:8d:39:fc
nsphyter0 at ne0 phy 4: DP83815 10/100 media interface, rev. 0
nsphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
boot device: wd0
root on wd0a dumps on wd0b

-- eros:/sys/arch/i386/conf/PHILOTE: --

# philote.endersgame.net kernel configuration
# $Id: PHILOTE,v 1.5 2001/08/20 13:26:08 dive Exp $

machine		i386

ident		"PHILOTE"

maxusers	32

options		I586_CPU
options		DUMMY_NOPS
options		EXEC_ELF32
options		EXEC_SCRIPT
options		EXEC_AOUT
options		RTC_OFFSET=0
options		NTP
options		COMPAT_15
options		COMPAT_43
options		PCIBIOS
options		PCIBIOSVERBOSE
options		PCIBIOS_ADDR_FIXUP
options		PCIBIOS_BUS_FIXUP
options		PCIBIOS_INTR_FIXUP
options		PCIBIOS_INTR_GUESS
options		SOFTDEP
options		NEW_PIPE
options		INET
options		PCDISPLAY_SOFTCURSOR
options		WSEMUL_VT100
options		WS_KERNEL_FG=WSCOL_GREEN
options		WSDISPLAY_COMPAT_PCVT
options		WSDISPLAY_COMPAT_SYSCONS
options		WSDISPLAY_COMPAT_USL
options		WSDISPLAY_COMPAT_RAWKBD

file-system	FFS

config		netbsd root on wd0a type ffs

mainbus0	at root
pci0		at mainbus0 bus 0
pchb0		at pci0 dev 0 function 0
pcib0		at pci0 dev 1 function 0
cbb*		at pci? dev ? function ?
vga0		at pci0 dev 18 function 0
wsdisplay0	at vga0 console ?
pciide0		at pci0 dev 20 function 0
wd0		at pciide0 channel 0 drive 0 flags 0x0000
atapibus0	at pciide0 channel 1
cd0		at atapibus0 drive 0 flags 0x0000
isa0		at pcib0
pckbc0		at isa0
pckbd0		at pckbc0
pcdisplay0	at isa0
wskbd0		at pckbd0 console ?
pcppi0		at isa0 port 0x61
sysbeep0	at pcppi0
npx0		at isa0 port 0xf0 irq 13
cardslot*	at cbb?
cardbus*	at cardslot?
pcmcia*		at cardslot?
ne*		at pcmcia? function ?
nsphyter*	at mii? phy ?
ess0		at isa0 port 0x220 irq 5 drq 1 drq2 5 
audio0		at ess0
pseudo-device	pty
pseudo-device	loop
pseudo-device	rnd
pseudo-device	wsmux	2