W dniu 2011-03-02 13:52, Ryan McBride pisze:
On Mon, Feb 28, 2011 at 12:49:01PM +0100, Manuel Guesdon wrote:
OK. Anyway NIC buffers restrict buffered packets number. But the problem
remain: why a (for exemple) dual Xeon [email protected] with Intel PRO/1000
(82576) can't route 150kpps without Ierr :-)
http://www.oxymium.net/tmp/core3-dmesg

I've done some more comprehensive testing and talked to some other
developers, and it seems that 150kpps is in the range of what is
expected for such hardware with an unoptimized install.

One thing that seems to have a big performance impact is
net.inet.ip.ifq.maxlen. If and only if your network cards are all
supported by MCLGETI (ie, they show LWM/CWM/HWM values in 'systat
mbufs', you can try increasing ifq.maxlen until you don't see
net.inet.ip.ifq.drops incrementing anymore under constant load.

On my test box here - Intel(R) Xeon(R) CPU 5140 @ 2.33GHz with em(4), pf
disabled - increasing net.inet.ip.ifq.maxlen to 8192 gets more than
double the performance compared with the default of 256.

We're looking at making the ifq.maxlen tune itself so you don't have to
twiddle this knob anymore, not sure if and when that will happen though.



I also have problems with bandwidth on em(4).
On default clean 4.8 install i get 430Mbit/s. (with pf and altq enabled it's only 275Mbit/s).

systat shows:

  31.7%Int  62.1%Sys   0.0%Usr   0.0%Nic   6.2%Idle
|    |    |    |    |    |    |    |    |    |    |
||||||||||||||||===============================

Interrupts
8025 total
 100 clock
7921 em0
   4 ichiic0

http://erydium.pl/upload/vmstat.gif
http://erydium.pl/upload/systat.gif
http://erydium.pl/upload/kern_profiling.txt


my hardware:
box: Lenovo ThinkCentre A51P
nic: Intel PRO/1000 PT Desktop Adapter (PCIe, model:
EXPI9300PTBLK)

DMESG:
OpenBSD 4.8 (KERN_PROF.PROF) #0: Thu Dec 30 13:25:40 CET 2010

[email protected]:/usr/src/sys/arch/i386/compile/KERN_PROF.PROF
cpu0: Intel(R) Celeron(R) CPU 2.80GHz ("GenuineIntel" 686-class) 2.80 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,CNXT-ID,xTPR
real mem  = 526938112 (502MB)
avail mem = 508166144 (484MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 05/10/07, BIOS32 rev. 0 @ 0xfd6dc, SMBIOS rev. 2.34 @ 0xefc60 (52 entries)
bios0: vendor IBM version "2BKT52AUS" date 05/10/2007
bios0: IBM 8422W4P
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP TCPA APIC BOOT MCFG
acpi0: wakeup devices EXP0(S5) EXP1(S5) EXP2(S5) EXP3(S5) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USBE(S3) SLOT(S5) KBC_(S3) PSM_(S3) COMA(S5) COMB(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 133MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus -1 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus 10 (SLOT)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature 105 degC
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xae00! 0xcb000/0x1000 0xcc000/0x2000 0xce000/0x800 0xce800/0x800 0xe0000/0x10000!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915G Host" rev 0x04
vga1 at pci0 dev 2 function 0 "Intel 82915G Video" rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
inteldrm0 at vga1: apic 1 int 16 (irq 5)
drm0 at inteldrm0
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03: apic 1 int 17 (irq 5)
pci1 at ppb0 bus 2
em0 at pci1 dev 0 function 0 "Intel PRO/1000 PT (82572EI)" rev 0x06: apic 1 int 16 (irq 5), address 00:1b:21:05:1f:39 uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x03: apic 1 int 23 (irq 11) uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x03: apic 1 int 19 (irq 9) uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x03: apic 1 int 18 (irq 10) uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x03: apic 1 int 16 (irq 5) ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x03: apic 1 int 23 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xd3
pci2 at ppb1 bus 10
xl0 at pci2 dev 10 function 0 "3Com 3c905C 100Base-TX" rev 0x74: apic 1 int 22 (irq 3), address 00:04:76:0b:90:9f
bmtphy0 at xl0 phy 24: 3C905C internal PHY, rev. 6
bge0 at pci2 dev 11 function 0 "Broadcom BCM5705K" rev 0x03, BCM5705 A3 (0x3003): apic 1 int 16 (irq 5), address 00:11:25:4f:9a:f4
brgphy0 at bge0 phy 1: BCM5705 10/100/1000baseT PHY, rev. 2
xl1 at pci2 dev 12 function 0 "3Com 3c905C 100Base-TX" rev 0x74: apic 1 int 20 (irq 9), address 00:50:da:de:89:5a
bmtphy1 at xl1 phy 24: 3C905C internal PHY, rev. 6
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FB LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801FB SATA" rev 0x03: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD400BD-08LRA0>
wd0: 16-sector PIO, LBA48, 38162MB, 78156288 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, CD-ROM GCR-8482B, 1.06> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: apic 1 int 19 (irq 9)
iic0 at ichiic0
adt0 at iic0 addr 0x2e: lm96000 rev 0x68
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-4200CL5
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
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
Profiling kernel, textsize=8644456 [d0000000..d083e768]
softraid0 at root
root on wd0a swap on wd0b dump on wd0b



best regards,
RLW

Reply via email to