🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19237

Re: Most efficient directory structure for news?

#19237
From: Matt Dillon
Date: Sun, 13 Jul 1997 00:00
33 lines
2186 bytes
:In article <1997Jul1304.21.21.18009@koobera.math.uic.edu>,
:D. J. Bernstein <djb@koobera.math.uic.edu> wrote:
:>Mark Wedel <mark@stealth.eng.pyramid.com> wrote:
:>> Basically, we generate a 32 bit hash code from the message id,
:>
:>Why not use expire time as the hash?
:>
:>Have one file for all the articles expiring this hour, one file for all
:>the articles expiring next hour, and so on. Every hour, remove the
:>appropriate file. (As I recall, Bill Russell proposed this years ago.)

    I toyed with this idea in Diablo, but eventually canned it in favor
    of simply creating a new directory every 10 minutes and creating one
    file per incoming connection.  The problem with storing-by-expire is
    that it creates a locking bottleneck when multiple processes are trying
    to write out articles, because the vast majority of groups will be 
    categorized with one of only a few expirations.

    I'd still like to come up with a solution, because right now my 
    expiration stuff is mostly useless... it's easier for expire to simply
    rm -rf the oldest directories until the free-space target is reached,
    which is strictly FIFO.  

    What I would REALLY like to do is be able to free-up space within the 
    multi-article storage files in a piecemeal fashion by creating holes.
    Most file systems support holes through seek/write, but do not appear
    to have commands to create holes where there was previously data.  Grump.

						-Matt


Technical Details
Message-ID: <5qa5la$evq$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: <5pn3ck$137s$1@node17.cwnet.frontiernet.net> <5pq0fa$rpv@stealth.eng.pyramid.com> <1997Jul1304.21.21.18009@koobera.math.uic.edu>

Show Full Headers
Complete Article Headers
Message-ID: <5qa5la$evq$1@flea.best.net>
Subject: Re: Most efficient directory structure for news?
Date: Sun, 13 Jul 1997 00:00:00 +0000
From: dillon@flea.best.net (Matt Dillon)
References: <5pn3ck$137s$1@node17.cwnet.frontiernet.net> <5pq0fa$rpv@stealth.eng.pyramid.com> <1997Jul1304.21.21.18009@koobera.math.uic.edu>
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: 256582587
Organization: Best Internet Communications, Inc. - 415 964 BEST
Newsgroups: news.software.nntp