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 B69CD3273D for ; Fri, 1 Dec 2000 11:52:03 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eB1Gq3S15414 for axp-list@listman.redhat.com; Fri, 1 Dec 2000 11:52:03 -0500 Received: from falstaff.isc-net.upenn.edu (FALSTAFF.ISC-NET.UPENN.EDU [130.91.72.121]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eB1Gq3D15410 for ; Fri, 1 Dec 2000 11:52:03 -0500 Received: (from magill@localhost) by falstaff.isc-net.upenn.edu (8.11.1/8.10.1) id eB1Gpxf09655; Fri, 1 Dec 2000 11:51:59 -0500 (EST) Date: Fri, 1 Dec 2000 11:51:59 -0500 (EST) From: "William H. Magill" Message-Id: <200012011651.eB1Gpxf09655@falstaff.isc-net.upenn.edu> To: axp-list@redhat.com Subject: Re: scsi HD performance? 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.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Rob Byrnes wrote: > > At 02:10 1/12/2000 -0600, W Bauske wrote: > >Averages are about 36MB/sec vs 30MB/sec. You only buy > >Cheetahs if your number one problem is random small accesses. > >Wes > > Mostly for my own information, aren't most desktop systems/workstations > using random small accesses? Shame these drives are so darn expensive >:) would _really_ make Linux fly! > Rob With the exception of Humungous Database Servers, virtually all computers deal in small, random disk accesses -- things like web servers or news servers, mail servers, general purpose time-sharing machines, DNS servers, and anything that EVER uses swap (aka Virtual Memory). The emphasis is on random, unless the box is dedicated to only ONE application. And even "gifs" are small. Streaming video and I assume audio, are (I guess) based on humungous block sizes.... but then again maybe not, if the "stream" is optimized for a 33.6K modem. [Video/graphics editing are about the only applications I can think of where there are huge files, which are not databases.] [And Humungous Database Servers cram everything into memory for performance reasons anyway. Ever see an Oracle server "boot up" and take 30 or 60 minutes just to load the data into many gigs worth of main memory? All they ever do is write to disk; they "never" read from disk once the server is loaded. ANY disk I/O is simply too slow.] But small is relative to track size. The real I/O size that matters is the size being written to or read from the disk. I'm going into dusty corners of the brain now so I may not have the details right... Back in the old days of Ultrix 4.4 (circa 1992?), they (Eric Schott, I think) discovered that deep down in the bowels of the I/O driver, the size of reads and writes was something like 512K, so to write a single 8K page of memory to disk took 16 I/Os! That small size made sense back when track sizes were only 2 or 3 times block sizes. But when track sizes grew to 100+ times block sizes, the number of actual I/Os necessary to read or write a single track became a BIG issue. The end result was that drivers were modified and reads and writes chained together to more closely approximate the capabilities of the hardware. Cutting down on the number of I/Os dramatically reduces code path length at the driver level, and hence increases performance. Not to mention the idea that as one should be able to read or write an entire track at one pass means that one can read/write 100 blocks at a time with one I/O. [And this has nothing to do with on-disk caching, this is all OS level stuff.] One assumes that Linux is not simply copying the old BSD implementation (which is what Ultrix was based on), but did build from current (now 10 year old) technology improvements. [The fact that EVERYBODY still talks in units of 512 bytes is one of the most brain dead things in Unix(tm) today. ...talk about the High Priesthood maintaining job security!][And don't disillusion me and tell me that things REALLY are still implemented based on 512byte records and that's why there are constantly buffer-overrun security holes and the like.] -- www.tru64unix.compaq.com www.tru64.org comp.unix.tru64 T.T.F.N. William H. Magill Senior Systems Administrator Information Services and Computing (ISC) University of Pennsylvania Internet: magill@isc.upenn.edu magill@acm.org http://www.isc-net.upenn.edu/~magill/