OpenBSD's bge driver sucks big time, typical symptoms are very slow transfers, and incrementing errors (netstat -i).
You can confirm this by booting $other_os_boot_cd and retesting.

/Pete


On 6 Feb 2008, at 6:33 PM, Mark Parsons wrote:

Greetings,

It appears that I am having some major slowness issues on a HP
Proliant DL380G4 after a fresh install of OpenBSD 4.2 i386 single
processor kernel

When running a iperf (http://dast.nlanr.net/Projects/Iperf/) test to a
Linux host on the same physical subnet on the same physical switch we
are seeing around 4Mb/sec on a Gigabit broadcom card. After changing
the net.inet.tcp.sendspace and net.inet.tcp.sendspace to 262144 and
running iperf again we see the speeds jump up to around 72Mb/sec which
still seems slow since linux hosts on the same subnet are getting
around 757Mb/sec on similar cards and hardware.  I checked and my
net.inet.ip.ifq.maxlen is set to 256

Should I be running a different test then iperf?
Any thoughts on why I am seeing such low numbers for a Gigabit card?
Any suggestions for system changes I should make?
Any help is very much appreciated.

The outputs of the iperf tests and dmesg are below.

# /root/iperf-2.0.2/src/iperf -c 192.168.129.86 -d
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 16.0 KByte (default)
Client connecting to 192.168.129.86, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 6] local 192.168.129.86 port 35490 connected with 156.40.133.188 port 5001 [ 7] local 192.168.129.86 port 5001 connected with 156.40.133.188 port 52430
[  6]  0.0-10.0 sec  5.12 MBytes  4.29 Mbits/sec
[  7]  0.0-10.1 sec  5.54 MBytes  4.61 Mbits/sec
# sysctl -w net.inet.tcp.sendspace=262144
net.inet.tcp.sendspace: 16384 -> 262144
# sysctl -w net.inet.tcp.recvspace=262144
net.inet.tcp.recvspace: 16384 -> 262144
# /root/iperf-2.0.2/src/iperf -c 192.168.129.86 -d
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:   256 KByte (default)
Client connecting to 192.168.129.86, TCP port 5001
TCP window size:   256 KByte (default)
------------------------------------------------------------
[ 6] local 192.168.129.86 port 45594 connected with 156.40.133.188 port 5001 [ 7] local 192.168.129.86 port 5001 connected with 156.40.133.188 port 50890
[  6]  0.0-10.0 sec  86.0 MBytes  72.0 Mbits/sec
[  7]  0.0-10.0 sec  85.0 MBytes  71.1 Mbits/sec


Dmesg: OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Xeon(TM) CPU 3.60GHz ("GenuineIntel" 686-class) 3.61 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE3 6,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS- CPL,EST,TM2,CNXT-ID,CX16,xTPR
real mem  = 3757613056 (3583MB)
avail mem = 3650039808 (3480MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @
0xf0000, SMBIOS rev. 2.3 @ 0xec000 (58 entries)
bios0: vendor HP version "P51" date 08/26/2004
bios0: HP ProLiant DL380 G4
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x2000
pcibios0: PCI BIOS has 7 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801EB/ER LPC" rev 0x00)
pcibios0: PCI bus #10 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x4000! 0xee000/0x2000!
acpi at mainbus0 not configured
cpu0 at mainbus0
cpu0: Enhanced SpeedStep disabled by BIOS
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel E7520 MCH" rev 0x0a
ppb0 at pci0 dev 2 function 0 "Intel MCH PCIE" rev 0x0a
pci1 at ppb0 bus 2
ppb1 at pci1 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
pci2 at ppb1 bus 3
bge0 at pci2 dev 1 function 0 "Broadcom BCM5704C" rev 0x10, BCM5704 B0
(0x2100): irq 5, address 00:0f:20:f7:52:f1
brgphy0 at bge0 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
bge1 at pci2 dev 1 function 1 "Broadcom BCM5704C" rev 0x10, BCM5704 B0
(0x2100): irq 5, address 00:0f:20:f7:52:f0
brgphy1 at bge1 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
ppb2 at pci1 dev 0 function 2 "Intel PCIE-PCIE" rev 0x09
pci3 at ppb2 bus 4
ciss0 at pci3 dev 3 function 0 "Compaq Smart Array 64xx" rev 0x01: irq 5
ciss0: 1 LD, HW rev 1, FW 2.26/2.26
scsibus0 at ciss0: 1 targets
sd0 at scsibus0 targ 0 lun 0: <HP, LOGICAL VOLUME, 2.26> SCSI0 0/ direct fixed sd0: 173639MB, 22135 cyl, 255 head, 63 sec, 512 bytes/sec, 355612800 sec total
ppb3 at pci0 dev 6 function 0 "Intel MCH PCIE" rev 0x0a
pci4 at ppb3 bus 5
ppb4 at pci4 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
pci5 at ppb4 bus 6
ppb5 at pci4 dev 0 function 2 "Intel PCIE-PCIE" rev 0x09
pci6 at ppb5 bus 10
uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: irq 5
uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: irq 5
uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: irq 5
uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: irq 5
ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB2" rev 0x02: irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: Intel EHCI root hub, rev 2.00/1.00, addr 1
ppb6 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xc2
pci7 at ppb6 bus 1
vga1 at pci7 dev 3 function 0 "ATI Rage XL" rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Compaq iLO" rev 0x01 at pci7 dev 4 function 0 not configured
"Compaq iLO" rev 0x01 at pci7 dev 4 function 2 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02:
24-bit timer at 3579545Hz
pciide0 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02:
DMA, channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TEAC, DV-28E-C, B.4F> SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1
pciide0: channel 1 disabled (no drives)
usb1 at uhci0: USB revision 1.0
uhub1 at usb1: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4: Intel UHCI root hub, rev 1.00/1.00, addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask efe5 netmask efe5 ttymask ffe7
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a swap on sd0b dump on sd0b



Thanks,
Mark

Reply via email to