🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26544

Re: Diablo progress report

#26544
From: Jan-Pieter Cornet
Date: Thu, 26 Feb 1998 00:00
81 lines
4658 bytes
In article <6d1n5m$69o$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
>    I have no plans to implement newnews at this time.

Good. Gives me all the more reason to shout at customers who think
Exchange is so great :)

However, it just occurred to me that newnews might be implemented in
a not too inefficient way if you store the article arrival date
in the overview record, and you'd be quickly able to search to a specific
date... 

>    Well, it depends on the situation.  It is possible to do a pseudo-expire
>    in a fully-slaved configuration simply by synchronizing the article range
>    in the local active file with what's on the spool box.  When coupled with
>    Xref:, this would allow several readers to be synchronized together from
>    one master 'spool'.

Sounds good.

>    My problem is how to 'clean up' old overview info.  My current idea is
>    to group overview info into multiple files per group, each file containing
>    1/4 of the headers, and then simply remove() the stale files.

You mean 1/4 of the articles in a group have their headers stored in one
file? Hm... that'd mean a maximum of 20% unused overview data on disk,
average of 10%... on 4G of overview, that's 400Mb... Hmm... not too bad,
but...

Given that you can search the overview database quickly anyway cause
all important info is in the index file, wouldn't turning 1/4 (4
data files per group) into 1/25th (25 data files per group) be only
neglegibly slower? And that'd give an overhead of around 75Mb on 4G of
overview.

Then again, for innd, expireover is typically only run every day, which
gives a full day of slack, usually on something like a 5 to 7 day expire,
where you can't take the average cause you are sure the worst case is
going to be the moment expireover starts... so even with 4 files you're
better off than innd would be when expireover starts.

>    My current idea on how to index overview information is with a circular
>    per-group-basis fixed-length array.  Consider: 25,000 groups, 1000 articles
>    per group max = 25 million index records.  Each index record is 16
>    bytes resulting in around 400MB worth of index info and perhaps 4GB worth
>    of overview information.  Smaller news sites would be able to use smaller
>    index arrays, news sites with access to more storage would be able to use
>    longer index arrays.  So, by default, you would have around 25000 16K
>    'index' files, one per group.
>
>    I have two goals here:  (1) I want expiration of stale data to be 
>    efficient, and (2) constant-sized index files are much more reliable then
>    append-style index files.  Because the file size does not change, the
>    meta-data can survive horrendous crashes with the end result being the loss
>    of just a few index records verses whole groups.

When the circular buffer fills up before expire runs, you'll still need an
expensive and risky copy operation. But then again, that won't happen too
often if you allocate enough slack the moment the buffer starts rotating
(which is, I assume, when the articles start expiring the first time in
that group).

A disadvantage of this is that groups that get "bombed" might have their
circular overview-index buffer exploded (I know it happened to
alt.religion.scientology not very long ago). You might want to add the
possibility to shrink the buffer once usage drops below a certain point.
Also useful for busy groups that get phased out, or from which the busy
part is moved to another (new?)group.

Other than that, the circular buffer idea sounds great. (Writing a binary
search for a circular buffer must be fun :)

All the best,

--
#! ##### Jan-Pieter Cornet ##### <johnpc@xs4all.net> ##### perl
++$_;$!=$_+++$_;($:,$,,$/,$*)=$!=~/.(.)...(.)(.).(.)/;$!=$_+$_;
($@,$\,$~)=$!=~/(.)(.).(.)/; $_="$,$/$:"; $@++; $~="$~$_";($_)=
\$$=~/\((.)/;$|=++$_;$_++;$|++;$~="$~ $@$:";`$~$/$\$*$, $|>&$_`

Technical Details
Message-ID: <6d2ij4$rh2$1@xs1.xs4all.nl>
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: <6clc7s$b96$1@apollo.backplane.com> <6d0jmp$rii$1@flea.best.net> <6d0sa2$1e2$1@xs1.xs4all.nl> <6d1n5m$69o$1@flea.best.net>

Show Full Headers
Complete Article Headers
Message-ID: <6d2ij4$rh2$1@xs1.xs4all.nl>
Subject: Re: Diablo progress report
Date: Thu, 26 Feb 1998 00:00:00 +0000
From: Jan-Pieter Cornet <johnpc@xs4all.nl>
References: <6clc7s$b96$1@apollo.backplane.com> <6d0jmp$rii$1@flea.best.net> <6d0sa2$1e2$1@xs1.xs4all.nl> <6d1n5m$69o$1@flea.best.net>
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: 328702932
X-XS4ALL-Date: Thu, 26 Feb 1998 03:04:23 CET
Organization: XS4ALL Internet B.V.
Newsgroups: news.software.nntp