Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* RE: Interesting SCSI Performance Problems
@ 2001-03-16 22:36 KirkE
  2001-03-16 22:57 ` Interesting SCSI Performance Problems - discussions where ? Andrei A. Dergatchev
  2001-03-17  6:17 ` Interesting SCSI Performance Problems T. Daniel Crawford
  0 siblings, 2 replies; 12+ messages in thread
From: KirkE @ 2001-03-16 22:36 UTC (permalink / raw)
  To: axp-list

Daniel,

>On each of my workstations I have three 18 GB Ultra 160 SCSI disks, but,
>unfortunately the on-board host adapter is a Qlogic ISP1020 Ultra Wide SCSI
>that is capable of only 40 MB/s transfer rates.  

Its actually a QLA 1040B, the 1020 is a Fast-20 HBA (Fast SCSI II wide).
The last number in Qlogic part number denotes the rate of the ASIC.  The QLA
1080 is Ultra 2 (Fast 40) and the QLA 10160 is Ultra 160 (Fast 80).  The QLA
1040B is an SRM compatible boot device, but shouldn't be used for data
volumes.  I would advise the following:

1) First SCSI controller (1040B) single boot disk (9GB Ultra disks can be
had for $80.00 on Pricewatch.com)
2) Second SCSI controller (10160 or 12160, 12160 being dual channel) with
2-4 disks (may be software stripped, if desired).

The Qlogic 1240 (dual channel 1040B), 1080, 1280, 10160, 12160 controllers
are all 64 bit PCI, boosting your max throughout for the controller (not
necessarily the disks) up to 180-200MBps (minus some bus overhead). You
could easily stack 3 disks per channel on a 1080/10160 for fairly
spectacular performance.  The more you know about the behavior of your app
with regard to disk I/O requirements, the better.  An NVRAM dump utility is
provided that will allow you to modify the NVRAM parameters (you'll have to
use a DOS machine, Win98/ME, etc to run the tool) and tune the FIFO
thresholds, bus timings, etc.  Its worth the extra effort.

Alternatively, you could use a Myles RAID controller (such as the
eXtremeRAID 2000) and run one or more logical volumes in hardware RAID "10"
(mirrored stripes) for the ideal mix between random uncached reads/writes
and sequential cached reads/writes (its the fastest all around RAID level,
though at 50% capacity overhead).  I noticed that you had some negotiation
problems with your disks, possibly due to spin up/spin down during
negotiation.  Unless you have a good reason to maintain the disk spinup at
boot, disable the feature.  I would recommend that for your purposes you
consider an external drive array with two SCSI busses (3 or 4 disks per
bus), these can be had on Pricewatch, Egghead auctions and Ebay for between
$200.00 and $1,000.00 and usually contain one or two 350-550 watt power
supplies, reducing the load on your XP1000's often over-demanded power
supply.

As for your synthetic load generator program to determine max throughput, be
aware that unless your application writes or reads in sequential fashion,
you will not achieve anywhere NEAR those figures (34-74MBps is based on
synchronous rates at the highest negotiated frequency and with highly
cacheable sequentially read/written data). Not even a caching RAID
controller like the eXtremeRAID 1100 or 2000 will achieve maximum throughput
with applications that require paging of only small amounts of data at a
time (high I/O throughput rate, not high MBps rates due to high overhead,
they are mutually exclusive).  Most of the tricks a good caching RAID
controller will due are in late-write and read-ahead, neither of which are
possible with highly random data requests. A realistic data rate will fall
somewhere between maximum throughput in MBps and the minimum MBps for a
large number of small I/O transactions (perhaps close to a thousand per
second). Your results will be application dependent.

For highly transactional (such as DB) I/O requests, it is better to shrink
the RAID stripe blocks down to a fairly small number (8KB to 16KB), this may
vary depending on the DB native paging size and the hardware platform. Cache
should be write-back to provide delayed committal to disk.  Read-ahead won't
benefit you much.

For streaming (such as video editing, DB logs) I/O requests, is better to
use a large or very large stripe block (64KB-256KB), this will vary
depending on the average file size, the transaction commit size and the
capabilities of the RAID controller.  Write-back should be set (where
possible) to the longest delay before a cache buffer overflow.  Read-ahead
will have substantial benefit in sequetentially read data. 

