🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17848

Re: FreeBSD's ccd for striping

#17848
From: Joe Greco
Date: Mon, 19 May 1997 00:00
53 lines
3345 bytes
In news.software.nntp article <86iv0l1een.fsf@blah.erols.com>, coneill@blah.erols.com wrote:
: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.

Yes, of course, this is preferable if you're storing things in wire
format...  you may recall that I was one of the folks who strongly
advocated adding this sort of functionality to innfeed as well.

:> 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.

Regardless of that fact, you're still going to win more due to locality of
reference because you will not have two drives seeking to very nearly the
same spot.

As for the size of a namei cache...  well, if someone runs ANY OS (free or
otherwise) outta the box without bothering to tune the key parameters,
they're probably not going to be running striped filesystems anyways.  :-)
My namei cache has a 94% hit rate...  I guess that's not spectacular, but
the machine is handling a tenth of its rated load.  Most reader class
machines I see average around 80%, and if you're in need of a few less
seeks per second, that should be pretty easy to increase (I just doubled
the cache on a box that was running about 75% and now it's about 90%).

: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.

If that's true, it's more of a sad statement about poor OS design than
anything else.  I guess I don't (want to?) believe that, and if its true,
then we need to do something to fix it.

Lots of memory is a Good Thing...  lots of memory to cache is a Very Good
Thing.

... JG

Technical Details
Message-ID: <5lpsi0$an6$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
References: <33714AAE.41C67EA6@maximum.net> <5lcd9t$i12$2@news1.epix.net> <5lcq39$4ae$1@earth.execpc.com> <86iv0l1een.fsf@blah.erols.com>

Show Full Headers
Complete Article Headers
Message-ID: <5lpsi0$an6$1@earth.execpc.com>
Subject: Re: FreeBSD's ccd for striping
Date: Mon, 19 May 1997 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <33714AAE.41C67EA6@maximum.net> <5lcd9t$i12$2@news1.epix.net> <5lcq39$4ae$1@earth.execpc.com> <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-mail
X-Deja-AN: 243064684
Sender: jgreco@earth.execpc.com
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp