Article View: news.software.nntp
Article #20098Re: 1.5.1 vs. 1.4: Performance [using SGI's XFS]
From: Alexis Rosen
Date: Fri, 01 Aug 1997 00:00
Date: Fri, 01 Aug 1997 00:00
72 lines
4752 bytes
4752 bytes
In <5rqgr6$rd1$1@synthemesc.insync.net> aos@insync.net writes: >Stephen R. van den Berg <srb@cuci.nl> wrote: >> I mean, when you're striping, both heads tend to seek to the same spot >> (shortly after each other). The bottleneck usually isn't throughput, it's >> seektime, and you're effectively giving away performance by striping, >> because all heads have to seek to nearly the same spot. >The idea of striping isn't designed to work within one drive mechanism. >You're supposed to stripe multiple drives (and preferably over multiple >controllers as well). That way you gets heads on *different* drives going >to different places. In theory, if you have all sequential access, you'll >run through all the drives in order, so the first drive will be more than >free by the time a request gets back to it. I don't understand how this is relevant to Stephan's statement. He's talking about multiple disks. >> If, OTOH, you were to simply concatenate partitions into one big >> partition/filesystem, then the filesystem should (more or less) scatter >> the files and directories across the disk, and you end up with more >> independent seeks on the different disks. I.e. the benefit from the >> concurrent seeks to different spots should be more apparent. >Nope. If you concatenate, you end up with a single file being on multiple >cynlinders on one drive mechanism. Therefore a request for that file is >going to make that ONE mech doing a lot of seeking. If instead we stripe >the file across eight mechs, each one does a LITTLE work, and is ready for >the next requst in a very small amount of time. This is wrong. On a news filesystem, most articles are small and will be read out of one cylinder (in fact, out of one block, although that is changing with all the extra headers, MIME crap, etc.). Therefore, assuming normal block size and fs layout policy, one seek will be enough to read the file, after a seek to an inode that is probably close by. This is best done by *one* head since the total disk time taken by one head doing a random seek and then another seek that will likely be either in track cache or a short track-to-track seek is less than the total time taken by two drives each seeking once randomly. Calculation gets a little tougher for files that are several blocks long but the principle remains the same. Of course, for *long* files (typical 500K binary part, say), small stripes give you a throughput advantage *for that one file* since two (or more) heads are reading the file simultaneously. But there's no production news system on earth that's only reading one file at once. You net throughput across all activities will still go down in this case, using small stripes, for one of the same reasons it does with small files- if it's all on one drive, you get mostly track-to-track seeks through the file. But the loss is smaller per-file in this case, especially with really big files (> a few MB, say- of which news has few in the spool). Nevertheless, catenation isn't the best solution either. That's because you may find that your filesystem lays out your disk usage unevenly between the two disks. Some fses may even prefer what they think are "outer" tracks of your catenated drive, which is a clear lose. The best solution is wide stripes. .5-1MB seems to be the best. This big and you don't get multiple heads seeking a single article, typically- and when they do, you'd likely have had long seeks on a single drive anyway so you don't lose much (or at all). On the other hand, fs layout policies won't tend to load one disk more than another. Larger stripes will perform equally well for small files but will lose substantially on really big files (though you may not care about them in a spool). Larger stripes may also be harder for the OS (or HW RAID controller) to buffer well. I posted another article on this topic a day or two ago, which might be worth reading if you haven't yet. /a
Technical Details
Message-ID:
<5rrp64$gu3@panix4.panix.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<5rj696$k9q@news-central.tiac.net> <5rkrnjINNejl@stumble.cis.ohio-state.edu> <5rlnn0$ej7@fu-berlin.de> <5rqdph$u4b$1@hera.fw.cuci.nl> <5rqgr6$rd1$1@synthemesc.insync.net>Show Full Headers
Complete Article Headers
Message-ID: <5rrp64$gu3@panix4.panix.com> Subject: Re: 1.5.1 vs. 1.4: Performance [using SGI's XFS] Date: Fri, 01 Aug 1997 00:00:00 +0000 From: alexis@panix.com (Alexis Rosen) References: <5rj696$k9q@news-central.tiac.net> <5rkrnjINNejl@stumble.cis.ohio-state.edu> <5rlnn0$ej7@fu-berlin.de> <5rqdph$u4b$1@hera.fw.cuci.nl> <5rqgr6$rd1$1@synthemesc.insync.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 261113454 Distribution: inet Organization: PANIX Public Access Internet and Unix, NYC Newsgroups: news.software.nntp