Article View: news.software.nntp
Article #49144Overchan/nnrpd deadlock in INN 2.2.3
From: Gina Bull
Date: Wed, 22 Nov 2000 00:00
Date: Wed, 22 Nov 2000 00:00
27 lines
2109 bytes
2109 bytes
I found the source of my supposed overchan inability to keep up.
The problem was that in INN 2.2.3 (traditional spool), overchan
must lock the .overview file for write access, but must wait in a
queue of nnrpd processes that have the file open, usually in response
to an XOVER. The nnrpd process does not close the .overview file until
another NNTP call such as a GROUP is issued. That may have been
acceptable at one time, but since overchan was backing up for many
minutes (30 or more) behind these reader processes in our most popular
local newsgroup, it was causing problems.
The information about version 2.3 indicates that it does overview in
a completely different way now, and will require a major downtime in
order to install. Since I can't do that on the spur of the moment, I
fixed and recompiled nnrpd. The system is now working as expected --
no overchan backups, low cpu usage, reading/posting working normally.
If you're interested, the fix consisted of changing three instances of
if (innconf->storageapi)
OVERclose();
in article.c to remove the "if". Every function that uses the overview
file does an open if it needs to, so there is no reason to NOT close
the file if using a traditional storage method as opposed to storageapi.
Gina Bull
UVa News Administrator
Technical Details
Message-ID:
<3A1C00C9.46224E78@virginia.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!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3A1C00C9.46224E78@virginia.edu> Subject: Overchan/nnrpd deadlock in INN 2.2.3 Date: Wed, 22 Nov 2000 00:00:00 +0000 From: Gina Bull <ginabull@virginia.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!not-for-mail X-Deja-AN: 696725924 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@virginia.edu X-Trace: murdoch.acc.Virginia.EDU 974913738 15965 128.143.13.8 (22 Nov 2000 17:22:18 GMT) Organization: UVa, ITC Mime-Version: 1.0 NNTP-Posting-Date: 22 Nov 2000 17:22:18 GMT Newsgroups: news.software.nntp