>I wrote a little test program to simply write a 2.4 GB file to disk,
including the appropriate fdatasync() to isolate 
>hardware problems from buffering.  My timing with the ISP1020 controller: a
whopping 9 MB/s sustained transfer rate.

As I mentioned, this is a 1040B, NOT a 1020 (two controllers that are VERY
different and more than 3 years of ASIC development between them).  This
sounds about right for an average sustained throughput for that controller,
at least for reads that cannot be effectively buffered with a single disk.
You may be able to tweak it for your I/O access type through the NVRAM
tweaks I mentioned above, though I encourage you to look at a secondary data
only controller or a RAID controller for the same purpose.  Budget and value
to your development may be the deciding factor.

>I then looked through the qlogicisp.c driver code in the 2.4.2 kernel and
played
>with default settings.  I found that if I recompiled the code to grab its
>defaults from the card's NVRAM, then I could get a 34 MB/s transfer rate
>out of the Qlogic card, but if I used the compiled-in defaults, I could
>get 17 MB/s at best.

Not too surprising, many of the SCSI controller drivers I've seen do NOT
reference the NVRAM variables which will not use more of the advanced
features and a higher frequency bus during or after negotiation.  These
drivers are compiled for safety, not speed. As mentioned, the NVRAM can be
further tweaked, just not from your Alpha (NVRAM dump utils from Qlogic's
website are readmode DOS only). 

Good luck,

--KE 




^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Interesting SCSI Performance Problems - discussions where ?
@ 2001-03-16 23:11 KirkE
  0 siblings, 0 replies; 12+ messages in thread
From: KirkE @ 2001-03-16 23:11 UTC (permalink / raw)
  To: axp-list

Andrei,

Alpha/NT list has a bunch of us, including vendors for SCSI controllers,
storage devices and backup software (BEI's Paul Bunn in particular). The
Alpha/NT list is fairly devoid of useful talk these days owing to our
currently dead/dying OS/platform combination thanks to Compaq and MS.  A few
questions about SCSI that don't get to OS specific (as these do not) will
get you quite a few very authorative answers.  The Use/News groups for SCSI
are pretty low quality.  Tru64's list serve is pretty execllent as well,
remember to maintain good discipline with your replies (change your subject
lines, cut off unnecessary and old parts of the thread) and you'll get a
good audience.

--KE

-----Original Message-----
From: Andrei A. Dergatchev [mailto:A.Dergatchev@tn.utwente.nl]
Sent: Friday, March 16, 2001 2:58 PM
To: axp-list@redhat.com
Subject: Re: Interesting SCSI Performance Problems - discussions where ?


Hi,

KirkE@paccessglobal.com wrote:
[...]

Thanks a lot to Kirk for his detailed explanation !

I just wanted to ask one question.
Recently I got interested in subj - SCSI performance that is.
To my huge surprise, unlike CPI/L1/TLB related discussions
of how to save one-two CPU cycles, SCSI performance
does not seem to attract similar research activity.
scsi*. and *.storage newsgroups devote 99.9% of the bandwidth
to flammage and discussions of LVD termination.
linux-scsi and freebsd-scsi lists aren't active either.
I'm just wondering are there any people working in this area
and if yes, where do they discuss it ?

Thanks a lot to Kirk again,

Regards,

Andrei





_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-03-18 17:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-16 22:36 Interesting SCSI Performance Problems KirkE
2001-03-16 22:57 ` Interesting SCSI Performance Problems - discussions where ? Andrei A. Dergatchev
2001-03-17  6:17 ` Interesting SCSI Performance Problems T. Daniel Crawford
2001-03-17 13:46   ` Alan P. Kennedy, Sr
2001-03-17 14:25     ` T. Daniel Crawford
2001-03-18  2:21     ` /usr/sbin/mke2fs: error in loading shared libraries J. Hart
2001-03-18  5:10       ` Alexey Chupakhin
2001-03-18 11:09         ` J. Hart
2001-03-18 17:12       ` Michal Jaegermann
2001-03-17 15:24   ` Interesting SCSI Performance Problems Jay Estabrook
2001-03-17 15:55     ` T. Daniel Crawford
  -- strict thread matches above, loose matches on Subject: below --
2001-03-16 23:11 Interesting SCSI Performance Problems - discussions where ? KirkE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox