🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #35547

Re: Overchan falling behind.

#35547
From: bill davidsen
Date: Mon, 22 Feb 1999 00:00
63 lines
3925 bytes
In article <7a9vq3$ilg$1@gateway.qnx.com>, glen mccready <glen@qnx.com> wrote:
| It appears that my overchan is falling behind and it's causing me
| some troubles.  innd updates the active file when new articles
| arrive, but overchan hasn't had the chance to update the overview
| files.  When trn (or another newsreader) goes in to a group it
| tries to get the overview entries for all the articles in the group.
| If it can't be an overview it doesn't display the message but it's
| updating the high message read pointer in it's .newsrc.  I've tried
| with a few newsreaders and I've seen the same thing.
| 
| Any ideas as to how I can speed up overchan such that it doesn't
| fall behind what is listed in the active file?  I'd appreciate
| direct responses but I do try to monitor this group.

There appear to be several unhappy design choices in 2.2 and overchan.
First, the feed is non-blocking, so innd can get way ahead of overchan.
Second, when it get ahead by more than a certain bit it writes a file in
outgoing. Not only is there nothing to process that file, but it appears
(on AIX at least) to not begin and end on line boundaries, so you can't
cleverly feed it into overchan. And last, the data are stored in memory,
if innd dies all the info is lost.

The Saito embedded overview performance patch seems to fix all this, by
having innd write the overview in the cycbufs as it goes. It also avoids
the problem of guessing the size of overview filespace vs. cycbuf space.
Unfortunately it doesn't seem to work properly when you use xrefslave,
which is all my reader machines. And the four changes are interwoven in
a single patch, making it less than obvious how to upgrade from 2.1 to
2.2. At the moment I have that project on hold.

As for a fix, there is none without a major change in the logic. But you
can help the performance of overchan by running several of them. I think
I was up to five feeds, using mutually exclusive articles (you really
have to do that!).

Like:
  !*,alt.*,@alt.bin*                    # alt, other than bin
  !*,alt.bin*                           # alt.bin* (maybe one for fan as well?)
  !*,misc.*                             # misc.*
  !*,rec.*                              # rec.*
  !*,talk.*                             # talk.*
  *,@alt.*,@misc.*,@rec.*,@talk.*       # everything else

This helps some on a uniprocessor, seems to kill the problem dead with
SMP and nicekids. But it's a band-aid, not a fix, just keeping things
going until something correct is available or developed.

Note that the Saito patch also has provision for keeping a certain
number of overview files open all the time, and avoiding the open/close
overhead. That also helps a lot.

On 1.5.1 local I had a chan process which batched the data and flushed
the output after 20-30 sec or some number of articles, and which
delivered the data sorted to multiple processes. That did keep up, but
it was still a hack, not a fix.
-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
Politicians and diapers have one thing in common. They should both be
changed regularly and for the same reason.
	--Ted Symons(?)


Technical Details
Message-ID: <7arunq$disi$1@newssvr04-int.news.prodigy.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.mbox.zip!not-for-mail
References: <7a9vq3$ilg$1@gateway.qnx.com>

Show Full Headers
Complete Article Headers
Message-ID: <7arunq$disi$1@newssvr04-int.news.prodigy.com>
Subject: Re: Overchan falling behind.
Date: Mon, 22 Feb 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <7a9vq3$ilg$1@gateway.qnx.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.mbox.zip!not-for-mail
X-Deja-AN: 447114353
X-Auth-User: 000000000/a3fa24afb252fd56
X-Post-Time: 22 Feb 1999 15:56:42 GMT
Organization: TMR Associates, Schenectady NY
X-Problems-To: abuse@prodigy.net
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com