🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23171

Should INN pass unlinks to an unlinkd?

#23171
From: Nigel Metheringham
Date: Tue, 11 Nov 1997 00:00
49 lines
2770 bytes
In the squid cache, a few versions back, an unlinkd was added so that
the non-blocking main process could pass all files than need unlinking
to unlinkd and so remove a blocking system call from normal
operations.

Inn works in much the same way as squid - its a single threaded
non-blocking server process.  It already hands off as much work as it
can to external processes (ie crosspost, overchan etc).  Adding an
interface so that cancels are processed by doing the history twiddles
in-line (no need then to do difficult history file locking), and
passing the file names of cancelled articles to an external process
which can handle them outside the main loop would appear to be a
logical and useful extension of inn.

Now that cancels (whether cancel articles or NoCem) account for large
proportions of received articles, the efficiency gains of doing this
would appear to be significant.

If this model was adapted there is an additional advantage.  The
unlink process, or another process fired off in the same way using the
same data, could then also remove the article references from the
overview files (well probably not remove, but invalidate within the
overview file).  This keeps the overview files in sync with the spool.
Once this is done nnrpd could then trust the overview data for
information on which articles exist and not bother ennumerating the
spool directory - which could give another speed up [this probably
needs to be examined, but for my system with relatively slow news
disks, a very fast overview disk, and the majority of groups having
very little read from them each time, this conclusion would seem
valid].

So what am I getting at:-

 1. Is this a reasonable idea?

 2. Has it been done before/Is anyone working on it?

 3. Should I forget the whole thing and look at CNFS instead?

	Nigel.


-- 
[ Nigel.Metheringham@theplanet.net   -  Systems Software Engineer ]
[ Tel : +44 113 251 6012                   Fax : +44 113 224 0003 ]
[      Real life is but a pale imitation of a Dilbert strip       ]

Technical Details
Message-ID: <slrn66gdee.8nm.Nigel.Metheringham@camel.theplanet.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

Show Full Headers
Complete Article Headers
Message-ID: <slrn66gdee.8nm.Nigel.Metheringham@camel.theplanet.net>
Subject: Should INN pass unlinks to an unlinkd?
Date: Tue, 11 Nov 1997 00:00:00 +0000
From: Nigel.Metheringham@theplanet.net (Nigel Metheringham)
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: 288538385
Summary: efficiency could be gained by taking unlink out of innd
Organization: [not set]
Keywords: inn, efficiency, cancels, unlink
Reply-To: Nigel.Metheringham@ThePLAnet.net
Newsgroups: news.software.nntp