Subject: Adaptec 2120S in Compaq Proliant: very bad write performance
To: None <port-i386@netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
List: port-i386
Date: 11/04/2003 11:51:45
Hi again,

We have been trying an Adaptec 2120S RAID controller (aac0) in a Compaq
Proliant with a 2.4 GHz Xeon CPU. The read performance is very nice, but
the write performance is an order of magnitude lower and very bad. This
is with a RAID-5 set over 3 U320 SCSI disks of about 36G each, which was
supposed to be extended to 5 disks. The disks are in some kind of
hot-pluggable rack.

These are results from bonnie++:

Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
seydlitz         2G  4588   4  4767   2  3796   1 54160  62 60861  13 239.4   1
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP 
                 60   826  67 106949  99  3921  93   439  35  1348  99  1451  87

There must be something wrong with the combination of computer,
controller and drives, because Linux gave similar bad results, and an
attempted mswindows install hung at about the time it should start its
driver for the Adaptec.

Below is a dmesg. Somehow lpt0 is not detected, but messages about
"stray interrupt 7" are printed now and then. Therefore we disabled the
lpt port. After that, Linux would still repeatably print a similar
message during the bonne++ test. This seems also strange, maybe it is
related.

Any ideas?

NetBSD 1.6.1 (GENERIC) #0: Tue Apr  8 12:05:52 UTC 2003
    autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/i386/OBJ/autobuild/netbsd-1-6/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium 4 (686-class), 2392.38 MHz
cpu0: D-cache 8 KB 64b/line 4-way
cpu0: L2 cache 512 KB 64b/line 8-way
cpu0: features ffffffffbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features ffffffffbfebf9ff<PGE,MCA,CMOV,FGPAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features ffffffffbfebf9ff<FXSR,SSE,SSE2,SS,HTT,TM,B31>
total memory = 511 MB
avail memory = 468 MB
using 6144 buffers containing 26296 KB of memory
BIOS32 rev. 0 found at 0xf0000
mainbus0 (root)
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: ServerWorks CMIC_LE Host (rev. 0x13)
pchb1 at pci0 dev 0 function 1
pchb1: ServerWorks CMIC_LE Host (rev. 0x00)
pci1 at pchb1 bus 128
pci1: no spaces enabled!
pchb2 at pci0 dev 0 function 2
pchb2: ServerWorks product 0x0000 (rev. 0x00)
pci2 at pchb2 bus 2
pci2: no spaces enabled!
ahc1 at pci0 dev 1 function 0
ahc1: interrupting at irq 7
ahc1: aic7892 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc1: 16 targets, 8 luns per target
vga1 at pci0 dev 3 function 0: ATI Technologies Rage XL (rev. 0x27)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
bge0 at pci0 dev 4 function 0: Broadcom BCM5702X Gigabit Ethernet
bge0: interrupting at irq 5
bge0: ASIC BCM5703 A2, Ethernet address 00:0b:cd:af:f3:05
brgphy0 at bge0 phy 1: BCM5703 1000BASE-T media interface, rev. 2
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
Compaq product 0xa0f0 (miscellaneous system) at pci0 dev 5 function 0 not configured
pcib0 at pci0 dev 15 function 0
pcib0: ServerWorks CSB5 SouthBridge (rev. 0x93)
pciide0 at pci0 dev 15 function 1: ServerWorks CSB5 IDE Controller (rev. 0x93)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
atapibus0 at pciide0 channel 0: 2 targets
cd0 at atapibus0 drive 0: <COMPAQ  CD-ROM  SC-148C, , B101> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4
pciide0: primary channel interrupting at irq 14
cd0(pciide0:0:0): using PIO mode 4
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel interrupting at irq 15
ohci0 at pci0 dev 15 function 2: ServerWorks OSB4/CSB5 USB (rev. 0x05)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
pchb3 at pci0 dev 15 function 3
pchb3: ServerWorks product 0x0225 (rev. 0x00)
pchb4 at pci0 dev 17 function 0
pchb4: ServerWorks product 0x0101 (rev. 0x05)
pci3 at pchb4 bus 2
pci3: memory space enabled
aac0 at pci3 dev 2 function 0: Adaptec ASR-2120S
aac0: interrupting at irq 3
aac0: i960RX at 100MHz, 48MB cache, optional battery present, kernel 3.4-0
ld0 at aac0 unit 0: RAID 5
ld0: 69425 MB, 8850 cyl, 255 head, 63 sec, 512 bytes/sect x 142182912 sectors
pchb5 at pci0 dev 17 function 2
pchb5: ServerWorks product 0x0101 (rev. 0x05)
pci4 at pchb5 bus 5
pci4: memory space enabled
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
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
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
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask efcd netmask efed ttymask ffef
scsibus0: waiting 2 seconds for devices to settle...
Kernelized RAIDframe activated
boot device: ld0
root on ld0a dumps on ld0b
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)


-Olaf.
-- 
___ Olaf 'Rhialto' Seibert - rhialto@       -- "What good is a Ring of Power
\X/ polderland.nl            -- if you're unable...to Speak." - Agent Elrond