🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5311

Re: How to do a better USENET file system

#5311
From: Bill Davidson
Date: Tue, 27 Feb 1996 00:00
78 lines
4933 bytes
In article <DnCo3D.Cz3@clarinet.com>, Brad Templeton <brad@clarinet.com> wrote:
>It's not hard to do a more efficient USENET file system.

Maybe harder than you think.

>When a new article (or article batch if you want to be real efficient)
>comes in, you scan the list of oldest articles for one near the end that
>is of similar or slightly larger size.  You do some blocking to make this
>very likely to be an old article.    And you then thwap your new article,
>or batch, down on top of that old article.   A single seek and a single
>write call.   Then you record the seek address in an overview/header
>database that you are building elsewhere, either on your raw disk or in
>the real filesystem.

The thing is, I've gotten used to the relatively modern convenience of
expire times based upon group name/hierarchy.  At my site, local groups
and comp.unix* get 7 days.  alt.binaries and comp.binaries get 0.75
days.  The rest of comp gets 3 days and everything else gets 2 days.  I
like this ability very much.  Things more relevant to our business are
available for longer and frivolous or trival junk wastes as little
space as I can get away with without getting rid of it altogether.

>Of course you have to write an NNTPD to read from this, and some debug
>tools to let people poke around articles manually.  But you simply can't
>get any more efficient than this without going to some fancy caching.
>
>(With a fancy cache, you can try to group articles, so that you do only
>one seek and write for groups of articles, and quite possibly, also for
>feeding.)

Any new storage system that doesn't look like the current group-names-
into-directory-names method is going to need a new nntpd/nnrpd.  I
don't see that as being as much of a big deal as figuring out what
really is the best way to do it.

I like the idea of expiring as news comes in to keep the disk usage
maximal but it kind of makes it hard to maintain flexibility in the
expiry.  I suppose your system could do this if you set an expire
time based upon a configuration file in your list of files as they
came in.  The list could be sorted by expire date which ends up being
more of a suggestion than an actual expire date.

I think volume has gotten to the point that it is probably getting
close to time for the database experts and the news experts to get
together and figure out a better way to store news; probably by
designing a news specific file system.  I've got almost 800
subdirectories at the top level of alt.  I've got several groups with
over 1000 articles.  Lookups on these have got to be inefficient with a
standard ufs.

Brian Kantor suggested to me several years ago that news really needs
file system designed specifically for it rather than a standard ufs.
Ufs wastes a lot of space when you have lots of small articles.
Articles are not grouped well and resultant heavy seeking causes a
decrease in performance and in disk lifespan.  Ufs doesn't span
multiple disks well though many systems can now stripe or concatenate
disks.  It'd be nice if the news system could simply be told to use
disks x, y, and z without the mess of stripes etc.  This would also
allow you to lose a disk and only lose the news on that disk; you could
keep the news on remaining disks.  With stripes and concats you
generally lose the whole thing and hardly anybody's crazy enough to
back up a news spool partition anymore.  All those small files take too
long to back up and too long to restore.  Even though news is not
really that important, it still sucks when you lose it all.

All of the big database companies have taken to making their own file
systems for performance reasons.  Why not news?  Of course, the big
database companies have a lot of resources to design these things.
USENET only has volunteers.  I get the impression that not that much
work is even being done on the two major systems anymore (Cnews/nntpd &
INN).  Somebody will have to put a lot of time into this and integrate
it into at least one of these systems (preferably INN, which seems to
be the future of USENET transport).  I think it will be a while before
someone is willing to really do this.

--Bill Davidson

Technical Details
Message-ID: <DnEyLn.39G@cray.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: <Dn4HrC.KIx@twwells.com> <4gfi22$evb@news.inc.net> <Dn5KLH.Muy@twwells.com> <DnCo3D.Cz3@clarinet.com>

Show Full Headers
Complete Article Headers
Message-ID: <DnEyLn.39G@cray.com>
Subject: Re: How to do a better USENET file system
Date: Tue, 27 Feb 1996 00:00:00 +0000
From: billd@cray.com (Bill Davidson)
References: <Dn4HrC.KIx@twwells.com> <4gfi22$evb@news.inc.net> <Dn5KLH.Muy@twwells.com> <DnCo3D.Cz3@clarinet.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: 141273868
Sender: news@cray.com (USENET Admin)
X-nntp-posting-host: billd
Organization: Cray Research Inc., San Diego CA, USA
Newsgroups: news.software.nntp