🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20925

Re: Future of INN

#20925
From: coneill
Date: Sun, 24 Aug 1997 00:00
42 lines
3061 bytes
aos@insync.net writes:

> Jeff Garzik <jgarzik@pobox.com> wrote:
> > How would conflicts, such as people wanting to use your history cache,
> > versus my history cache, be reconciled?  I guess that could be a
> > special case, like HIST_CACHE_MALLOC DO would enable yours, or
> > something like that.
> 
> Well, we already having things in config.data to allow selecting between MMAP
> and READ for various things... I'd say the selection between patches is along
> the same lines, and shouldn't cause much of a problem.
> 
> If we're going to work on a complete unoff server, do you (collective) think
> a complete replacement of the existing history format would be a good idea?
> At least an option in config.data for it?  If so, we'd need to do some work
> to figure out what the best choice(s) for a new format is (are).

I've been thinking about this for a while and I definitely think we need to
rewrite his.c.  My opinion is that the overviews should provide the directory
functionality to nnrpd and friends, and that we shouldn't be linking the 
articles all over the spool.  If we agree thats a good idea then we can replace
the list of groups that the article is posted to in the history file w/a some
type of storage dependent fixed length pointer.  I've been thinking of using
a single char to distinguish between multiple storage filers, and a 64 bit 
number that would be storage filer specific.  ie, for the standard spool, you
could have the first half of the 64bit number be a crc32 of the group name, and
the second half be an article number.  For cnfs, it would storage which rawpart
held the article, and the offset into it. 

The nice thing about this approach is that you get fixed length records for the
history file and you can store everything as a network byte order representation.
That's likely to make the history file _considerably_ smaller.  My math says it'd
be about 27 bytes per record for the current history records vs the 90-100 byte
records I see now.

I tend to think it would be wise for us to split the history lookup mechanism into
an existance part and a data retrieval part.  It would be considerably more 
lightweight to do history existance check rather than have to storage a random
length data field, like we are now.

Technical Details
Message-ID: <86k9hb8gm9.fsf@blah.erols.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: <33fae65b.40324363@news.hom.net> <5tl6ep$gs@shell.monmouth.com> <5tlctv$ioh$1@synthemesc.insync.net> <86sow08u2o.fsf@blah.erols.com> <5toj3i$3ut$1@havoc.gtf.gatech.edu> <5tpvbu$nf1$2@synthemesc.insync.net>

Show Full Headers
Complete Article Headers
Message-ID: <86k9hb8gm9.fsf@blah.erols.com>
Subject: Re: Future of INN
Date: Sun, 24 Aug 1997 00:00:00 +0000
From: coneill@blah.erols.com
References: <33fae65b.40324363@news.hom.net> <5tl6ep$gs@shell.monmouth.com> <5tlctv$ioh$1@synthemesc.insync.net> <86sow08u2o.fsf@blah.erols.com> <5toj3i$3ut$1@havoc.gtf.gatech.edu> <5tpvbu$nf1$2@synthemesc.insync.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: 268376865
Distribution: inet
Organization: Erol's Internet Services
X-Received-On: 24 Aug 1997 20:34:41 GMT
Newsgroups: news.software.nntp