🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19241

Re: Most efficient directory structure for news?

#19241
From: D. J. Bernstein
Date: Sun, 13 Jul 1997 00:00
29 lines
1909 bytes
Matt Dillon <dillon@flea.best.net> wrote:
> 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.

To reduce the time spent with the file locked, keep an in-memory cache
containing the new article (up to some length limit), and write it in
one burst when the article is complete.

To reduce the number of locking events, keep 50 articles in the
in-memory cache, and write all 50 in one burst when the cache fills up.

Of course, the alternative to filesystem locking is to pass new data
through a single process. This also makes it convenient to store some
data in memory. This may be worthwhile for newsgroup pointers even if
not for article data.

> 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.

With files stored by expiration date, this is unnecessary. (It's not
worth the time to free up disk space for cancelled articles.)

---Dan
Let your users manage their own mailing lists. http://pobox.com/~djb/qmail.html

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

Show Full Headers
Complete Article Headers
Message-ID: <1997Jul1319.11.57.22490@koobera.math.uic.edu>
Subject: Re: Most efficient directory structure for news?
Date: Sun, 13 Jul 1997 00:00:00 +0000
From: djb@koobera.math.uic.edu (D. J. Bernstein)
References: <5pn3ck$137s$1@node17.cwnet.frontiernet.net> <5pq0fa$rpv@stealth.eng.pyramid.com> <1997Jul1304.21.21.18009@koobera.math.uic.edu> <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
X-Deja-AN: 256673864
Organization: IR
Newsgroups: news.software.nntp