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 258132EFD5 for ; Fri, 16 Mar 2001 17:36:37 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f2GMbrI06697 for axp-list@listman.redhat.com; Fri, 16 Mar 2001 17:37:53 -0500 Received: from pdxexch.paccessglobal.net ([204.245.212.195]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f2GMbqV06693 for ; Fri, 16 Mar 2001 17:37:53 -0500 Received: FROM pdxexch.paccessglobal.net BY pdxexch.paccessglobal.net ; Fri Mar 16 14:36:23 2001 -0800 Received: by pdxexch.paccessglobal.net with Internet Mail Service (5.5.2653.19) id ; Fri, 16 Mar 2001 14:36:23 -0800 Message-ID: <4A3D99071F51D411934C0008C7C9DEDD1579D2@pdxexch.paccessglobal.net> From: KirkE@paccessglobal.com To: axp-list@redhat.com Subject: RE: Interesting SCSI Performance Problems Date: Fri, 16 Mar 2001 14:36:22 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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: 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