🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71482

Re: CNFS desgin question...

#71482
From: Russ Allbery
Date: Wed, 04 May 2005 15:48
35 lines
3016 bytes
Schroeder, AJ <aj1@qg.com> writes:

> I have read and re-read the storage.conf and cycbuff.conf manpages, and
> the INN architecture guide, and I am left with a couple of design
> questions.  First, is it better to have many smaller files make up a
> buffer, or a couple of gargantuan ones? Reason I ask is that I was
> playing around with this and I created a 100GB file and made it my
> initial buffer for the limited binaries feed that we have. Would I be
> better served by creating ten 10GB files in this instance?

Unless by creating multiple files you can spread the load across multiple
physical spindles, it's going to be generally more efficient to use one
huge buffer.  However, the caveats to that are that building INN with
large file support will slow it down (it makes a lot of internal data
structures larger, which in turn affects how much data it has to read and
write off disk) and that if you're creating large files, rather than using
raw devices, your file system design *might* slow down accesses to really
large files.

> Reason I ask is because it seems that the 100GB buffer is holding onto
> articles way past their usefulness. The manpages state that CNFS is
> self-expiring, meaning that expire.ctl settings don't work with CNFS, so
> it would make sense to me to make several smaller buffers that rollover
> faster to alleviate the old article problem.

Well, rollover will happen based on the total space that you have in the
metacycbuff into which you're putting the articles.  10 10GB buffers will
expire articles exactly as fast (with some minor wiggles around the edge
conditions) as one 100GB buffer.

-- 
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: <87oebr6lh1.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.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsread.com!news-xfer.newsread.com!postnews.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <d5amlf$2k1h$1@sxnews1.qg.com>

Show Full Headers
Complete Article Headers
Message-ID: <87oebr6lh1.fsf@windlord.stanford.edu>
Subject: Re: CNFS desgin question...
Date: Wed, 04 May 2005 08:48:26 -0700
From: Russ Allbery <rra@stanford.edu>
References: <d5amlf$2k1h$1@sxnews1.qg.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.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsread.com!news-xfer.newsread.com!postnews.google.com!news4.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 35
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1115221707 26461 171.64.19.147 (4 May 2005 15:48:27
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux)
Cancel-Lock: sha1:RUeB4EaLV3RvF3XxKVsYE+lsV9E=