🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #6426

Re: cyclic news file system - two interesting quirks

#6426
From: Mark Delany
Date: Tue, 09 Apr 1996 00:00
76 lines
3263 bytes
brad@clarinet.com (Brad Templeton) writes:


>the trouble to build an overview file that is either entirely contiguous,
>or is stored in large blocks, like 16K at a time (about 40 article headers
>per 16K block on a typical system.)  Perhaps even 32K

I agree that overview access needs to be nice and fast.

>You do *not* want to have an overview read skip all over the disk for each
>1K block of overview.

True. I've settled on 4K for now as an arbitrary number to get things
kicking, but it could be bigger.

But...

>In fact, ideally you want an overview format with a header table at the
>front, with seek addresses, so to read an article, you read the overview
>header table (cached if possible), get the seek address of the overview entry,
>read that, get the seek address/coordinates of the article, and read that.

.. doesn't this description imply skipping all over the disk? If you
have a table of seek addresses for the article *and* the overview
entry, doesn't reading even the overview entry imply skipping all over
the disk?

>Or, of course, in reading a newsgroup, you want to read the overview entries
>of all the new articles, plus, in some cases the references lines of their
>predecessors.

My plan of attack is to embed the overview entry with the pointer to
the article, eg:

.-----------------------------------.   <----Start of NOV data for group X
|0001 AAAAAA NOVNOVNOVNOVNOVNOVNOV  |
|0001 AAAAAA NOVNOVNOVNOVNOVNOVNOV  |
|0001 AAAAAA NOVNOVNOVNOVNOVNOVNOV  |
|....                               |
|                                   |
|00xx                               |
.-----------------------------------.


Where AAAAA is the pointer to the article and NOVNOVNOV is the
variable length overview data (ie the line currently written into
.overview file). Thus each slurp of data gets everything but the
article proper.

The only question is how big the block is. If it's too large, I
maintain that read and updating it *may* cost more than the win from
the contiguous read. What too large is, of course, an interesting
question. I don't pretend to know what the correct value is yet or
even it it's the same the world over.

Now, If I understand you correctly, you plan to go:


.------------------.   <----Start of NOV data for group X
|0001 AAAAAA NNNN  |
|0002 AAAAAA NNNN  |
|....              |
|                  |
.------------------.

Where NNNN is a pointer off to the overview data. Is that what you
mean? If so, isn't that ultimately more seeks depending on the NOV
fetch rate?


Regards.




Technical Details
Message-ID: <4kc7e5$1cq@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> <DpHn52.GDv@clarinet.com> <4k8iaj$neb@bushwire.mira.net.au> <DpKDKs.Hz4@clarinet.com>

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