🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #6544

Re: cyclic news file system - two interesting quirks

#6544
From: Mark Delany
Date: Sat, 13 Apr 1996 00:00
63 lines
3416 bytes
brad@clarinet.com (Brad Templeton) writes:

>In article <LOC.4kc7e5$1cq@bushwire.mira.net.au>,
>Mark Delany  <markd@mira.net.au> wrote:

>There are two things you need to do:

Indeed.

>a) Get a single article, which means read the overview to find the
>seek address of the article text, and seek to that text.   Ideally you
>want to be able to get to the overview for that article quickly, thus
>a seek address directory at some place, the front of the overview, to
>seek directly to any given article.

I can see two access paths here. First, when the reader has the
specific message id, in this case history provides a direct seek
address (where ever you now see a path in history or whatever,
substitute a human readable hex encoded string which contains a
file/drive index, a seek offset and a few other important numbers).

Second when the reader has the article number for a particular group,
it strikes me that the reader is most likely to have the article
number after it has done a GROUP command to nnrpd - sure they can get
it other ways, but this has to be the 99.9% most common sequence.

Thus if an nnrpd server minimally caches the details of the last NOV
data for the group it has read, then it has all the info it needs to
seek directly to the article location as the NOV (News OverView)
record for an article includes the seek address.

In the rare event that a reader requests an article number "out of the
blue", then the NOV will have to be read first to gain the seek
address.

>b) Read a whole series of overview records at once.  You need to seek to the
>first, and then read the rest.   To seek to the first if it's not the first
>in the whole group, you still want a seek address to go their directly.

Agreed.

>Remember overview records are around 340 bytes, so there are only 3 per
>1K disk block.  It is worth getting seek addresses where possible to cut
>down on reads.

I remember. There are also 12 per 4K block and 24 per 8K block. I
don't know why you have this facination with 1K blocks, I reckon
they're too small to be useful for both NOV and article blocks :>

My current library is limited to a unified block size for articles and
NOV and, as I may have mentioned previously, I have tentatively
settled on a unified block size of 4K as that superficially represents
a reasonable compromise between a good article block size and a
reasonable "slurp" size for NOV. But, that's pretty much just my "best
guess", it can be changed at compile time if measurements suggests a
better value. Also, there is no fundamental reason why they have to be
unified, the file structures allow it, it's just the code that
doesn't.


Regards.

Technical Details
Message-ID: <4ko3ql$n9e@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
References: <4k78u1$lbu@bushwire.mira.net.au> <4k8iaj$neb@bushwire.mira.net.au> <DpKDKs.Hz4@clarinet.com> <LOC.4kc7e5$1cq@bushwire.mira.net.au> <Dps8pr.1E4@clarinet.com>

Show Full Headers
Complete Article Headers
Message-ID: <4ko3ql$n9e@bushwire.mira.net.au>
Subject: Re: cyclic news file system - two interesting quirks
Date: Sat, 13 Apr 1996 00:00:00 +0000
From: Mark Delany <markd@mira.net.au>
References: <4k78u1$lbu@bushwire.mira.net.au> <4k8iaj$neb@bushwire.mira.net.au> <DpKDKs.Hz4@clarinet.com> <LOC.4kc7e5$1cq@bushwire.mira.net.au> <Dps8pr.1E4@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: 147283858
Organization: Werple Internet, Melbourne
Newsgroups: news.software.nntp