Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2004 15:01:22 -0600
From:      Scott Long <scottl@freebsd.org>
To:        Jens Schweikhardt <schweikh@schweikhardt.net>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: 2120S Stripe - abysmal performance
Message-ID:  <40A13F22.80505@freebsd.org>
In-Reply-To: <20040511203730.GB2256@schweikhardt.net>
References:  <20040511203730.GB2256@schweikhardt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Jens Schweikhardt wrote:
> hello, world\n
> 
> I hoped that my new Adaptec 2120S U320 RAID in my new Supermicro P4SCT
> board with 64bit/66MHz PCI would turn my disk IO into a desktop blitz,
> but the opposite has happened. While my old ASUS A7N8X with vinum would
> read 100MB/s from 2 Fujitsu MAP3367 connected to an 29160, I get only
> 29MB/sec from the stripe built with the 2120S (as measured with dd to
> /dev/null).
> 
> What I have done so far:
> o have reset the 2120S config to factory defaults.
> o set the transfer speed to U160 and disabled "packetized" because
>   I could not low level format the drives otherwise. Until that point
>   I had a lot of trouble even getting the 2120S to boot its controller
>   kernel. Effect has been seemingly endless (5min) twirling baton.

This means that you have a bad cable and/or poor termination.  Backing
down to u160 is only going to hurt performance; the 2120 needs every
little bit of help that it can get.

> o low level formatted both MAPs, initialized them and then built the
>   stripe with 64kb stripe size.
> o I have enabled caching in both directions.

Read caching should be turned off unless you have a very specific need
for it.  Having it on is going to hurt sequential read performance by a
2x factor.  The only time is makes sense is when you have a relatively
small data set that gets read repeatedly, with few other reads mixed in.

> 
> The dmesg says
> schweikh@hal9000:~ $ dmesg|grep aac
> aac0: <Adaptec SCSI RAID 2120S> mem 0xe8000000-0xebffffff irq 9 at device 1.0 on pci3
> aac0: Reserved 0x4000000 bytes for rid 0x10 type 3 at 0xe8000000
> aac0: [FAST]
> aac0: i960RX 100MHz, 48MB cache memory, optional battery present
> aac0: Kernel 4.0-0, Build 6011, S/N ba12c0
> aac0: Supported Options=1f7e<CLUSTERS,WCACHE,DATA64,HOSTTIME,RAID50,WINDOW4GB,SOFTERR,NORECOND,SGMAP64,ALARM,NONDASD>
> aacd0: <RAID 0 (Stripe)> on aac0
> aacd0: 69997MB (143354880 sectors)
> 
> Any enlightenment on how to improve disk io greatly appreciated.
> 

The 2120 is the 'value' card of the family.  It has an Intel 80302 
instead of an 80303 processor, which means that it's internal i/o 
thoroughput is cut in half.  Add in the 2x hit from having the read
cache on, and yes, you will get horribly performance.  At the very
least you need to fix your cable configuration and turn off the read
cache.

Scott



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40A13F22.80505>