Article View: news.software.nntp
Article #17769Re: FreeBSD's ccd for striping
From: Joe Greco
Date: Wed, 14 May 1997 00:00
Date: Wed, 14 May 1997 00:00
77 lines
4341 bytes
4341 bytes
In news.software.nntp article <5lcd9t$i12$2@news1.epix.net>, mibsoft@epix.net (Forrest J. Cavalier III) wrote:
:In article <5lbq4h$emp$1@scanner.worldgate.com>, marcs@znep.com wrote...
:>
:>In <86k9l21v3w.fsf@blah.erols.com> coneill@blah.erols.com writes:
:>
:>>Marc Slemko <marcs@znep.com> writes:
:>
:>>> We assume that you have more than one article and more than one
:>>> directory. The point is that you don't care about spreading the
:>>> IO for _one_ article over multiple drives; in fact, you want the
:>>> IO for one article to be on one drive. You care about spreading
:>>> the IO so that 10 articles are distributed across drives.
:>>>
:>>> As with most disk IO, the bottleneck is seeks. You want to minimize
:>>> the seeks. If you spread one article over two disks, you have
:>>> around twice the number of seeks.
:>
:>>However, for 90% of out there, we're doing to do multiple seeks
:>>for most articles that are actually retrieved, even if they're
:>>stored contigously on disk. The reason for this is that most
:>>articles that are read are, on average bigger than the average
:>>article size. (For example, our average article size is ~16k).
:>>The reason that this is a problem is that most dialup customers
:>>out there can only push about 3k/s or so and their TCP window
:>>size is usually between 4-8k. So at the minimum, you're going
:>>to block on writing to the socket at least twice while writing
:>>to the socket. This pretty much guarantees that you're going
:>>to have to wait on the end user and the disk is going to go
:>>on an service other requests, causing you do another seek
:>>next time the nnrpd wakes back up, probably about 1/2 to 1 second
:>>later.
:>
:>But most Unixes will do a readahead and cache it, so a bigger chunk
:>of the article should still be cached when the client is ready to
:>take it. This will not always come into play, but I think it will
:>bias the results a good bit.
:>
:[snip]
:Just my two cents worth....
:
:The QIO routines that are used by nnrpd (and innd, for that matter)
:by default read in the article files 8192 bytes at a time.
Which could, of course, be increased to 32K or 64K... :-)
I was going to respond to Mr. O'Neill's message and indicate that his
reasoning is insufficient and incorrect, at least for the obvious
and common scenario I have in mind...
Let's assume that you have
/news/alt/some/group/1234
Well, on most machines, both /news and /news/alt damn well better be in
cache. Let's also grant that /news/alt/some is as well, but at this
level, it's likely to be up to chance to a degree. Well,
/news/alt/some/group is NOT likely to be in cache, nor is the article
itself... which means that we must move disk heads to both read the
directory AND open the article.
The fact that FFS tries to optimize to place files in the same cylinder
group as the directory becomes a driving reason to set the stripe size
to be {a multiple of,} the cylinder group size. It means that a single
mechanism will be busy to fill the request, and if it has to do a seek
to retrieve the article text after having looked up the dirent, there
is a great locality to the reference and the heads will be there quickly.
Leaving the other drive(s) entirely free to be doing other things.
THAT is the compelling reason to do as I've described. The problem that
Mr. O'Neill has described is not an argument against what I am suggesting,
it is an argument to fix the buffer size so that we reduce the number of
sillyseeks. :-) (Sorry Clayton, no disrespect meant at all, of course)
... JG
Technical Details
Message-ID:
<5lcq39$4ae$1@earth.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:
<33714AAE.41C67EA6@maximum.net> <86k9l21v3w.fsf@blah.erols.com> <5lbq4h$emp$1@scanner.worldgate.com> <5lcd9t$i12$2@news1.epix.net>Show Full Headers
Complete Article Headers
Message-ID: <5lcq39$4ae$1@earth.execpc.com> Subject: Re: FreeBSD's ccd for striping Date: Wed, 14 May 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <33714AAE.41C67EA6@maximum.net> <86k9l21v3w.fsf@blah.erols.com> <5lbq4h$emp$1@scanner.worldgate.com> <5lcd9t$i12$2@news1.epix.net> 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: 241522596 Sender: jgreco@earth.execpc.com Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp