🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5508

Re: How to do a better USENET file system

#5508
From: bill davidsen
Date: Mon, 04 Mar 1996 00:00
38 lines
2516 bytes
Actually, the MBS BBS I wrote some years ago did this sort of thing,
and it worked nicely. I had a fixed block size for an article (oh
no, wasted space) and put large articles in their own files. Then
things were indexed for lookup by file and offset.

The secret of doing this for news would be to do expire at post
time. When the article is put in a file, the file chosen is by
expiration time. I think you need resolution better than one day, so
you might generate ten files for each day you want to expire. At the
appointed time you purge the index entries from the database and
release the file.

This has several advantages, one being that the cpu load of expire
(what little it is) falls over the entire day, the actual release is
the main file plus as many large articles in their own files,
typically far less disk and directory i/o than current practice.

While every UNIX I've used will allow you to truncate the end off a
file, dropping the head is another matter, with various non-portable
approaches available. Just getting rid of the entire file is easier.

If you like the "one big file" approach, then you can simply keep a
bitmap of free space, and every time you release the last article
block you check to see if a truncate is appropriate. I really like
the file as an expiration unit better.

In either case, if you get short of disk you can just expire early.

All of these approaches are based on the premise that you have
decided to use NNTP reading only, something I think is a good admin
decision in any case.
--
	-bill davidsen (davidsen@tmr.com)
Behavioral scientists at Harvard University have proven that there
are six things a man must do to keep a woman happy. They have also
determined that no one has any idea what these things are.

Technical Details
Message-ID: <4hf4gp$29nk@usenetw1.news.prodigy.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> <4h9put$5jd@the-fly.zip.com.au> <DnoG2v.67M@clarinet.com> <4he4fq$9vc@bushwire.mira.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <4hf4gp$29nk@usenetw1.news.prodigy.com>
Subject: Re: How to do a better USENET file system
Date: Mon, 04 Mar 1996 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <Dn4HrC.KIx@twwells.com> <4h9put$5jd@the-fly.zip.com.au> <DnoG2v.67M@clarinet.com> <4he4fq$9vc@bushwire.mira.net.au>
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: 141951009
Distribution: inet
Organization: TMR Associates, Schenectady NY
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com