Thread View: news.software.nntp
6 messages
6 total messages
Started by Steve Lalonde
Wed, 30 Jul 1997 00:00
optimum interleave for ccd news spool
Author: Steve Lalonde
Date: Wed, 30 Jul 1997 00:00
Date: Wed, 30 Jul 1997 00:00
31 lines
1247 bytes
1247 bytes
Hi All Im getting conflicting advice on what the best interleave is using freebsd ccd for my news spool the man page for ccd says news spool should be a large interleave BUT im being told to use as small as i can by another news admin. current settings are name interleave flags devices ccd1 2048 none /dev/sd2e /dev/sd3e 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 this is running freebsd 2.2.2 and inn 1.5.1 so whats the best interleave? what flags should i use? cheers in advance Steve
Re: optimum interleave for ccd news spool
Author: Matt Dillon
Date: Wed, 30 Jul 1997 00:00
Date: Wed, 30 Jul 1997 00:00
55 lines
2566 bytes
2566 bytes
:In article <5rmrcq$js4$1@energise.enta.net>,
:Steve Lalonde <steve@enta.net> wrote:
:> Hi All
:>
:>Im getting conflicting advice on what the best interleave is using freebsd
:>ccd for my news spool
:>
:>the man page for ccd says news spool should be a large interleave BUT im
:>being told to use as small as i can by
:>another news admin.
:>
:>current settings are
:>name interleave flags devices
:>ccd1 2048 none /dev/sd2e /dev/sd3e
:>
:>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
:>
:>this is running freebsd 2.2.2 and inn 1.5.1
:>
:>so whats the best interleave?
:>what flags should i use?
:>
:>
:>cheers in advance
:>
:>Steve
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.
I use 2048 sectors myself, but a number of people recommend even
larger interleaves... 4096 or even 8192.
Under FreeBSD 2.2.2 I use: rw,noatime,async for my spool and don't do
anything special for the partition containing the history file and
the rest of the news system.
I usually set the filesystem to optimize for time (in tunefs).
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. Optimizing
for time via tunefs and the use of an async mount in the fstab seems
to make a big difference. However, you should definitely not *start*
with an async mount until you are sure you have a stable system.
-Matt
Re: optimum interleave for ccd news spool
Author: Alexis Rosen
Date: Wed, 30 Jul 1997 00:00
Date: Wed, 30 Jul 1997 00:00
52 lines
2907 bytes
2907 bytes
dillon@best.net (Matt Dillon) writes: >:Steve Lalonde <steve@enta.net> wrote: >:>Im getting conflicting advice on what the best interleave is using freebsd >:>ccd for my news spool >:> >:>the man page for ccd says news spool should be a large interleave BUT im >:>being told to use as small as i can by >:>another news admin. >:>[...] > 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. > I use 2048 sectors myself, but a number of people recommend even > larger interleaves... 4096 or even 8192. Matt's right. I did extensive testing of ccd under NetBSD, which will work just about the same way. If you think about what's actually happening to the disks, you'll see why this makes sense. You don't want to engage two spindles in order to read one article. Small interleaves help when you're trying to maximize bandwidth, which will only matter with large files (and then only when the buffer cache doesn't help). So if you try to read a 200MB file, you'll get max performance with a smaller stripe size. Likewise on writes, assuming you exceed the free space in the buffer cache. Since news doesn't do this, you don't want this type of setup. What I found interesting was that a 1MB stripe was significantly faster than a 64Kb or 128Kb stripe when reading a random collection of 1,3, and 7KB files. This may or may not have to do with the location of the inode vis-a-vis the file itself. Also, bizarrely enough, on disks with a "physical" track size of 126 blocks, 126-block stripes were much faster than 128-block stripes. This seems odd since there really is no one physical track size on modern ZBR disks. BTW, 2 and 4-MByte stripes didn't make any difference, and you started to lose big when dealing with large files since most reads lost the benefit of the striping. /a --- Alexis Rosen Owner/Sysadmin, PANIX Public Access Unix & Internet, NYC. alexis@panix.com
Re: optimum interleave for ccd news spool
Author: Marc Slemko
Date: Wed, 30 Jul 1997 00:00
Date: Wed, 30 Jul 1997 00:00
16 lines
1442 bytes
1442 bytes
In <5rmshr$6u1$1@flea.best.net> dillon@best.net (Matt Dillon) writes: > 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. Optimizing > for time via tunefs and the use of an async mount in the fstab seems > to make a big difference. However, you should definitely not *start* > with an async mount until you are sure you have a stable system. We use async mounted spools too without problems, but do note that if the box _does_ crash at the wrong time (eg. during a fastrm) it can take many hours to get through fsck. We have had it take well over 6 hours, and that was only on around 8 gigs of spool.
Re: optimum interleave for ccd news spool
Author: Werner Cyrmon
Date: Fri, 01 Aug 1997 00:00
Date: Fri, 01 Aug 1997 00:00
78 lines
3113 bytes
3113 bytes
Alexis Rosen wrote: > dillon@best.net (Matt Dillon) writes: > >:Steve Lalonde <steve@enta.net> wrote: > >:>Im getting conflicting advice on what the best interleave is using > freebsd > >:>ccd for my news spool > >:> > >:>the man page for ccd says news spool should be a large interleave > BUT im > >:>being told to use as small as i can by > >:>another news admin. > >:>[...] > > > 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. > > > I use 2048 sectors myself, but a number of people recommend even > > larger interleaves... 4096 or even 8192. > > Matt's right. I did extensive testing of ccd under NetBSD, which will > work > just about the same way. If you think about what's actually happening > to > the disks, you'll see why this makes sense. You don't want to engage > two > spindles in order to read one article. > > Small interleaves help when you're trying to maximize bandwidth, which > will > only matter with large files (and then only when the buffer cache > doesn't > help). So if you try to read a 200MB file, you'll get max performance > with > a smaller stripe size. Likewise on writes, assuming you exceed the > free space > in the buffer cache. Since news doesn't do this, you don't want this > type > of setup. > > What I found interesting was that a 1MB stripe was significantly > faster than > a 64Kb or 128Kb stripe when reading a random collection of 1,3, and > 7KB files. > This may or may not have to do with the location of the inode > vis-a-vis the > file itself. Also, bizarrely enough, on disks with a "physical" track > size of > 126 blocks, 126-block stripes were much faster than 128-block stripes. > This > seems odd since there really is no one physical track size on modern > ZBR > disks. > > BTW, 2 and 4-MByte stripes didn't make any difference, and you started > to > lose big when dealing with large files since most reads lost the > benefit > of the striping. > > /a > > --- > Alexis Rosen Owner/Sysadmin, > PANIX Public Access Unix & Internet, NYC. > alexis@panix.com
Re: optimum interleave for ccd news spool
Author: Anthony Talltree
Date: Sat, 02 Aug 1997 00:00
Date: Sat, 02 Aug 1997 00:00
57 lines
3596 bytes
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.
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