Article View: news.software.nntp
Article #17786Re: FreeBSD's ccd for striping
From: coneill
Date: Thu, 15 May 1997 00:00
Date: Thu, 15 May 1997 00:00
47 lines
3095 bytes
3095 bytes
jgreco@ns.sol.net (Joe Greco) writes:
> Which could, of course, be increased to 32K or 64K... :-)
Or removed altogether. The version of nnrpd that I've been running in
production for 1-2 months just mmap's the article and does a write of
the article, letting the OS handle the entire issue. (Yes, the articles
are in wireformat). BTW, I was mistaken. I just checked and our average
article request was 59.6k for yesterday.
> 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.
I assume that you mean the page cache, not the namei cache? Last time I
most of the free OS's had pretty anemic namei caches.
> > 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)
I think you pretty much summarized the issue. (FWIW, I run with a 4mb stripe
size with the drive newfs'ed with the drive geometry faked out so that cyl
groups are 4mb also.) My point was really to point out that, because of
large articles and slow clients, we're all probably doing a lot more seeks
than the previous model suggested.
Technical Details
Message-ID:
<86iv0l1een.fsf@blah.erols.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> <5lcq39$4ae$1@earth.execpc.com>Show Full Headers
Complete Article Headers
Message-ID: <86iv0l1een.fsf@blah.erols.com> Subject: Re: FreeBSD's ccd for striping Date: Thu, 15 May 1997 00:00:00 +0000 From: coneill@blah.erols.com References: <33714AAE.41C67EA6@maximum.net> <86k9l21v3w.fsf@blah.erols.com> <5lbq4h$emp$1@scanner.worldgate.com> <5lcd9t$i12$2@news1.epix.net> <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-mail X-Deja-AN: 241623095 Organization: Erol's Internet Services X-Received-On: 15 May 1997 01:40:29 GMT Newsgroups: news.software.nntp