🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #14798

Re: Redesign spool and history database

#14798
From: Matt Dillon
Date: Thu, 06 Feb 1997 00:00
53 lines
2859 bytes
:In article <5dd8dn$ml7@news1.epix.net>,
:Forrest J. Cavalier III <mibsoft@epix.net> wrote:
:>
:>Has anyone made any comments or done any work on redesigning
:>the spool side of INN?  What I have in mind is doing away
:>with DBZ lookup of message ID, and using the message ID
:>itself (transformed and chopped up into directory/path parts)
:>
:>- This would even out the average directory length, and make
:>the history database (DBZ) unnecessary.  
:>
:>- Symlinking is not necessary for crossposts.
:>
:>- What I have in mind would also make expires run a lot faster.
:>
:>------------------------------------------------------------------
:>
:>I did a couple of Deja News searches, but didn't come up
:>with anything.  Has anyone done this?  Is anyone interested?
:>
:>Forrest J Cavalier III
:>Mib Software

    I just released software that does a lot of this.  It is not INN
    compatible, and supports only feed machines (not newsreader machines):

    http://www.backplane.com/

    I call the system 'Diablo'.  It stores articles by time received, 
    creating a new directory every 10 minutes.  There is still a history
    file, because hash table lookups in the history file are much, much
    faster then filesystem namei() calls, even when you are directly
    referencing the article. I store the expiration in the history file
    and update it in-place when expire is run, and expire runs a lot
    more efficiently due to the fewer number of directories and 
    essentially linear-cacheable-access to them due to the time-ordering
    of the history file.  I still store articles as individual files, though.
    Even so, Diablo can accept 40 articles/sec in-aggregate, about 10 times 
    faster then INN on the newsfeeds machine I switched over.

    I've also read Brad Templeton's comments in his followup to your 
    post.  Using fixed-partition chunking is potentially even faster,
    though I think realistically it would be better to use 
    multiple-articles-in-one-file-by-expiration, which he also mentioned.
    This would solve the expire problem completely.  I don't do this in
    Diablo, but only because it complicates the software too much for a first
    release.  It makes a lot of sense, though.

						-Matt


Technical Details
Message-ID: <5ddn05$kom@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
References: <5dd8dn$ml7@news1.epix.net>

Show Full Headers
Complete Article Headers
Message-ID: <5ddn05$kom@flea.best.net>
Subject: Re: Redesign spool and history database
Date: Thu, 06 Feb 1997 00:00:00 +0000
From: dillon@flea.best.net (Matt Dillon)
References: <5dd8dn$ml7@news1.epix.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: 214948133
Organization: BEST Internet Communications, Inc.
Newsgroups: news.software.nntp