Article View: news.software.nntp
Article #84072Re: Rebuilding overview
From: Steve Crook
Date: Thu, 19 May 2011 08:46
Date: Thu, 19 May 2011 08:46
71 lines
4255 bytes
4255 bytes
On Fri, 06 May 2011 20:19:28 +0200, Julien ΓLIE wrote in Message-Id: <iq1e3h$59m$1@news.trigofacile.com>: >> 1) Change ovmethod in inn.conf >> 2) Stop server >> 3) Delete ~/db/history* >> 4) Rebuild with makehistory -O -x -F >> 5) Start server > > If you give the "-x" flag to makehistory, *no* history files will be > rebuilt. As you do not change the storage location of articles, I do > not think step 3 (deleting history) should be done. > So "-x" is fine; but please do *not* delete your history! Thanks for your feedback Julien. As you know (from email) I suffered a few problems so I thought I'd document them here for future reference. First issue occurred when makehistory was run. After a few seconds it began reporting a stream of "Too many files open" errors. At the time ulimit -n was set to 1024 so I increased it via /etc/security/limits/conf: news soft nofile 8192 news hard nofile 8192 After this change, makehistory ran without issues and completed in about 40 hours. Restarting inn prompted me to run ctlinnd renumber '' which also ran without issues. The server then ran fine for a few minutes before I started getting errors like: May 17 08:55:44 news innd: SERVER cant recv CCreader Resource temporarily unavailable May 17 08:55:45 news innd: last message repeated 16 times May 17 08:55:45 news innd: SERVER cant accept CCreader Resource temporarily unavailable May 17 08:55:45 news innd: SERVER cant recv CCreader Resource temporarily unavailable May 17 08:55:47 news innd: last message repeated 20 times May 17 08:56:02 news innd: free:-1 -1 free but was in WMASK May 17 08:56:02 news innd: free:-1 74 free but was in SMASK May 17 08:56:14 news innd: SERVER cant select: Bad file descriptor May 17 08:56:32 news innd: last message repeated 1522092 times As a side note: My Debian Squeeze server runs rsyslog which by default doesn't do the "last message repeated" thing. As a result the log exceeded the filesystem capacity in a matter of seconds. It seems that despite ulimit being set to 8192, the server doesn't like more than 1024 file descriptors. By switching from buffindexed to tradindexed, I incurred an increase in the number of required descriptors and exceeded the 1024 limit. By tweaking inn.conf with the following, I now appear to have a stable system. maxconnections: 250 overcachesize: 256 rlimitnofile: 1024 After some investigation and feedback from Julien, it seems that the artificial 1024 descriptor limit is caused by inn's use of 'select'. In innd.c though, the limit will reflect the system limit up to a hard ceiling of 5000 if rlimitnofile is left at its default (-1). This can be verified at start time by the log message: May 15 09:39:53 news innd: SERVER descriptors 5000 May 15 09:39:53 news innd: SERVER outgoing 4987 It appears that inn is unable to support descriptors above 1024 but will only impose a limit of 5000. If the descriptors in use then exceeds 1024, bad things happen.
Technical Details
Message-ID:
<slrnit9m74.23b.steve@news.mixmin.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mailReferences:
<slrnis7i5f.bet.steve@news.mixmin.net> <iq1e3h$59m$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnit9m74.23b.steve@news.mixmin.net> Subject: Re: Rebuilding overview Date: Thu, 19 May 2011 08:46:28 +0000 From: Steve Crook <steve@mixmin.net> References: <slrnis7i5f.bet.steve@news.mixmin.net> <iq1e3h$59m$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail Newsgroups: news.software.nntp Organization: Mixmin Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 19 May 2011 08:46:28 +0000 (UTC) Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4"; logging-data="5836"; mail-complaints-to="abuse@mixmin.net" User-Agent: slrn/pre1.0.0-26 (Linux) Lines: 70 X-Original-Bytes: 4071