🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53229

Re: INN Capabilities?

#53229
From: Russ Allbery
Date: Wed, 11 Jul 2001 11:59
42 lines
2917 bytes
Stuart Krivis <jd@mongo.krivis.com> writes:

> Older filesystems like Berkeley FFS or UFS have trouble handling large
> numbers of files. Tradspool simply won't scale because of the underlying
> FS.

That's one of the problems, yes.

> So, cyclical buffers are used. I assume that indexing is done by offset
> in a large file?

Right.

> And then expiry would just mark some space as available, then INN places
> new articles wherever it finds the first space that's large enough?

Actually, it's even simpler than that; innd just writes articles to the
cycbuff until it's full and then starts over at the beginning, overwriting
articles.  Expire just figures out what doesn't exist any more and makes
the appropriate changes in the other databases.  So CNFS has the
additional advantage that the amount of disk space taken by the spool is
fixed.

> Might it now be more efficient to use a modified tradspool with
> something like SGI's XFS? XFS eliminates a lot of the problems tradspool
> had with older filesystems. You'd only need to modify expiry to happen
> in real-time. Set a spool size, then a limit (90%?) at which expiry
> starts occuring.

XFS does work much better and basically increases the speed of tradspool
to the point where it probably can compete with timehash.  However, it
still can't match CNFS because you still have the system call overhead of
searching down through a path and opening a file for every article as
opposed to just dumping data into an already open file.  It's very
difficult to get faster or simpler than CNFS.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <yl1ynnad6r.fsf@windlord.stanford.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!archiver1.google.com!news2.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <u7kys9nvd.fsf@primix.com> <9fgg61$917$1@marduk.litech.org> <ur8x0kk1k.fsf@primix.com> <9fh0io$2e7$1@marduk.litech.org> <uae3nk5vy.fsf@primix.com> <bill-51491D.01533605062001@fireproof.scconsult.com> <slrn9koegp.ru0.jd@poof.apk.net>

Show Full Headers
Complete Article Headers
Message-ID: <yl1ynnad6r.fsf@windlord.stanford.edu>
Subject: Re: INN Capabilities?
Date: Wed, 11 Jul 2001 11:59:56 +0000
From: Russ Allbery <rra@stanford.edu>
References: <u7kys9nvd.fsf@primix.com> <9fgg61$917$1@marduk.litech.org> <ur8x0kk1k.fsf@primix.com> <9fh0io$2e7$1@marduk.litech.org> <uae3nk5vy.fsf@primix.com> <bill-51491D.01533605062001@fireproof.scconsult.com> <slrn9koegp.ru0.jd@poof.apk.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!archiver1.google.com!news2.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 41
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 994852796 26271 171.64.13.23 (11 Jul 2001 11:59:56 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)