🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5315

Re: How to do a better USENET file system

#5315
From: Brad Templeton
Date: Tue, 27 Feb 1996 00:00
51 lines
3491 bytes
In article <LOC.DnEyLn.39G@cray.com>, Bill Davidson <billd@cray.com> wrote:
>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

NOt a problem.  As noted, there is simply a list of the "least desired"
articles.   You pull "free" blocks from the head of that list.  You can
build the list any way you want, scoring articles based on age, newsgroup,
poster, presence of dirty words, article size, you name it.  Once you score
them you sort the list based on score, and use that as your list.

You only need to do the sort once a day or so, until you have enough items
on the list to handle the most news you might get in a day.
(Or you simply program the system to stop, and rebuild the list if you
ever run out of items.)   If you want to expire some groups in .2 days then
you do need to sort it fairly often, but sorting a list is not that expensive.
The list is just seek addresses and file device codes, you can easily sort
2 million items in ram on a typical machine in a fairly short time.

Or, if you are that concerned, you can code the system to just automatically
promote items with certain scores directly to a mini-list that is
merged into the main list as you go.  You caught onto this below.

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

I don't think it's like a database problem, although database people have
spent lots of time trying to make their systems efficient.

News is unlike other databases.   Stuff goes in one end and goes out
the other, the goal being to use a fixed amount of disk space.  Records
are *never* updated, they are always written in one big thwap, then either
re-used when they expire or deleted due to cancel.


Somebody willing to write a news transport could do this easily.  The
system I describe is really quite simple.  In particular, you can shove
the "hard" problems to the real filesys if you want, as long as they
do not take up much of the load.   Ie. put the growing, changing active
file and growing history or log files in the regular filesys if you want to.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,200,000 paid sbscrbrs.)  http://www.clari.net/brad/

Technical Details
Message-ID: <DnFDuy.Cz9@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
References: <Dn4HrC.KIx@twwells.com> <Dn5KLH.Muy@twwells.com> <DnCo3D.Cz3@clarinet.com> <DnEyLn.39G@cray.com>

Show Full Headers
Complete Article Headers
Message-ID: <DnFDuy.Cz9@clarinet.com>
Subject: Re: How to do a better USENET file system
Date: Tue, 27 Feb 1996 00:00:00 +0000
From: brad@clarinet.com (Brad Templeton)
References: <Dn4HrC.KIx@twwells.com> <Dn5KLH.Muy@twwells.com> <DnCo3D.Cz3@clarinet.com> <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
X-Deja-AN: 141298597
X-original-newsgroups: office.clip.brad
Organization: ClariNet Communications Corp.
Newsgroups: news.software.nntp