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 55BC32FBA7 for ; Fri, 16 Mar 2001 16:42:59 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f2GLiFY00932 for axp-list@listman.redhat.com; Fri, 16 Mar 2001 16:44:15 -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 f2GLiEV00925 for ; Fri, 16 Mar 2001 16:44:15 -0500 Received: from localhost (crawdad@localhost) by orion.chem.vt.edu (8.11.0/8.11.0) with ESMTP id f2GLgmP21179; Fri, 16 Mar 2001 16:42:48 -0500 X-Authentication-Warning: orion.chem.vt.edu: crawdad owned process doing -bs Date: Fri, 16 Mar 2001 16:42:48 -0500 (EST) From: "T. Daniel Crawford" X-Sender: To: Cc: , Subject: Interesting SCSI Performance Problems 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: 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