Article View: news.software.nntp
Article #33890Re: inn-2.1 not expiring with CNFS
From: Mike Brudenell
Date: Thu, 17 Dec 1998 00:00
Date: Thu, 17 Dec 1998 00:00
105 lines
5525 bytes
5525 bytes
Greetings -
In article <Pine.LNX.4.03.9812131931090.15264-100000@planet.ge.org>, Georg
Hitsch <georg@atnet.at> wrote:
>In news.daily-Report is:
>
>Renumbering active file.
>Expire messages:
>expire begin Sun Dec 13 19:02:15 CET 1998: (-v1 -c -e
>-z/usr/local/news/log/expire.rm -u/usr/local/news/log/expire.index.rm)
> Can't reserve server
> Article lines processed 0
> Articles retained 0
> Entries expired 0
> Files unlinked 0
> Old entries dropped 0
> Old entries retained 0
>expire end Sun Dec 13 19:02:16 CET 1998
> all done Sun Dec 13 19:02:16 CET 1998
> expireindex start Sun Dec 13 19:02:17 CET 1998
> expireindex end Sun Dec 13 19:02:18 CET 1998
I saw this when our expire process fell over because it couldn't open
enough files concurrently. If it's this then there is a message in one of
your logfiles to that effect (news.notice, I think).
You can either increase the maximum number of files your system allows the
username you are running your server under by default, or by Being Cunning
in your config/config.data file. This contains the following
comment/definition:
## If greater than -1, then use [gs]etrlimit to set that many descriptors.
## If -1, then no [gs]etrlimit calls are done.
#### =()<NOFILE_LIMIT @<NOFILE_LIMIT>@>()=
NOFILE_LIMIT 200
I've set it to 200 myself: normally it is "-1" as distrbuted. Now
recompile, and the inndstart program (normally run as root to start the
server after binding to its (privileged) port of 119) will now set the
maximum number of open files for the server to your value rather than just
using your system's default value.
Note that the server and expire seem to like quite a lot of files -- this
is especially true if you have followed the advice in one of the read-me
files about setting up overview.ctl to have 27 different overview files
for the unified overview (one for newsgroups starting with each letter of
the alphabet + one for the remaining oddities). All these, plus your CNFS
buffers, etc quickly add up!
One thing to note is that if your expire process DID crash out because of
not being able to open enough files it has almost certainly left your
server "reserved" (ie, "Can't reserve server" line in the text you
quote). This means that even if you fix the maximum number of open files
problem expire still won't run until you have cleared the outstanding
reservation. If memory serves you can do this with:
ctlinnd reserve ''
*****
As an aside (not, I think, applicable in this case admittedly but I
mention it because it had me worried/stumped for a couple of weeks) ...
other useful questions to ask yourself are:
* How big is your spool space (CNFS buffers)?
* How much news do you get coming in a day?
* How long has your news server been up and running with CNFS?
The answers to the first two should let you estimate how long articles
would remain around on your system (assuming no expiry at all) before
being overwritten in the cycled CNFS buffer.
Now, has your server been running at least that long?
The reason to ponder this is that (as I understand/experience it) the
expiry process by default does NOT take note of the expire.ctl file for
articles stored with CNFS. Instead it tries to maximise the lifetime of
the articles by waiting until the CNFS buffer has rolled over and
scribbled over the old articles before removing considering them to be
expired.
This means that you see worryingly few articles being expired in the daily
reports until your server has been running long enough for your buffers to
fill and roll over.
This behaviour is implied by the cryptic two sentences describing the "-N"
option to expire (see the man page for expire). This says that the
default ("-N" not specified to expire via news.daily command line options)
is for expire to ignore control.ctl when processing articles stored in a
storage method which has "self expire functionality".
Buried elsewhere, in the storage.ctl page's description of the cnfs
storage method, it mentions that this method has self expire
functionality.
Festive Cheers,
Mike Brudenell
--
The Computing Service, University of York, Heslington, York Yo10 5DD, UK
Tel: +44-1904-433811 FAX: +44-1904-433740 http://www.york.ac.uk/~pmb1/
* Unsolicited commercial e-mail is NOT welcome at this e-mail address. *
Technical Details
Message-ID:
<pmb1-1712981202540001@pippin.york.ac.uk>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-mailReferences:
<Pine.LNX.4.03.9812121006310.27803-100000@planet.ge.org> <slrn77546t.8tf.niels@liquid.tpb.net> <Pine.LNX.4.03.9812131000070.4236-100000@planet.ge.org> <slrn777fmf.drr.niels@liquid.tpb.net> <Pine.LNX.4.03.9812131931090.15264-100000@planet.ge.org>Show Full Headers
Complete Article Headers
Message-ID: <pmb1-1712981202540001@pippin.york.ac.uk> Subject: Re: inn-2.1 not expiring with CNFS Date: Thu, 17 Dec 1998 00:00:00 +0000 From: pmb1@york.ac.uk (Mike Brudenell) References: <Pine.LNX.4.03.9812121006310.27803-100000@planet.ge.org> <slrn77546t.8tf.niels@liquid.tpb.net> <Pine.LNX.4.03.9812131000070.4236-100000@planet.ge.org> <slrn777fmf.drr.niels@liquid.tpb.net> <Pine.LNX.4.03.9812131931090.15264-100000@planet.ge.org> 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: 423221769 Sender: pmb1@york.ac.uk X-Complaints-To: abuse@york.ac.uk X-Trace: pump1.york.ac.uk 913896173 15101 144.32.128.9 (17 Dec 1998 12:02:53 GMT) Organization: The Computing Service, The University of York, UK NNTP-Posting-Date: 17 Dec 1998 12:02:53 GMT Newsgroups: news.software.nntp