🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50095

Re: Inn 2.3 Slow expire

#50095
From: Charlie Coredump
Date: Wed, 24 Jan 2001 02:39
219 lines
12638 bytes
:: | weird reason there are dozens or hundreds of leftover nnrpd processes
:: | still hanging around after months with two very different INN releases.

::   As for old processes, YES!! However, to insure that I don't lose all
:: my file space with processes keeping old versions of history around, I

DO NOT REMIND ME.  Needless to say, within half an hour of boasting
of our 30-day problem-free uptime, since I had been avoiding keeping
a close eye on things, the swerver throttled due to lack of space on
our history drive (which had been sized to be enough for some five
instances of history).  Arrgh.  Am I cursed, or am I cursed?

We had just seen this problem last week on our other 2.2.x machine,
during expire, when I first noticed the several hundred nnrpds back
until last reboot in September.  Killing them one month at a time
did not free the history space -- it was only when killing the last
twelve hours or so of leftover nnrpds, some of which were certainly
active, that we saw disk space freed up.

I have a hard time believing that an nnrpd can stick around for four
months.  I did a Slowaris `truss' on a handful of 'em just to see if
they were doing anything useful, but wasn't patient enough to wait for
our default 3600 second idle timeout.

The thing is that on our current machine, I use `netstat' output to
see how many current readers there are, so these old nnrpds from the
past weeks don't appear in this output, only with `ps'.  I should
probably hang a `truss' off a few of 'em to try and figure out if
they are active and what they are doing, since this seems like either
some Slowaris bug or a bug in nnrpd keeping an old process around.

It looks like this is more acute with the newer nnrpd, which seems
to open the history files in cases where the 2.2.x family didn't (if
my experience with the month-old nnrpds means anything).  Or it may
be that my reader of choice that uses exclusively message-id requests
to retrieve articles is leaving a few leftover processes, which isn't
happening on the other machine since those leftovers didn't result
from me.

These nnrpd processes don't appear in the news.notice logfiles either,
like they would if they were actually active.  But I have done a truss
on a number of processes in a loose loop of giving the `help' command
over and over.  We don't log all user activity like `help' but we do
log `GROUP' and other similar commands.

Interestingly or otherwise, at least some if not most of these leftover
nnrpd processes are unable to be `truss'ed by the ordinary news user,
and the one I grabbed is in lwp_sema_wait().   AIEEEEEEEE.  Run far away.
I'd file this in a `handle with cron job and sledgehammer' category if
this machine were to see future use.


:: | about botched overchan dropfiles and the resulting missing articles,
:: | well, we lost quite a few each time even if we could manually recover
:: | most but not all of the articles that just couldn't be written in time,
:: | and that without readers).
:: 
::   I don't *think* I am losing any articles, at least a random check
:: hasn't caught me at it.

Only one article at a time would be lost, and only if you are running
overchan.  If you're not (and I don't think you were a few months ago)
there are no problems apart from things slowing down, since INN does
all the work itself, not allowing its input to get ahead of what it is
waiting to write.

If you do use overchan and it can't keep up, then you see overview! or
similar droppings in your outgoing directory at times when the channel
is flushed.  These have to be processed by hand.  If you can feed them
to overchan and not get an error, then hey, no problem.  But for each
time you get an error about a malformed overview token, that's one
article that got chopped in half between the data being fed to the
channel, and being buffered to spill out at flush time.  You have one
chance in 1,something million articles per day to be wanting to read
that article, otherwise it would look just like any cancelled article.

I'm not sure about the times when ovdb has frozen up, if the channel
feed data is ever able to be written before the overchan processes
must be killed by hand.  My feeling is not, since I'm guessing it's
trying and failing to get the lock to be able to write this data.
It seems that after this, all further data that innd has buffered
gets written to overview! *if* you catch things before they wedge
solid, and are able to shut down innd.  Or perhaps with a kill -INT,
unless you had Slowaris, where I think that data went bye-bye.  I'd
guess, knowing nothing about the k0de, that the reason for the non-
record boundaries on the buffindex/tradindex backlog dumps is that
the data was buffered internally and then fed back to the feed not
one overview record at a time, but one block, not record-aligned, at
the time, and it got interrupted on a block boundary before it had a
chance to catch up fully.  Of course, I could be wrong.

The only way to add these missing articles to the overview data is to
do a makehistory overview rebuild pass over the entire spool, unless
the k0de gets fixed as is being discussed.  I don't know if it would
be worth it to play it safe and when a channel feed disappears, like
at flush time, to not just spit out the buffered data plus the rewound
data, but also the previous record in the event that the channel has
crashed when writing that particular record unsuccessfully (among other
possibilities of a crash, the ovdb freezes).  But then, I don't know
what I'm talking about.


::  Actually store and read performance are pretty
:: fair, which is why I was trying buffindexed, XOVER on a large group was
:: taking longer than it should.

That's why I went back to tradindex, because in order to get the full
overview data (as about 10% of the XOVER requests we see, especially
M$ Outhouse) you need to pull data from various parts in the physical
database.  I did a major rewrite of the 2.2.x overview functionality
for nnrpd-related commands to reduce spool activity, so that the XOVER
for a large group needed no more than dumping the data from the single
traditional overview file.  My feeling was that with a bit more cheating
I could get even better tradindex performance to satisfy Outhouse lusers.


::   Not an error. But I did do a makehistory for other reasons, and Lord,
:: was that slow!

Yeah, the recovery tools are highly suboptimal, and one could easily
use specialized tools one has written for one's configuration (like
traditional spool or CNFS only) that should give far better performance
than going through the generic storage API, I would think.  Also, the
makehistory performance turns out to be highly dependant on one's spool
layout and now I know how to avoid configurations that would really bog
down this recovery, after one hacks a customized set of recovery tools
and config files.


