[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fxp performanced different depending on direction



I've setup a 1.5Ghz Pentium 4 with OpenBSD 3.1 and started testing how much
data I can push through it using SmartBits.   Using a simple, 60 byte, UDP
packet which arrives in fxp0 and route to fxp1, I get 100% of the 100Mbps
Ethernet.  Using the same test in the fxp1 to fxp0 direction, I would expect
the same, but get horrible numbers.  Most packets get dropped.

The same test with 1500 byte packets gets line rate.  Even better, both
tests concurrently get line rate (e.g. a full duplex test.)

pfctl is on, but has only pass in all and pass out all.  Once the "base
line" of what I can do without firewall is established, I'll play with pf
rules.

Any thoughts as to why results might be different based on direction?

I've set sysctl.conf  net.inet.ip.maxqueue to 800, and NMBCLUSTERS=1892.
dmesg is appended below.

Also, if you think that is strange ...  With 1500 byte packets, at one time
only 50% of line rate was possible.  I added 2 gx cards to test GigE.  With
these cards not used, put just in the system, the fxp numbers went from 50%
to full line rate.   I haven't a clue as to why.

MikeC



bash-2.05a$ dmesg
OpenBSD 3.1 (LUCK2) #1: Tue May 21 16:43:15 EST 2002
    root_(_at_)_luck:/usr/src/sys/arch/i386/compile/LUCK2
cpu0: Intel Pentium 4 ("GenuineIntel" 686-class) 1.49 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,M
X,FXSR,SIMD
real mem  = 535900160 (523340K)
avail mem = 493256704 (481696K)
using 5689 buffers containing 26898432 bytes (26268K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/11/01, BIOS32 rev. 0 @ 0xffe90
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfbbb0/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801BA LPC" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0x9800 0xc9800/0x6800 0xd0000/0x1800 0xd1800/0x1800
0x
3000/0x1000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82850 Host" rev 0x02: rng active,
8Kb/sec
ppb0 at pci0 dev 1 function 0 "Intel 82850/82860 AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia Riva TNT2" rev 0x15
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0x02
pci2 at ppb1 bus 2
gx0 at pci2 dev 7 function 0 "Intel PRO 1000T (82544GC)" rev 0x02: irq 11:
addr
ss: 00:02:b3:aa:04:f4
eephy0 at gx0 phy 1: Marvell 88E1000* Gigabit PHY
gx1 at pci2 dev 8 function 0 "Intel PRO 1000T (82544GC)" rev 0x02: irq 10:
addr
ss: 00:02:b3:aa:06:e9
eephy1 at gx1 phy 1: Marvell 88E1000* Gigabit PHY
ahc0 at pci2 dev 9 function 0 "Adaptec AHA-29160 U160" rev 0x02: irq 11
ahc0: Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0: 16 targets
ahc0: target 0 using 16bit transfers
ahc0: target 0 synchronous at 40.0MHz, offset = 0x7f
ahc0: target 0 using tagged queuing
sd0 at scsibus0 targ 0 lun 0: <FUJITSU, MAJ3182MP, 5508> SCSI4 0/direct
fixed
sd0: 17366MB, 14739 cyl, 5 head, 482 sec, 512 bytes/sec, 35566478 sec total
fxp0 at pci2 dev 10 function 0 "Intel 82557" rev 0x02: irq 11, address
00:a0:c9:
69:17:d8
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
fxp1 at pci2 dev 11 function 0 "Intel 82557" rev 0x02: irq 11, address
00:a0:c9:
66:a5:e0
inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 0
xl0 at pci2 dev 12 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 11xl0:
comm
and never completed!
xl0: command never completed!
xl0: command never completed!
 address 00:b0:d0:16:bb:8a
exphy0 at xl0 phy 24: 3Com internal media interface
xl0: command never completed!
xl0: command never completed!
xl0: command never completed!
pcib0 at pci0 dev 31 function 0 "Intel 82801BA LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801BA IDE" rev 0x02: DMA, channel
0 w
ired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 ignored (disabled)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <SONY, CD-RW CRX160E, 1.0g> SCSI0 5/cdrom
removabl
e
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 31 function 2 "Intel 82801BA USB" rev 0x02: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82801BA SMBus" rev 0x02 at pci0 dev 31 function 3 not configured
uhci1 at pci0 dev 31 function 4 "Intel 82801BA USB2" rev 0x02: irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
isa0 at pcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: 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 8a40 netmask 8e40 ttymask 9ec2
pctr: user-level cycle counter enabled
dkcsum: sd0 matched BIOS disk 80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
bash-2.05a$



Visit your host, monkey.org