🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by markt Wed, 06 Sep 1995 00:00
Re: Sun Online DiskSuite - stripes and interlace value
#3805
Author: markt
Date: Wed, 06 Sep 1995 00:00
22 lines
1662 bytes
In article <42i030$jeo@usenetw1.news.prodigy.com> davidsen@tmr.com (bill davidsen) writes:
> 
> After determining that most of the articles are <4k, I tried using a
> 4k stripe for articles, instead of the 16k I had been using before.
> Does not seem to be a win! There are enough large ones to count, I
> believe. I have not tried >16k yet.

We tried various stripe sizes here and spent a few months shuffling news
machines and feeds around while we experimented.  The default for our
most common disk-pack (16Mb on a 4x2.1Gb?) was useless for news.  Sun
told us they consider the current default a bug and will be reducing it
drastically in the next version.  By just concatting the disks we got
very good results but have now settled on an 8kb stripe which gives what
appear to be perfect results.

Mark.

-- 
Unipalm PIPEX, 216 The Science Park, Cambridge, UK     Work: markt@pipex.net
Phone: +44 1223-250122, Fax: +44 1223-250121             Play: mark@kram.org

Re: Sun Online DiskSuite - stripes and interlace value
#3813
Author: 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

Re: Sun Online DiskSuite - stripes and interlace value
#3827
Author: Jerry Aguirre
Date: Tue, 12 Sep 1995 00:00
12 lines
1256 bytes
In article <k6zqgiqhga.fsf@stoptap.pipex.net> markt@pipex.net writes:
>drastically in the next version.  By just concatting the disks we got
>very good results but have now settled on an 8kb stripe which gives what
>appear to be perfect results.

Could you post the criteria you used to decide which stripe size was
best?  It would seem difficult to come up with a consistant test that
would reproduce typical news server load?

Were you just trying to balance the disk IO activity?

Re: Sun Online DiskSuite - stripes and interlace value
#3838
Author: Ragnar Lonn
Date: Sun, 24 Sep 1995 00:00
56 lines
3372 bytes
In article <43vc6q$lsg@euas20.eua.ericsson.se>,
   per@erix.ericsson.se (Per Hedeland) wrote:
>[ Bogus Distribution: inet removed ]
>
>In article <43um8e$eot@news.bu.edu> cball@bu.edu (Charles Ball) writes:
>>This thread is fascinating, but I've been unwilling to try striping
>>newsspool disks to date.  It seems to me that superblock updates of a
>>single [virtual] news partition would swamp the I/O capacity of the
>>first drive for new articles.  Has this been a problem in practise?
>
>Certainly not swamping, but it is quite noticeable - here's one data
>point:
>

<..cut..>

It's funny, I can't see any noticeable difference between the
disks in the array we have. Iostat's values seem to vary pretty much
though so I'm going to make a script that collects stats frequently 
and reports the averages over a short period of time I think. Anyhow, 
this is what I get on our Sparc 10 running Solaris 2.4 with approx. 30 
readers (3-4 reading over NFS and the rest over NNTP) and 8 open connections 
to other systems, feeding us or being fed by us. 

The disks sd8, sd10-sd13 constitute the array. sd3 is where I keep
log- and history files. The first values from iostat shows that since
the machine was rebooted the disks in the array have a pretty evenly
distributed load, being busy 23-25% of the time. How come sd8, which is
the first drive in the array, doesn't show more activity if superblock
updates causes such heavy I/O?

> uptime
  7:55pm  up  4:07,  2 users,  load average: 0.95, 1.00, 1.07
> iostat -x 5 2
                                 extended disk statistics
disk      r/s  w/s   Kr/s   Kw/s wait actv  svc_t  %w  %b
sd0       4.3  6.8   43.1  195.7  0.0  0.8   76.1   0  16
sd10     11.6  5.3  103.8   31.6  0.1  0.3   27.7   2  23
sd11     11.9  5.5  107.5   34.7  0.2  0.4   30.8   2  25
sd12     11.6  5.8  105.6   36.5  0.2  0.4   29.0   2  24
sd13     11.4  5.2  103.7   33.1  0.1  0.3   27.7   2  23
sd3       5.7  1.7   26.6   33.3  0.0  0.1   17.2   0   9
sd8      11.8  5.5  106.0   33.8  0.2  0.4   29.6   2  24
                                 extended disk statistics
