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; 13+ 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] 13+ messages in thread
* RE: Interesting SCSI Performance Problems
@ 2001-03-18 18:36 KirkE
  0 siblings, 0 replies; 13+ messages in thread
From: KirkE @ 2001-03-18 18:36 UTC (permalink / raw)
  To: axp-list

Daniel,

Thanks to the previous poster for identifying the source of confusion with
the driver identification printout.

>I very happily stand correct here.  My card is indeed a 1040C = 1020
>revision 6, according to the logs.  Very good to know.  What does the "C"
>part indicate?  I checked the Qlogic site, but found nothing.

The IC rev 6 and version C just means its the 6th revision of a minor core
modification in the 1040, the "C" being some feature enhancement.  If I'm
not mistaken, they added a few bytes of depth to the FIFOs and improved some
auto-negotiation and active-negation issues.  You should be able to pick up
more details here:

http://www.qlogic.com/products/isp1040c.html  get the PDF for technical
details
Compare to:
http://www.qlogic.com/products/isp1040b.html get the PDF and do the same.

Note Qlogic has posted a new product, the QLA 12320 (Ultra SCSI 4, Fast
160=320MBps 16bit transfers), this is the first PCI X (64 bit, 133 MHz,
backward compatible to 66MHz PCI 2.2) component and offers two channels of
U4/320 (640 MBps) over a 1.06GBps PCI bus implementation. 

--KE




^ permalink raw reply	[flat|nested] 13+ messages in thread
* Interesting SCSI Performance Problems
@ 2001-03-16 21:42 T. Daniel Crawford
  0 siblings, 0 replies; 13+ messages in thread
From: T. Daniel Crawford @ 2001-03-16 21:42 UTC (permalink / raw)
  To: axp-list; +Cc: jay.estabrook, ezolt

Dear Alpha Linux Users,

I have several Compaq XP-1000 workstations which I use for computationally
intensive scientific calculations, which involve large amounts of memory
and disk space.  Recently, after encountering substantial I/O performance
problems on my systems, I ran a series of I/O tests to examine SCSI disk
performance and found what appear to be host adapter/disk negotiation
problems on boot-up.  I'm bringing this to the attention of the members of
this list in order to get some feedback or perhaps to bring the problem
to the attention of those who can come up with more elegant fixes than
my workarounds.

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.  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.

So, I ordered a Symbios Ultra2 SCSI controller which can get 80 MB/s just
to see the speed difference.  I connected my scratch drives to the new
controller and things improved substantially --- but still I could get
only 34 MB/s.  I examined the logs carefully and found that the Symbios
adapter and the disks were negotiating only a 40 MB/s transfer rate!  A good
friend suggested that maybe the host adapter was trying to negotiate with
the disks before they'd completely spun up.  So, I recompiled my kernel
(2.4.1) to use the Symbios driver (sym53c8xx) as a module.  I then rebooted,
inserted the Symbios module, and, as expected, the disks returned only 34
MB/s transfer.  I then rmmod the driver and reinserted it immediately with
no reboot so that the disks wouldn't spin down.  The host negaotiated an
80 MB/s transfer rate with the disks (according to the logs) and my I/O
test program reported a 74 MB/s transfer rate.  Amazing.

As a final test of this little phenomenon, I went to another of my XP-1000's
with the pitiful Qlogic ISP1020 card.  On initial cold boot, I get the
expected 9 MB/s transfer rate.  If I simply warm boot the machine and
immediately re-run my I/O test, I get 16-17 MB/s.  This is better, but
still less than half what the Qlogic card should be capable of.  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.

In summary:

(1) It seems likely that the initial negotiation between the host adapater
(both the Qlogic and Symbios cards) and the disks has problems, and that
performance is greatly improved (doubled, in fact) simply by rebooting the
machine.  This occurs with both Qlogic ISP1020 and Symbios host adapters
with my Compaq Ultra 160 drives.

(2) The defaults for the Qlogic ISP1020 host adapter (which appears to be
standard on the XP-1000 motherboard) would seem to result in only 20 MB/s
transfers rather than the expected 40 MB/s with that Ultra Wide card.

Any comments you might have on these phenomena would be greatly
appreciated.

-Daniel

-- 
T. Daniel Crawford                           Department of Chemistry
crawdad@vt.edu                                    Virginia Tech
www.chem.vt.edu/chem-dept/crawford    Voice: 540-231-7760  FAX: 540-231-3255




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

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

Thread overview: 13+ 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-18 18:36 KirkE
2001-03-16 21:42 T. Daniel Crawford

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