Subject: kern/36900: MPT driver attached to LSI logic 1068E is slooow.
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <kab00m@labma.ru>
List: netbsd-bugs
Date: 09/04/2007 16:50:01
>Number:         36900
>Category:       kern
>Synopsis:       MPT driver attached to LSI logic 1068E is slooow.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 04 16:50:01 +0000 2007
>Originator:     Dima Veselov
>Release:        NetBSD 4.99.30 28-Aug-07
>Organization:
	Module automation lab
>Environment:
System: NetBSD arden.labma.ru 4.99.30 NetBSD 4.99.30 (Adju) #1: Mon Aug 27 11:57:39 MSD 2007 kab00m@avangard.labma.ru:/usr/src/sys/arch/i386/compile/Adju i386
Architecture: i386
Machine: i386

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.99.30 (Adju) #1: Mon Aug 27 11:57:39 MSD 2007
	kab00m@avangard.labma.ru:/usr/src/sys/arch/i386/compile/Adju
total memory = 2046 MB
rbus: rbus_min_start set to 0x80000000
avail memory = 2000 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xfd50d
mainbus0 (root)
cpu0 at mainbus0 apid 0: (boot processor)
cpu0: Intel Core 2 (Merom) (686-class), 1862.12 MHz, id 0x6f6
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 4e3bd<SSE3,MONITOR,DS-CPL,VMX,EST,TM2,xTPR,PDCM,DCA>
cpu0: "Intel(R) Xeon(R) CPU            5120  @ 1.86GHz"
cpu0: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu0: L2 cache 4 MB 64B/line 16-way
cpu0: ITLB 128 4 KB entries 4-way
cpu0: using thermal monitor 1
cpu0: Enhanced SpeedStep disabled by BIOS
cpu0: calibrating local timer
cpu0: apic clock running at 266 MHz
cpu0: 64 page colors
cpu1 at mainbus0 apid 1: (application processor)
cpu1: Intel Core 2 (Merom) (686-class), 1862.00 MHz, id 0x6f6
cpu1: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu1: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu1: features2 4e3bd<SSE3,MONITOR,DS-CPL,VMX,EST,TM2,xTPR,PDCM,DCA>
cpu1: "Intel(R) Xeon(R) CPU            5120  @ 1.86GHz"
cpu1: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu1: L2 cache 4 MB 64B/line 16-way
cpu1: ITLB 128 4 KB entries 4-way
cpu1: using thermal monitor 1
cpu1: Enhanced SpeedStep disabled by BIOS
ioapic0 at mainbus0 apid 2
ioapic0: pa 0xfec00000, version 20, 24 pins
ioapic1 at mainbus0 apid 3
ioapic1: pa 0xfec80000, version 20, 24 pins
ioapic2 at mainbus0 apid 4
ioapic2: pa 0xfec10000, version 20, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <PTLTD ,  RSDT  ,06040000>, AslId < LTP,00000000>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
CPU0 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU1 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU2 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU3 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU4 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU5 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU6 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU7 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
PCI0 (PNP0A03) [PCI/PCI-X Host Bridge] at acpi0 not configured
MBRD (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
DMAC (PNP0200) [AT DMA Controller] at acpi0 not configured
npx1 at acpi0 (MATH, PNP0C04)
npx1: io 0xf0-0xfe irq 13
npx1: reported by CPUID; using exception 16
PIC (PNP0000) [AT Interrupt Controller] at acpi0 not configured
RTC (PNP0B00) [AT Real-Time Clock] at acpi0 not configured
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
attimer1 at acpi0 (TIME, PNP0100): AT Timer
attimer1: io 0x40-0x43,0x50-0x53 irq 0
LNKA (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNKB (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNKC (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNKD (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
SIO (PNP0A05) [Generic Container Device] at acpi0 not configured
pckbc1 at acpi0 (KBC0, PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
pckbc2 at acpi0 (PSM0, PNP0F13): aux port
pckbc2: irq 12
com3 at acpi0 (COM1, PNP0501-1)
com3: io 0x3f8-0x3ff irq 4
com3: ns16550a, working fifo
FDC (PNP0700) [PC standard floppy disk controller] at acpi0 not configured
lpt3 at acpi0 (PRT, PNP0401-2)
lpt3: io 0x378-0x37f,0x778-0x77f irq 7 drq 3
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
apm0 at acpi0: Power Management spec V1.2
pcppi1: attached to attimer1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel product 0x25d8 (rev. 0xb1)
ppb0 at pci0 dev 2 function 0: Intel product 0x25e2 (rev. 0xb1)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci1 dev 0 function 0: Intel 63xxESB PCI Express Upstream Port (rev. 0x01)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci2 dev 0 function 0: Intel 63xxESB PCI Express Downstream Port #1 (rev. 0x01)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ppb3 at pci2 dev 1 function 0: Intel 63xxESB PCI Express Downstream Port #2 (rev. 0x01)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
ppb4 at pci2 dev 2 function 0: Intel 63xxESB PCI Express Downstream Port #3 (rev. 0x01)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
ppb5 at pci1 dev 0 function 3: Intel 63xxESB PCI Express to PCI-X Bridge (rev. 0x01)
pci6 at ppb5 bus 6
pci6: i/o space, memory space enabled, rd/line, wr/inv ok
wm0 at pci6 dev 1 function 0: Intel i82545GM 1000BASE-T Ethernet, rev. 4
wm0: interrupting at ioapic1 pin 0 (irq 9)
wm0: 64-bit 133MHz PCIX bus
wm0: 256 word (8 address bits) MicroWire EEPROM
wm0: Ethernet address 00:1b:21:00:89:e2
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb6 at pci0 dev 3 function 0: Intel product 0x25e3 (rev. 0xb1)
pci7 at ppb6 bus 7
pci7: i/o space, memory space enabled, rd/line, wr/inv ok
wm1 at pci7 dev 0 function 0: i80003 dual 1000baseT Ethernet, rev. 1
wm1: interrupting at ioapic0 pin 16 (irq 9)
wm1: PCI-Express bus
wm1: 65536 word (16 address bits) SPI EEPROM
wm1: Ethernet address 00:1a:92:60:32:3d
ikphy0 at wm1 phy 1: i82563 10/100/1000 media interface, rev. 2
ikphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm2 at pci7 dev 0 function 1: i80003 dual 1000baseT Ethernet, rev. 1
wm2: interrupting at ioapic0 pin 17 (irq 5)
wm2: PCI-Express bus
wm2: 65536 word (16 address bits) SPI EEPROM
wm2: Ethernet address 00:1a:92:60:32:3c
ikphy1 at wm2 phy 1: i82563 10/100/1000 media interface, rev. 2
ikphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb7 at pci0 dev 4 function 0: Intel product 0x25f8 (rev. 0xb1)
pci8 at ppb7 bus 8
pci8: i/o space, memory space enabled, rd/line, wr/inv ok
ppb8 at pci0 dev 5 function 0: Intel product 0x25e5 (rev. 0xb1)
pci9 at ppb8 bus 9
pci9: i/o space, memory space enabled, rd/line, wr/inv ok
ppb9 at pci0 dev 6 function 0: Intel product 0x25f9 (rev. 0xb1)
pci10 at ppb9 bus 10
pci10: i/o space, memory space enabled, rd/line, wr/inv ok
ppb10 at pci0 dev 7 function 0: Intel product 0x25e7 (rev. 0xb1)
pci11 at ppb10 bus 11
pci11: i/o space, memory space enabled, rd/line, wr/inv ok
Intel product 0x1a38 (miscellaneous system, revision 0xb1) at pci0 dev 8 function 0 not configured
pchb1 at pci0 dev 16 function 0
pchb1: Intel product 0x25f0 (rev. 0xb1)
pchb2 at pci0 dev 16 function 1
pchb2: Intel product 0x25f0 (rev. 0xb1)
pchb3 at pci0 dev 16 function 2
pchb3: Intel product 0x25f0 (rev. 0xb1)
pchb4 at pci0 dev 17 function 0
pchb4: Intel product 0x25f1 (rev. 0xb1)
pchb5 at pci0 dev 19 function 0
pchb5: Intel product 0x25f3 (rev. 0xb1)
pchb6 at pci0 dev 21 function 0
pchb6: Intel product 0x25f5 (rev. 0xb1)
pchb7 at pci0 dev 22 function 0
pchb7: Intel product 0x25f6 (rev. 0xb1)
ppb11 at pci0 dev 28 function 0: Intel 63xxESB PCI Express Port #1 (rev. 0x09)
pci12 at ppb11 bus 12
pci12: i/o space, memory space enabled, rd/line, wr/inv ok
ppb12 at pci12 dev 0 function 0: Intel product 0x032c (rev. 0x09)
pci13 at ppb12 bus 13
pci13: i/o space, memory space enabled, rd/line, wr/inv ok
mpt0 at pci13 dev 3 function 0: Symbios Logic SAS1068
mpt0: interrupting at ioapic2 pin 2 (irq 11)
mpt0: Phy 0: Link Rate 3.0 Gbps
mpt0: Phy 1: Link Rate 3.0 Gbps
mpt0: Unknown async event: 0xb
scsibus0 at mpt0: 63 targets, 8 luns per target
Intel product 0x0326 (interrupt system, interface 0x20, revision 0x09) at pci12 dev 0 function 1 not configured
uhci0 at pci0 dev 29 function 0: Intel 63xxESB USB UHCI Controller (rev. 0x09)
uhci0: interrupting at ioapic0 pin 17 (irq 5)
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
uhci1 at pci0 dev 29 function 1: Intel 63xxESB USB UHCI Controller (rev. 0x09)
uhci1: interrupting at ioapic0 pin 19 (irq 10)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 63xxESB USB UHCI Controller (rev. 0x09)
uhci2: interrupting at ioapic0 pin 18 (irq 11)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: Intel 63xxESB USB UHCI Controller (rev. 0x09)
uhci3: interrupting at ioapic0 pin 16 (irq 9)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: Intel 63xxESB USB EHCI Controller (rev. 0x09)
ehci0: interrupting at ioapic0 pin 17 (irq 5)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb13 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0xd9)
pci14 at ppb13 bus 14
pci14: i/o space, memory space enabled
vga1 at pci14 dev 2 function 0: ATI Technologies ES1000 (rev. 0x02)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
direct rendering for vga1 unsupported
pcib0 at pci0 dev 31 function 0
pcib0: Intel 63xxESB LPC Interface Bridge (rev. 0x09)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 631xESB/632xESB IDE Controller (rev. 0x09)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel ignored (disabled)
ichsmb0 at pci0 dev 31 function 3: Intel 63xxESB SMBus Controller (rev. 0x09)
ichsmb0: interrupting at ioapic0 pin 19 (irq 10)
iic0 at ichsmb0: I2C bus
isa0 at pcib0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
scsibus0: waiting 2 seconds for devices to settle...
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <TSSTcorpDVD-ROM TS-L332A, , AU00> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
sd0 at scsibus0 target 0 lun 0: <LSILOGIC, Logical Volume, 3000> disk fixed
sd0: 298 GB, 305175 cyl, 16 head, 128 sec, 512 bytes/sect x 624998400 sectors
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
boot device: sd0
root on sd0a dumps on sd0b
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)

>Description:
	Disk array on mpt0 is very slow (dd 512k says 10Mb/s vs 35Mb/s on almost dead P3.
	Controller is 1068E LSI Logic Fusion-X on Asus server.

>How-To-Repeat:
	Just run server and untar pkgsrc - it will take a night.
>Fix:
	Not known (wish can) :(
	But I can provide ssh to this box, 24h.