disk      r/s  w/s   Kr/s   Kw/s wait actv  svc_t  %w  %b
sd0       8.0 13.4   55.7  430.9  0.0  1.6   73.9   0  31
sd10     10.6  7.8   68.2   39.3  0.0  0.3   17.7   1  24
sd11      8.2  4.4   55.1   14.8  0.0  0.2   17.5   0  19
sd12      7.6  4.2   43.1   17.6  0.0  0.2   13.4   0  15
sd13     11.0  6.8   62.4   36.5  0.0  0.4   20.6   1  26
sd3       1.8  1.8   11.6    9.4  0.0  0.1   17.4   0   6
sd8       9.4  6.0   57.1   33.1  0.0  0.3   18.7   1  20



Re: Sun Online DiskSuite - stripes and interlace value
#3839
Author: James_Mathiesen
Date: Mon, 25 Sep 1995 00:00
32 lines
2316 bytes
>OK, my data was from a system running SunOS 4, like the others that I
>have set up a News spool with ODS on (and which showed similar results).
>I guess it's possible that Solaris 2 is somehow "smarter" about this,
>though I don't really see how, if the imbalance occuring in SunOS 4 is
>really due to superblock updates - of course, AFAIK, that's just a
>theory so far.
>
>What slice size are you using? - If it's very small, I guess the
>superblock (which is 8kB I believe) might end up spread over several
>disks too, in which case you'd probably get a more even but perhaps not
>optimal load (superblock updates would affect multiple disks).

It may not be the superblock at all, it could just be that the inodes
(which are allocated at the start of a cylinder group) are concentrated
on one spindle.

We use a strip of 1 cylinder group and see a reasonable balance of
disk i/o across all drives.  This is under Solaris 2.4 and OLDS 3.0.

The problem with inodes concentrating on one disk can be insidious.  We
started with a 1 cylinder stripe across 4 disks (with 16 cyl/group).  The
first cylinder of every group went on the first disk and the second
cylinder of every group went on the second disk.  The first disk was always
extremeley busy, the second less so and the other two mostly idle.

I went with a cylinder group under the theory that the FFS tries to
store the inode and data for a file within a single cylinder group and
that striping by cylinder group would reduce the average seek distance.

james

Re: Sun Online DiskSuite - stripes and interlace value
#3841
Author: Per Hedeland
Date: Mon, 25 Sep 1995 00:00
30 lines
2137 bytes
In article <446t94$jhc@ets.cis.brown.edu> james@ets.cis.brown.edu (James_Mathiesen) writes:
>It may not be the superblock at all, it could just be that the inodes
>(which are allocated at the start of a cylinder group) are concentrated
>on one spindle.

Yes, that was a previous theory, plausible when I striped across two
disks with interlace 1 cyl and default cyl/group. However here I have a
stripe across 3 disks, with 5 cyl/group (because newfs told me to:-),
still 1 cyl interlace - if you work out the math of that, I think you'll
find that "cylinder group starts" are evenly distributed across the disks.

>We use a strip of 1 cylinder group and see a reasonable balance of
>disk i/o across all drives.  This is under Solaris 2.4 and OLDS 3.0.

Hm, from this admittedly limited sample, there seems to be a trend of
Solaris 2 distributing the load more evenly than SunOS 4... Though I
think I'm getting a "reasonable" balance too, certainly none of the
disks are anywhere near idle - but the load is consistantly somewhat
higher on the first one.

>I went with a cylinder group under the theory that the FFS tries to
>store the inode and data for a file within a single cylinder group and
>that striping by cylinder group would reduce the average seek distance.

Hmm, guess I'll try that next time...

--Per Hedeland
per@erix.ericsson.se

Re: Sun Online DiskSuite - stripes and interlace value
#3846
Author: Ragnar Lonn
Date: Tue, 26 Sep 1995 00:00
43 lines
2466 bytes
In article <4469e4$rk@euas20.eua.ericsson.se>,
   per@erix.ericsson.se (Per Hedeland) wrote:
>In article <444agf$3rs@prometheus.algonet.se>, prl@algonet.se (Ragnar Lonn) 
writes:

