🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20129

Re: optimum interleave for ccd news spool

#20129
From: Anthony Talltree
Date: Sat, 02 Aug 1997 00:00
57 lines
3596 bytes
>:>thats 2 4.5gig seagate baracudas and gives me about 4-5 messages a sec
>:>should soon be running 4 4.5 gig drives so that might help

>:>so whats the best interleave?
>:>what flags should i use?

I'd stick with the 1MB interleave, though I suggest using iostat or sar or
what-have-you to monitor utilization.  I've recently discovered that my
4-way BSDI stripes (cd & splice) distribute load rather unevenly across the
components.  One correspondent suggests that the first superblock is
always going to be on the first disk, inflating its stats; another suggests
that FFS/UFS defaults to putting 16 cylinders in a group, and since
16 mod 4 = 0 most of the inodes end up being on the first component.  I've
certainly noticed that sort of utilization pattern:

     tty          sd2           sd3           sd4           sd5          cpu
tin tout sps tps msps  sps tps msps  sps tps msps  sps tps msps  us ni sy in id
  0    4 592  46 12.4  114  11 12.5   83   7  9.1   59   4  8.8   1 20 22  0 57
  0   16 122  10 12.1   27   4 12.7   18   1 13.3   42   3  7.3   0 19 15  0 67
  0   16 167  12 11.1   67   5 14.9   47   5  8.7   33   2  7.7   0 18 18  0 64
  0   16 192  15 11.4   45   7 14.0   25   2  9.1   34   4  8.4   0 21  9  0 70
  0   16 290  22 12.4   59  13  8.7   19   3  5.4   19   1  5.7   0 31 18  0 51

Possible improvements might include
	o Using an odd (prime?) number of components
	o Using an odd (prime?) -c parameter to newfs

I've often been annoyed by newfs ignoring what I tell it to do, so the first
idea may be the most practical.  I wish this sort of information was more
readily available.

>    For news spools you want a largish stripe to concentrate the
>    operations pertaining to a single file onto a single physical disk.
>    If your stripe is too small, then the system winds up seeking all
>    of the disks for each file rather then just one of the disks, which
>    kinda kills some of the advantages of striping a news spool.

Indeed, though I would imagine that the thresholds might vary depending on
whether or not one keeps binaries groups, and for how long -- the mean and
median article sizes would seem to determine how big a deal this would be.

>    Some people consider an async mount too dangerous.  I've never had 
>    a problem async-mounting the spool, and figure if I lose a bunch of
>    files to fsck after a crash I will simply live with it.

I agree about losing a few files.  The thing that concerns me, though,
is that after a crash (eg., if I give INN 1.5.1/BSDI 3.0 ctlinnd rmgroups
within five minutes of each other) fsck might not be able to clean the
filesystem without manual intervention.  Right now my compromise is to
mount the spool async only for the duration of fastrm.  I've heard people
suggest schemes where the fs stays async all the time but cron runs sync
every handful of minutes.



Technical Details
Message-ID: <5s0kr1$fuk@lovecraft.nwnet.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5rmrcq$js4$1@energise.enta.net> <5rmshr$6u1$1@flea.best.net>

Show Full Headers
Complete Article Headers
Message-ID: <5s0kr1$fuk@lovecraft.nwnet.net>
Subject: Re: optimum interleave for ccd news spool
Date: Sat, 02 Aug 1997 00:00:00 +0000
From: aad@nwnet.net (Anthony Talltree)
References: <5rmrcq$js4$1@energise.enta.net> <5rmshr$6u1$1@flea.best.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 261832707
Reply-To: aad@nwnet.net
Organization: NorthWestNet, Bellevue, WA, USA
Newsgroups: news.software.nntp,comp.unix.bsd.freebsd.misc