🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18898

Re: The Incredible Expanding History File Problem

#18898
From: Matt Dillon
Date: Tue, 01 Jul 1997 00:00
88 lines
5051 bytes
:In article <5p8ns5$jq1$5@darla.visi.com>,
:Mike Horwath <drechsau@yuck.net> wrote:
:>Hmm...
:>
:>I think Diablo does things differently using a MD5 sum of the message
:>id, but I could be wrong...

    Diablo uses a duel prime-mod-xor hashing algorithm to obtain a 62 bit
    hash code from the message-id.  It seems to work pretty well.. I figure
    message-id's are not normally generated from prime numbers, so there's
    a good dispersal.  MD5 would probably be overkill.

    Keeping 16 days worth of message-id's, Diablo's dhistory file is
    approaching 300 MB.  Each history file entry is 28 bytes, so the
    history file is storing upwards of 10 million message-id's.  It
    ranges between 200 MB just after the bi-weekly history cleaning
    run to a bit over 300 MB just before the next cleaning run.

:>Now, I really can't do much more than watch some of this stuff
:>happening, but something does need to be done.
:>
:>My reader machine is slowly dying in terms of performance.  What was
:>once a very fast dual processor sparc 10 is becoming quite the hulk of
:>a beast.  It was handling 45 feeds just 4 months ago by itself before

    One thing I do is keep the spool on my newsfeeds machine small.. only
    8 GB.  This reduces overhead somewhat.

    There is a general trend with news backbones becoming more and more 
    real-time.  The obvious intermediate solution is to reduce the history
    file retention time from 16 days to 8 (and not accept any article over
    7 days old), which would halve the size of the history file on the
    newsfeeds box.

    A typical newsreader box has a somewhat larger problem in that the history
    file entry must stick around as long as the article.  However, it would
    not be necessary to follow hash chains beyond the 8 day mark (with an
    8 day retention) since we would not accept any article over 7 days
    old anyway, so the larger spool does not necessarily result in a
    less-cacheable history file.  If the initial hash index also stores
    a timestamp, it could be made very efficient.

:>sd3       2.0  4.5   12.5   32.5  0.0  0.1   14.4   0   7 
:>sd8      19.4 10.3  144.2   70.8  0.0  1.2   41.5   0  36 
:>sd9      13.0  5.2   86.5   32.3  0.2  0.6   45.6   0  18 
:>sd14      8.5  8.1   59.0   60.7  0.0  0.5   30.4   0  21 
:>sd16      8.3  8.1   58.0   61.0  0.0  0.5   28.8   0  21 
:>sd17      8.3  8.0   57.5   60.1  0.0  0.5   29.0   0  21 
:>sd18      8.2  8.0   57.1   60.2  0.0  0.5   30.5   0  21 
:>sd19      8.4  8.4   58.1   61.8  0.0  0.5   29.3   0  21 
:>
:>Service times (svc_t) are slowly increasing though :(
:>
:>(sd8 is overviews, sd9 is history storage, sd14-19 are spool)

    Another thing I've noticed with Diablo is that once I got away
    from the one-file-per-article storage format, it's sensitity
    was almost exclusively with history file lookup latencies rather
    then spool file latencies.  It's gotten to the point where
    I am willing to stripe the history file's partition across two
    physical disks.  I think I will reduce the history file
    retention time first, though, since a 150 MByte history file
    will help the cache out a lot better then a 300 MByte history file
    and that makes all the difference.

    Lastly, most newsfeeds out there are still in the 'we need multiple
    parallel connections to push a full feed' mentality engendered from
    INN's broken implementation.  Something like Diablo really needs only
    one or two incoming streaming feeds from each feed... in fact, usually
    just one, and can keep up just fine.  I will often see our news box
    get bogged down and start to swap because bbn's systems suddenly decide
    to make 20 parallel connections to me, or maxwell decides to make 10.
    It's entirely unecessary... when one has 70+ incoming feeds, and a
    quarter of them want to make three or four connections each, one winds
    up with about three times the number of connections that one really 
    needs.

					-Matt

:>-- 
:>Mike Horwath    IRC: Drechsau    LIFE: Lover    drechsau@yuck.net
:>Visi:  info@visi.com                           drechsau@Geeks.ORG
:>Twin Cities area Internet Access:  612-288-0880 for more info
:>The founding member of Minn. Coalition for Internet Accessibility


Technical Details
Message-ID: <5pboad$c8e$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: <Pine.LNX.3.96.970630125250.2588A-100000@marley.vszbr.cz> <5p8c49$cjl$1@earth.execpc.com> <5p8ns5$jq1$5@darla.visi.com>

Show Full Headers
Complete Article Headers
Message-ID: <5pboad$c8e$1@flea.best.net>
Subject: Re: The Incredible Expanding History File Problem
Date: Tue, 01 Jul 1997 00:00:00 +0000
From: dillon@flea.best.net (Matt Dillon)
References: <Pine.LNX.3.96.970630125250.2588A-100000@marley.vszbr.cz> <5p8c49$cjl$1@earth.execpc.com> <5p8ns5$jq1$5@darla.visi.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: 253926609
Organization: Best Internet Communications, Inc. - 415 964 BEST
Newsgroups: news.software.nntp