>|> It's funny, I can't see any noticeable difference between the
>|> disks in the array we have. Iostat's values seem to vary pretty much
>|> though so I'm going to make a script that collects stats frequently 
>|> and reports the averages over a short period of time I think. Anyhow, 
>|> this is what I get on our Sparc 10 running Solaris 2.4
>
>OK, my data was from a system running SunOS 4, like the others that I
>have set up a News spool with ODS on (and which showed similar results).
>I guess it's possible that Solaris 2 is somehow "smarter" about this,
>though I don't really see how, if the imbalance occuring in SunOS 4 is
>really due to superblock updates - of course, AFAIK, that's just a
>theory so far.
>
>What slice size are you using? - If it's very small, I guess the
>superblock (which is 8kB I believe) might end up spread over several
>disks too, in which case you'd probably get a more even but perhaps not
>optimal load (superblock updates would affect multiple disks).
>

I'm using 8K as the interlace value. I haven't tried other values though
so I couldn't say if things would be different for me with the default size
e.g.

The only thing I miss about OLDS is RAID 5. I want a little data security
without having to sacrifice twice the amount of disk to make a mirror.
Does anyone know if there are any other good software packages that will
let me use RAID 5 also?

Regards,

  /Ragnar Lonn






Re: Sun Online DiskSuite - stripes and interlace value
#3856
Author: Mike Marler
Date: Thu, 28 Sep 1995 00:00
65 lines
3910 bytes
prl@algonet.se (Ragnar Lonn) writes:

I have been watching this debate with much interest, because I will be
striping two 2.1G disk drives in a few days.  In about 2 months, I should
have an older disk pedestal populated with 4 to 6 drives for the same
exercise.

>I'm using 8K as the interlace value. I haven't tried other values though
>so I couldn't say if things would be different for me with the default size
>e.g.

From the "Solstice DiskSuite 4.0 Adminstration Guide" (copyrighted 1995)
Revision A, March 1995, Part No. 802-2442-10.  In chapter 4 on
"Concatenating and Striping", 2nd paragraph, page 52:

"The interlace value for striping is user defined.  The interlace size is
a number (for example 8, 16, 32) followed by either k for kilobytes, m for
megabytes, or b for disk blocks.  The suffix can be either uppercase or
lowercase.  If the interlace size is not specified, the size defaults to
16 Kbytes.  A performance gain occurs when the I/O request is larger than
the intelace size, because more disk arms are used to retrieve data or
multiple requests spread over more disk arms."

What is the average size of an article?  I am starting to think that 8k
seems to be a reasonable choice/tradeoff.  As most of you may know or
would guess, if you decide to change the interlace size, then you have
to backup the present data to another device, reconfigure and restore
your backup.

From"Solstice DiskSuite 4.0 Adminstration Guide", in chapter 9 on "RAID
Devices", paragraphs under heading "Assigning Interlace Values" on
page 158:

"The key to performance using RAID is the interlace value.  The value is
user configurable at the time a metadevice is created.  Thereafter, the
value cannot be modified"

"The interlace value defaults to 16 Kbytes.  This is a reasonable value
for most applications.  If the different components in the RAID
metadevice reside on different controllers and the accesses to the
metadevice are primarily large sequential accesses, then a(n) interlace
value of 32 Kbytes may have better performance."

----------------------------------------------------------------------
Other side issues to this thread...

Another perfromance issue which is mentioned in the guide is performance
being dependent on how many controllers (ie the slowest one hinders
others) are being used for the metadevice (same comments about disk
speeds, as well as, bus capacities.

A side note for all Solaris users, go check this out on the SUN web
server: http://www.sun.com:80/cgi-bin/show?950901/tuning/tuning.html
In particular, checkout "RuleTool" that was put together by Adrian
Cockcroft and Rich Pettit and is "a free performance analyzer".

-------------------------------------------------------------------------

Cheers, Mike
-- 
Mike Marler                          Information Technology, Georgia Tech
mike.marler@oit.gatech.edu           Atlanta, Georgia  30332-0715
(I got grey hair when I joined the ACC and saw Michael Jordan. - Bobby Cremins)

Re: Sun Online DiskSuite - stripes and interlace value
#3859
Author: Heiko W.Rupp
Date: Fri, 29 Sep 1995 00:00
17 lines
1420 bytes
marler@prism.gatech.edu (Mike Marler) writes:

>What is the average size of an article?  I am starting to think that 8k

It is about 2.5kB in text groups and much larger in binary groups.

>seems to be a reasonable choice/tradeoff.  As most of you may know or

If I understand right then most articles will be on one arm anyway.

-- 
Heiko W.Rupp        Gerwigstr.5        D-76131  Karlsruhe    +49 721 9661524
Flirt
Der Flirt ist die Kunst, einer Frau in die Arme zu sinken, 
ohne ihr in die Haende zu fallen              --   Sacha Guitry

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