🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21668

Re: *NEW* News Server Software!

#21668
From: Matt Dillon
Date: Thu, 18 Sep 1997 00:00
53 lines
3376 bytes

:In article <vxk202mfyaz.fsf@pocari-sweat.jprc.com>,
:Karl Kleinpaste  <karl@jprc.com> wrote:
:>jgreco@ns.sol.net (Joe Greco) writes:
:>> The per-article storage methods do have the benefit of being easier
:>> to debug, I suppose, but for the kind of stuff I do
:>
:>The kind of stuff I (er, we, here at JPRC) do with Usenet is text
:>classification.  This means we want to have a large corpus of articles
:..
:>
:>If INN ever truly loses its article-per-file layout, I will have to
:>stop upgrading, or shoe-horn the article-per-file concept back in with
:>each subsequent release.
:>
:>...
:>
:>--karl

    INN's per-file storage is a legacy issue.  It just doesn't work well in
    most of today's systems for many reasons.  The article volume is too high:
    It stresses the kernel namei and buffer caches, it stresses the kernel's
    internal filesystem locks, many filesystems (even log filesystems) have
    synchronization or seeking issues when maintaining directory consistancy.
    It stresses expire (makes it inefficient).  file-in-group storage is 
    almost as bad...  it effectively randomizes access for the more critical
    incoming feed and linearizes access for the less critical NNTP connection,
    and then only if there are just a few news readers.  And once you have
    hundreds of readers, even the file-in-group mechanism is random.

    There are many solutions to the problem, but all come down to three things:
    Reduce the number of files by at least two orders of magnitude (or not
    use files at all), reduce internal kernel locking contention, and reduce
    lookup overhead (e.g. spend less time on meta-data).

    That said, most of these new systems do not prevent you from scanning
    articles in the spool.  Diablo, for example, simply stores multiple
    articles per file separating each one with a NUL (ascii 0), then storing
    (offset,size) in the dhistory file and outgoing queue files.   You can
    scan the spool either through the dhistory, or you can scan the spool
    simply by parsing each multi-article file based on the NUL separator.
    They aren't ordered by group but so what?  It couldn't be easier and, 
    I might add, scanning through a diablo spool goes at least ten times as 
    fast as scanning an INN spool.  I get 2 MBytes/sec cat'ing the spool on
    top of a heavily loaded diablo-based news system, and 3-6 MBytes/sec doing
    the same thing on a lightly loaded news system.  I get around 100K/sec
    doing the same thing on an INN spool on a similarly configured machine.

						-Matt


Technical Details
Message-ID: <5vrnvk$10q$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
References: <5vpddn$qlb$1@news5.ais.net> <34207A23.20DB86A3@spinne.com> <5vq55f$mup$1@earth.execpc.com> <vxk202mfyaz.fsf@pocari-sweat.jprc.com>

Show Full Headers
Complete Article Headers
Message-ID: <5vrnvk$10q$1@flea.best.net>
Subject: Re: *NEW* News Server Software!
Date: Thu, 18 Sep 1997 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <5vpddn$qlb$1@news5.ais.net> <34207A23.20DB86A3@spinne.com> <5vq55f$mup$1@earth.execpc.com> <vxk202mfyaz.fsf@pocari-sweat.jprc.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: 273591044
X-Trace: 874603317 6427 dillon 206.184.139.132
Organization: Best Internet Communications, Inc - 650 964 BEST
Keywords: usenet text articles classify
Newsgroups: news.software.nntp