::   Saw this on Linux and AIX. I'm unlikely to use FreeBSD, just because I
:: think OpenBSD is a bit more stable and secure, and I have a limited

Should be negligible difference between *BSDen, until one starts to
get into threaded libraries or other places where the different code
developers have diverged.  However, I'd expect there to be significant
OS-related differences between AIX, Slowaris, Linix, and *BSDen, also
depending on the different libraries each has and what the different
programs like BerkeleyDB choose to use.


::   I really have had no problems other than reader performance with
:: tradindexed.

I haven't seen readership levels to see any performance problems yet.
Still waiting.  On the other hand, I'm comparing this against another
machine where I've done major overview and other reader-related hacks
that may not have been incorporated into 2.3, and so may be pounding
tradindex overview more than necessary.


:: | Expireover runs in two hours.  There have never been overchan backlogs

::   That looks a bit long, on AIX:
::     expireover start Tue Jan 23 00:11:58 EST 2001: (
::     -z/usr/local/news/log/expire.rm -Z/usr/local/news/log/expire.lowmark)
::     expireover end Tue Jan 23 00:53:16 EST 2001
::     expire begin Tue Jan 23 00:53:47 EST 2001: (-v1)
::         Article lines processed  8148799
:: ...or you make have more articles online.

Well, you have about 1/3 the number of articles based on these here
numbers, so I would expect our times to be somewhat longer...


::   You going away from INN? To?

Diablo.  I spent six months and was unable to deliver a 100% working
replacement to a long-since obsolete reader box, nor could I in good
conscience recommend any of the current INN release software for a new
machine, since everything I tried failed somehow.  Tradindex has only
succeeded the last month, after the decision had already been made to
go with Diablo, only in that it hasn't failed yet, but there were still
many other problems that had not been addressed at that time (expire
performance on traditional spool for important froups, for example), and
a 10x growth rate in only four months meant that a centralized fokkin'
huge INN box probably wouldn't scale.  The distributed design of Diablo
undoubtedly influenced the decisionmakers, along with my INN failures.


::   I can run 800 users comfortably with tradindex on the machines above,
:: by 1200 the load avg is definitely up there.

This is AIX?  When we had AIX, we saw huge load spikes that our current
Slowaris box seems to handle well, failing in subtler, less spectacular
ways.  We've yet to see 50 readers yet, but I haven't given up all hope
and thrown in the towel just yet.  Later this morning, maybe.


::  I'm also running out of
:: 100Mbit on the NIC with all the users :-( But even with 2-3 users,
:: pulling down the headers for a group with 2-3k articles is *painful*!

Weird.  I saw quite fast response for one of the movies groups with some
hundred thousand posts or something.  We ran into 100Mbit/sec ethernet
limitations months ago that haven't yet been resolved, and that's
probably the biggest reason we don't see the thousands of readers I
was certain that an open swerver like ours would attract like dungbeetles.
If we did have full completion, rather than losing more than 1/4 of the
full feed, we'd probably be the holy grail that open-swerver leeches
are seeking, and word-of-mouth plus shameless plugs would attract the
readership I need to judge performance.

Well, I've spent longer than an hour on that truss'ed process with no
further activity, so either INN has the bug that was revealed by the
Demon BerkeleyDB bug report a couple weeks back, or Slowaris needs,
um, something.  Maybe I can motivate myself to look at the many other
lingering processes to see if any are really active.


:: | Of course, I could be wrong.
:: 
::   No, someone else has a patent on that...

I'll happily pay any royalties incurred by my infringement on this
specialized technological advance.  The patentholder, or its designated
agent responsible for handling licensing issues, is encouraged to contact
my ambulance-chasers at Dewey, Fleesem, and Howe, Registered Attorneys at
Law.
Technical Details
Message-ID: <94lf9h$gbl$1@news.contactel.cz>
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!supernews.google.com!sn-xit-02!supernews.com!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!fr.usenet-edu.net!usenet-edu.net!news.tele.dk!news.Contactel.CZ.POSTED!stavka.vszbr.cz!bofh.vszbr.cz!news.radio.cz!not-for
References: <92qu4c$ij6$1@nnrp1.deja.com> <ylk881lh5i.fsf@windlord.stanford.edu> <94i7so$4giq$1@newssvr05-en0.news.prodigy.com> <94ikek$bc5$1@news.contactel.cz> <94kec9$6e62$1@newssvr05-en0.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <94lf9h$gbl$1@news.contactel.cz>
Subject: Re: Inn 2.3 Slow expire
Date: Wed, 24 Jan 2001 02:39:46 +0000
From: Charlie Coredump <autocyberretributionmeowbot@plonk.invalid>
References: <92qu4c$ij6$1@nnrp1.deja.com> <ylk881lh5i.fsf@windlord.stanford.edu> <94i7so$4giq$1@newssvr05-en0.news.prodigy.com> <94ikek$bc5$1@news.contactel.cz> <94kec9$6e62$1@newssvr05-en0.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!supernews.google.com!sn-xit-02!supernews.com!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!fr.usenet-edu.net!usenet-edu.net!news.tele.dk!news.Contactel.CZ.POSTED!stavka.vszbr.cz!bofh.vszbr.cz!news.radio.cz!not-for
Newsgroups: news.software.nntp
Organization: Customer of Contactel s.r.o, Praha CZ
Lines: 218
NNTP-Posting-Host: 2dd950811eed8cd4920adef76f5c8ccd.contactel.cz
X-Trace: news.contactel.cz 980303986 1a0989c61e798f2ac2c269b88d6e6385
X-Complaints-To: Contactel Abuse <abuse@contactel.cz>
X-Pedophile: BARRY BOUWSMA IS A PEDOPHILE!!!
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300