From: "T. Daniel Crawford" <crawdad@vt.edu>
To: <axp-list@redhat.com>
Cc: <jay.estabrook@compaq.com>, <ezolt@perf.zko.dec.com>
Subject: Interesting SCSI Performance Problems
Date: Fri, 16 Mar 2001 16:42:48 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.30.0103161638330.20862-100000@orion.chem.vt.edu> (raw)
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
next reply other threads:[~2001-03-16 21:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-16 21:42 T. Daniel Crawford [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-03-16 22:36 Interesting SCSI Performance Problems KirkE
2001-03-17 6:17 ` T. Daniel Crawford
2001-03-17 13:46 ` Alan P. Kennedy, Sr
2001-03-17 14:25 ` T. Daniel Crawford
2001-03-17 15:24 ` Jay Estabrook
2001-03-17 15:55 ` T. Daniel Crawford
2001-03-18 18:36 KirkE
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox