🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #14924

Re: Optimum RAID block size?

#14924
From: Joe Greco
Date: Mon, 10 Feb 1997 00:00
91 lines
5052 bytes
In news.software.nntp article <5dgk6m$ikp@lovecraft.nwnet.net>, aad@nwnet.net wrote:
:>The idea is that you want to complete a single operation with a single
:>drive (where "single operation" is defined as "doing everything needed
:>to get an article").  When you have a filename like
:
:>/news/alt/junk/garb/age/1234
:
:>there's no real good way to do that for the leading components, but
:>FFS optimizations will try to place the directory "age" and the file
:>"1234" within the same cylinder group.  Thinking further about it,
:>one realizes that the chance that the data necessary to traverse
:>"/news/alt/junk/garb" is already in cache is pretty good... 
:
:Why wouldn't the "age" subdirectory of garb thus likely be cached, too?

Because of something called fanout.  For the purposes of this discussion,
I am going to disregard the heavy weighting one would normally give to
"alt", to try to explain the principle.  The concept is still valid even
when considering the alt hier directory.  At the "/news" level, you have a 
directory, maybe 20K, with a thousand entries.  This directory is being 
hit most heavily, perhaps a thousand times a second (and if it isn't being
cached, you are in sorry shape).  Out of this directory, perhaps twenty
subdirectories are being accessed on a routine basis, each of which are 
being hit maybe 45 times a second.  Still often enough to be constantly
cached.  So, for example, "/news/alt", "/news/comp", etc. are cached.  
(On the other hand, "/news/zyxel" probably isn't being cached, since it 
is a branch with a very low level of accesses.)  Now, once again, going
another level deep, if "/news/alt" is hit 45x/sec, and has a thousand
entries, there will probably be (perhaps) a hundred that are being 
accessed on a regular basis.  So "/news/alt/junk" gets hit maybe once
every 4 seconds.  That's still often enough that a machine with
sufficient RAM will keep it cached...  but after this point, it becomes
less certain, because the _rate_ at which accesses to any particular
directory of the thousands of directories at a level are accessed goes
down almost exponentially as the level number increases.

The likelihood of "age" being cached, then, is based on the fact that it
probably has not been accessed within the last half hour or so.  If you
REALLY have tons of RAM, then it probably IS cached.  But most of my
machines only have 256MB.

It's really very simple cache theory.  I'm sure some of the popular OS
design books explain it better than I did.

:With a large stripe size, won't articles that come in during a given interval
:tend to be clustered on a single disk?  Unless outgoing feeds tend to vary

No, unless you are really unfortunate and you are receiving all your
articles in some sorted form.  Around here, we most assuredly do NOT:

rec.sport.basketball.college/134353
comp.sys.amiga.hardware/99716
talk.origins/238388
relcom.commerce.orgtech/125717
rec.sport.basketball.college/134354
rec.humor/185975
pl.comp.pecet/29191
comp.lang.basic.visual.database/36208
comp.os.ms-windows.video/15128
alt.computer.consultants/55751
alt.religion.wicca/69816
alt.planning.transportation/1582
de.comp.sys.amiga.advocacy/9385
alt.life.universe.everything/24182
es.alt.anuncios/13914
misc.industry.insurance/3673

In any case, I still put different hierarchies on different drives, I
merely stripe pairs of drives together to get a faster overall "meta
drive" and then I use many of these to build my real spool.  I don't
use striping as a lazy news admin's "easy way out" of the partitioning
game, I just use it for performance reasons.

:widely in their subscriptions and backlogs, wouldn't this then cause the
:[many] reads to tend to cluster on one disk at a time instead of spreading
:across all of them?

Again, even if that were the case, no:  because if they are so close in
sync that all requests would be coming from that one disk, your OS damn
well ought to be caching that data for you!

The situation that you really want:  a bunch of outbound feeds, all 
keeping pace, so that when you receive an article, the only spool I/O 
involved is to write the article to the disk.  The copies sent to your
peers are done from cache.  The sucky situation is when you have to send
from a copy on disk.

... JG

Technical Details
Message-ID: <5dncdr$qgc@earth.alpha.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
References: <32FA35F5.5FAC@synapse.net> <gergE57uCJ.E98@netcom.com> <5dfljq$g9o@earth.alpha.net> <5dgk6m$ikp@lovecraft.nwnet.net>

Show Full Headers
Complete Article Headers
Message-ID: <5dncdr$qgc@earth.alpha.net>
Subject: Re: Optimum RAID block size?
Date: Mon, 10 Feb 1997 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <32FA35F5.5FAC@synapse.net> <gergE57uCJ.E98@netcom.com> <5dfljq$g9o@earth.alpha.net> <5dgk6m$ikp@lovecraft.nwnet.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: 217801272
Distribution: inet
Sender: joegreco@earth.execpc.com
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp