Article View: news.software.nntp
Article #44150Re: Q: Wildcard Authentication for Diablo Reader
From: Joe Greco
Date: Thu, 17 Feb 2000 00:00
Date: Thu, 17 Feb 2000 00:00
147 lines
7593 bytes
7593 bytes
In news.software.nntp article <brad-5AD0EC.19580717022000@news.skynet.be>, Brad Knowles <brad@shub-internet.org> wrote:
:In article <38ac286b$0$86644@news.execpc.com>, jgreco@ns.sol.net (Joe
:Greco) wrote:
:
:> Imagine you have four shelves of drives. Each shelf is composed of 9
:> 50GB Barracuda drives. Someone happened to snap a photo of it:
:
: Hmm. I've got a drive array with five SCSI busses internally, and
:currently four drives per bus (it can take a max of six per bus), plus
:one extra for hot spare. Each of my drives is only 18GB in size
:(currently, they only support as large as 36GB).
:
: You've got 1.8TB raw, I've got only 360GB raw.
:
:> Now I have, essentially, a very fast number of
:> small drives for /news. Better, vinum for FreeBSD can optimize reads to
:> come from either metadevice... very fast.
:
: Fascinating. Out of curiosity, how large do you expect your history
:to get?
Do I expect it to get? Why not just ask how big it is. On the binaries
server, not real large. The 750GB binaries server is
-rw-r--r-- 1 news news 673595408 Feb 17 13:53 /news/dhistory
while the 250GB text server is
-rw-r--r-- 1 news news 3228525584 Feb 17 13:53 /news/dhistory
But I have a tendency to use a 64m hash size, which is artificially bloating
the size for the binaries server.
: Unfortunately, I don't think my drive array lets me do a
:configuration like this. ;-(
Sigh.
: Could you do some benchmarking with rawio & postmark, and tell me
:what kind of numbers of transactions per second and what kind of
:throughput you get on your /news partition?
# ./rawio -r -R /dev/vinum/rnews
Random read Sequential read Random write Sequential write
ID K/sec /sec K/sec /sec K/sec /sec K/sec /sec
news 14393.5 900 11796.0 720
# ./rawio -c 128 -p 16 -n 65536 -r -R /dev/vinum/rnews
Random read Sequential read Random write Sequential write
ID K/sec /sec K/sec /sec K/sec /sec K/sec /sec
news 46541.9 711 37292.1 569
# ./rawio -c 128 -p 32 -n 65536 -r -R /dev/vinum/rnews
Random read Sequential read Random write Sequential write
ID K/sec /sec K/sec /sec K/sec /sec K/sec /sec
news 59013.8 905 48887.0 746
All of that looks like crap from a TPS point of view, although the K/s
looks fairly respectable. Now, switch to a model that more closely
resembles history access, and watch this.
# ./rawio -c 1 -p 64 -n 1048576 -r -R /dev/vinum/rnews
Random read Sequential read Random write Sequential write
ID K/sec /sec K/sec /sec K/sec /sec K/sec /sec
news 1941.9 7583 796.2 1555
I blasted six hundred thousand duplicate articles at the machine last
night. It was rejecting them at a rate of a thousand per second.
: I want to compare this with the numbers I got for a memory-based
:filesystem (which is what I use on our news peering server for the
:history file), so that I can have some kind of idea where our
:performance is likely going to need to be in that range.
:
:
: Speaking of which, should I post the results here that I have
:recently turned up? I already posted them to the postfix-users and
:freebsd-stable lists, but I'm wondering if anyone else is interested....
If you want to explain to me how to make postmark pop up numbers that have
any relevance to this discussion, go ahead.
:> This leaves me with about 49GB on each drive. To keep things easy to
:> understand and also to spread the stripe load across the SCSI busses, I
:> then take each vertical column of drives and stripe it into a ~196GB
:> data filesystems. Nine columns, nine filesystems. The number of
:> filesystems is not so large as to be unwieldy, as 18 or 36 might be, but
:> is large enough to allow substantial benefits from parallelization of
:> fsck, etc.
:
: I'll have just four filesystems spread across the five SCSI busses,
:and because this will be my only news spool server, I'll have to use
:RAID-5 for reliability. This cuts me down to 288GB raw.
:
: Even if I could otherwise duplicate your sort of configuration, I
:think I'd have to either go with at least a pair of machines, or with
:RAID-5 on one machine, because I don't think I can afford to have this
:thing go Tango Uniform on me very often.
Of course. :-) This is actually the third binaries server here, and I
won't actually start using the extra capacity until I've got it in at
least a redundant configuration (I like threes myself).
:> I then figure out what newfs parameters to use. I know this'll be
:> binaries, and I know that I'll never get the ratio of inodes to bytes
:> to a point I'd like, so I arbitrarily decide on 2MB since fsck time
:> seems reasonable (only 223,000 inodes per fs).
:
: Hmm. Sounds reasonable, although I think I might be inclined to go
:with some slightly smaller numbers, since my filesystems will be rather
:smaller than yours, and I think I'll have a proportionally higher
:percentage of text articles.
That has so very little to do with it. Diablo can put a large number of
binaries in a single file, or an even larger number of text articles in
a single file. What you need to figure out is how many files per hour
you will be creating.
:> Now I go back and tune my stripe size to the size in sectors of the
:> cylinder group, so that operations within a CG will land on a single
:> drive. That is an optimization to increase parallelization within
:> the filesystem, and has been hashed through here before.
:
: I'll have to go look for that. I don't suppose you have any
:message-ids you could give me?
No, but I summarized the whole goal in that previous sentence. You want
to promote parallelism within the I/O subsystem by forcing a single
mechanism to perform as much of a complete operation as possible -
including the directory lookup. That leaves the other spindles free to do
other things.
: Again, I don't think my drive array lets me do things like this. ;-(
:
:> <A HREF="http://www.nntp.sol.net/fogleg40.wav">
:
: Yeah, it's getting through. It's getting through that I let
:management talk me into what will probably be a bad solution for our
:news spool server. ;-( ;-( ;-(
That's the joy of being a systems architect. Nobody bothers to tell you
the site is swampy until they've poured the basement and it fills with mud.
Send mail, let's talk. You used to annoy me daily in mail, what happened?
;-)
... JG
Technical Details
Message-ID:
<38ac565b$0$187@news.execpc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<87vvl4$dl5$1@nnrp1.deja.com> <9TSq4.35$Yd2.1990@ptah.visi.com> <38ac286b$0$86644@news.execpc.com> <brad-5AD0EC.19580717022000@news.skynet.be>Show Full Headers
Complete Article Headers
Message-ID: <38ac565b$0$187@news.execpc.com> Subject: Re: Q: Wildcard Authentication for Diablo Reader Date: Thu, 17 Feb 2000 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <87vvl4$dl5$1@nnrp1.deja.com> <9TSq4.35$Yd2.1990@ptah.visi.com> <38ac286b$0$86644@news.execpc.com> <brad-5AD0EC.19580717022000@news.skynet.be> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 587062374 Sender: jgreco@earth.execpc.com X-Trace: Tl\okXWcmLgI5[332>a9YkbfNiaEHUgJgRYcgIRLSUEmbm:LM5O]_NeUbBF8am^kQf^H9m16>Q3hmB59UNCXNYIfddDhXSbCd^i Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp X-Complaints-To: abuse@execpc.com