🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Evan Champion Thu, 06 Feb 1997 00:00
Optimum RAID block size?
#14806
Author: Evan Champion
Date: Thu, 06 Feb 1997 00:00
7 lines
781 bytes
Has anyone worked out what the optimum RAID-0 block size is for a mixed 
reader/feeder system?

Evan

Re: Optimum RAID block size?
#14805
Author: Matt Dillon
Date: Thu, 06 Feb 1997 00:00
28 lines
1611 bytes
:In article <32FA35F5.5FAC@synapse.net>,
:Evan Champion  <evanc@synapse.net> wrote:
:>Has anyone worked out what the optimum RAID-0 block size is for a mixed 
:>reader/feeder system?
:>
:>Evan

    I dunno re: the RAID designations, but what you generally want to
    do is stripe the disks (plural) using a fairly large stripe size... I use
    2 cylinders, in order to concentrate the I/O operations related
    to a single file to a single disk.  With news, linear transfer
    performance is meaningless.  The *only* thing you care about is 
    the seek load and filesystem transaction rate.

    Some people, most noteably Karl, prefer setting up a completely 
    separate partition on each physical disk and link them together
    with softlinks to make recovery easier.  I, personally, just
    stripe the disks into one big spool.

    For low-level disk I/O, 4K is usually the optimal block size.  I use 4K
    blocks and a 512 byte fragment size with ufs.  However, if you are
    running NFS, then all bets are off.

					-Matt


Re: Optimum RAID block size?
#14848
Author: Anthony Talltree
Date: Fri, 07 Feb 1997 00:00
32 lines
1679 bytes
>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?

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
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?











Re: Optimum RAID block size?
#14852
Author: bill davidsen
Date: Fri, 07 Feb 1997 00:00
24 lines
1523 bytes
In article <32FA35F5.5FAC@synapse.net>,
Evan Champion  <evanc@synapse.net> wrote:
| Has anyone worked out what the optimum RAID-0 block size is for a mixed 
| reader/feeder system?

As you increase the size you improve performance for single large
files, while as you decrease you get a better spread of seeks (but
more of them) over all heads. In other words, there is no one single
"right" number, it depends on your readers, max article size, disk
geometry...

The old rule was some multiple of the size of a cylinder. If you
have drives which have fixed cylinder size from inner to outer this
is still not a bad rule, although caching drives have made it less
important. Just don't make it too small.
-- 
bill davidsen (davidsen@tmr.com)
  Company policy prevents me from commenting on the performance of
this distributed database. However, the machines on which it runs
are called bottleneck and roadblock.


Re: Optimum RAID block size?
#14855
Author: Joe Greco
Date: Fri, 07 Feb 1997 00:00
58 lines
3163 bytes
In news.software.nntp article <gergE57uCJ.E98@netcom.com>, gerg@netcom.com (Greg Andrews) wrote:
:dillon@flea.best.net (Matt Dillon) writes:
:>:In article <32FA35F5.5FAC@synapse.net>,
:>:Evan Champion  <evanc@synapse.net> wrote:
:>:>Has anyone worked out what the optimum RAID-0 block size is for a mixed 
:>:>reader/feeder system?
:>:>
:>:>Evan
:>
:>    I dunno re: the RAID designations, but what you generally want to
:>    do is stripe the disks (plural) using a fairly large stripe size... I use
:>    2 cylinders, in order to concentrate the I/O operations related
:>    to a single file to a single disk.  With news, linear transfer
:>    performance is meaningless.  The *only* thing you care about is 
:>    the seek load and filesystem transaction rate.
:>
:
:In past discussions on this newsgroup, the general consensus was that
:stripe sizes around 1 cylinder give good performance (for the reason
:Matt gives above).
:
:Recently, Jerry Aguirre said he uses a cylinder *group* (16 cylinders
:on many systems) to also concentrate I/O operations for files related
:to each other (by virtue of existing in the same directory).

I've been telling people that on the FreeBSD mailing list for quite some
time now  :-)

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...  which 
means that if you stripe on CG boundaries, in general you have a
decent chance of involving just a single mechanism in any given file
access.

That gives you concurrency, because then the other mechanisms can be
doing their own thing(s).

I do not believe in striping a dozen drives into a single mega monster
news spool, but I very often stripe a pair of drives and then do the
symlink thing.  When you stripe a pair of 9ms drives (let's say the
nice Seagate ST31055N's), you end up with a "drive" that has about
6ms access time (theoretically a tad about 4.5ms, but this is real
world), 5400 RPM, and 1MB cache, when you look at the average
performance.

... JG

Re: Optimum RAID block size?
#14922
Author: bill davidsen
Date: Mon, 10 Feb 1997 00:00
42 lines
2741 bytes
In article <5dfljq$g9o@earth.alpha.net>, Joe Greco <jgreco@ns.sol.net> wrote:
| In news.software.nntp article <gergE57uCJ.E98@netcom.com>, gerg@netcom.com (Greg Andrews) wrote:
| :dillon@flea.best.net (Matt Dillon) writes:

| :Recently, Jerry Aguirre said he uses a cylinder *group* (16 cylinders
| :on many systems) to also concentrate I/O operations for files related
| :to each other (by virtue of existing in the same directory).

| 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...  which 
| means that if you stripe on CG boundaries, in general you have a
| decent chance of involving just a single mechanism in any given file
| access.

The problem is that the directory is created when the first entry is
made, and the file content is place where there's room when the file
comes in, and the directory entry only points to an inode, and cross
posted articles appear in multiple directories... In other words, I
wouldn't bet too heavily on directory entries and file content and
inodes being close to one another in a system which has stuff coming
into every directory all the time.

Some of this depends on implementation, there are a lot of UNIX
filesystems, but they all seem to share a pointer to an inode in the
directory, and a pointer to the content in the inode.
-- 
bill davidsen (davidsen@tmr.com)
  Company policy prevents me from commenting on the performance of
this distributed database. However, the machines on which it runs
are called bottleneck and roadblock.

Re: Optimum RAID block size?
#14924
Author: 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

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads