From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 5E3C82F0AF for ; Sat, 17 Mar 2001 01:17:35 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f2H6Iqg00408 for axp-list@listman.redhat.com; Sat, 17 Mar 2001 01:18:52 -0500 Received: from orion.chem.vt.edu (IDENT:root@orion.chem.vt.edu [128.173.180.103]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f2H6IpV00404 for ; Sat, 17 Mar 2001 01:18:51 -0500 Received: from localhost (crawdad@localhost) by orion.chem.vt.edu (8.11.0/8.11.0) with ESMTP id f2H6HMi25514 for ; Sat, 17 Mar 2001 01:17:22 -0500 X-Authentication-Warning: orion.chem.vt.edu: crawdad owned process doing -bs Date: Sat, 17 Mar 2001 01:17:22 -0500 (EST) From: "T. Daniel Crawford" X-Sender: To: Subject: RE: Interesting SCSI Performance Problems In-Reply-To: <4A3D99071F51D411934C0008C7C9DEDD1579D2@pdxexch.paccessglobal.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Fri, 16 Mar 2001 KirkE@paccessglobal.com wrote: > >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. This is good to know, because I was not aware of this naming convention among the Qlogic adapters. However, it's bothersome that the card is identified by the Qlogic SCSI driver in the kernel as ISP 1020A. Either way, of course, the card should still provide a 40 MB/s maximum transfer rate. > 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). I agree. This is essentially the configuration I have, but with a Symbios Ultra2 for the scratch disks. > 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. Indeed, the negotation problem due to spin-up was the entire point of my original message. The reason for my post was in part to ascertain why this happens, particularly since I was using the SCSI drivers + host adapter + disks in their default configurations. I suspect that there may be many alpha Linux users who are obtaining poor SCSI transfer rates from thei disks w/o realizing it, or perhaps realize it, but have no idea what the source of the problem is. As the very trustworthy Compaq engineer who recommended I post this problem to the axp-list said, "This is very broken behavior." > 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). I agree that max throughput is not reasonable for real expectations. The point of my tests, however, was to find out why the disks were performing at worse than 25% of the max. Getting a *peak* performance 9 MB/s from a host adapter with a max of 40 MB/s (and disks at 160 MB/s) is obviously unacceptable. The Compaq engineer agreed. > >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. The pathetic 9 MB/s was not an average rate, but a sustained value. I repeat that I *doubled* the measured rate just by rebooting the machine. I then bumped it up to 34 MB/s by a trivial tweaking of the qlogicisp.c driver in the kernel. > >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. I find this bothersome, to be frank. I can understand the need for safety in the driver, but the performance I observed was pitiful. Since many of us purchase alpha's for fast, fast, fast calculations, this kind of problem strikes me as a serious problem. -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