🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3813

Re: Sun Online DiskSuite - stripes and interlace value

#3813
From: Jerry Aguirre
Date: Fri, 08 Sep 1995 00:00
60 lines
4014 bytes
In article <DEJx71.EL6@pippen.ub.com> adh@rambla.andr.UB.com (Sandwich Maker) writes:
>i read a sunos tuning paper [by hal stern?] which said that the best
>stripe size is the maximum that can be transferred in a single
>operation, which in sunos4 is 8K*7 for a sun4m and 8K*15 for a sun4c.
>it makes sense to me: anything more takes multiple operations which
>are usually not needed; anything less takes one operation anyway.

I think you are missing an important consideration.  The small stripe
size is only useful for dealing with large files.  By example if you
have a process reading or writing a multi-megabyte file then using an
8K stripe will improve thruput for that file.  This is because it can
be reading/writing from multiple drives in parallel.  While the system,
doing write behind, is flushing one 8K to one of the drives the next 8K
can be written to the next drive and so on.  An example of this might
be a video server trying to display or capture in real time.  A single
disk might not be able to keep up with the data rate.

But a single process reading a large file has very little to do with
news server operation.  The only exception might be expire's processing
of the history file.

Typically incomming news consists lots of small (2.9K average) articles
sprinkled randomly across the disks.  At the same time outgoing feeds
and readers are making more or less random requests to mostly small
articles.

In a news server seek time, not read/write speed, is the critical
consideration.  With a small stripe size you force all the drives to be
involved in each operation.  To write one article they must ALL seek to
that cylinder group.  Then one is updating the inode, one is writing
the directory, and one is writing the article itself.  Then they all
seek off to another cylinder group to do another article.  They can
only do one operation at a time.

With a large stripe size it is likely that one drive can handle a
complete operation on its own.  Ideally the stripe size should be
greater than or equal to a cylinder group.  One disk handles a read or
write of an article.  The other disks can seek off to different
cylinder groups to handle other requests.  If you only have one person
reading or one outgoing feed then this might be slower but for multiple
readers it is going to be faster.

Consider if you have 10 operations and 2 striped drives.  For a small
stripe both drives are needed for each operation and you have 10x2 or
20 seeks.  With a cylinder group size stripe each drive handles one
operation thus you only have 10 seeks.  If there is enough activity
these average out to 5 seeks each.  Thus you can do twice as many
operations.

At least that is my opinion and it is consistant with the standard
advise of using large stripes for small files.  Unfortunately it is a
lot more difficult to create a benchmark for multi-process random IO
than single process sequential IO.  Any dolt can measure how long it
takes to copy a 10 meg file.  Measuring how long it take 10 processes
to each copy 500 2K files is a little more difficult.  The later test
more closely represents the load of a busy news server.

				Jerry Aguirre

Technical Details
Message-ID: <42q9mt$fka@olivea.ATC.Olivetti.Com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.sun.admin.mbox.zip!not-for-mail
References: <4222v0$khk@scapa.cs.ualberta.ca> <42i030$jeo@usenetw1.news.prodigy.com> <k6zqgiqhga.fsf@stoptap.pipex.net> <DEJx71.EL6@pippen.ub.com>

Show Full Headers
Complete Article Headers
Message-ID: <42q9mt$fka@olivea.ATC.Olivetti.Com>
Subject: Re: Sun Online DiskSuite - stripes and interlace value
Date: Fri, 08 Sep 1995 00:00:00 +0000
From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre)
References: <4222v0$khk@scapa.cs.ualberta.ca> <42i030$jeo@usenetw1.news.prodigy.com> <k6zqgiqhga.fsf@stoptap.pipex.net> <DEJx71.EL6@pippen.ub.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.sun.admin.mbox.zip!not-for-mail
X-Deja-AN: 109714091
Organization: Olivetti ATC; Cupertino, CA; USA
Newsgroups: news.software.nntp,comp.sys.sun.admin
Summary: Use large stripe size to optimize seeks