🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Matt Tue, 24 Oct 2000 06:05
INN 2.3: ovdb vs. buffindexed?
#48899
Author: Matt
Date: Tue, 24 Oct 2000 06:05
25 lines
1866 bytes
  ovdb and buffindexed methods of overview storage both
seem quite fast, but I've encountered problems with INN
that seem to be connected to readers on the ovdb system( An 
x86 FreeBSD 4.1 box with BerkDB 3.0.55).  Basically
innd would stop responding to ctlinnd and idle with no
obvious error messages, requiring a kill and a 
ovdb_recover -f before working again.  This
happened at least once every day or two, but only after
readers started connecting to it.

  I switched to buffindexed and it seems to work as well
or better from the reader end as ovdb.  Which leads me to
wonder what the advantages are of using ovdb vs. buffindexed,
as ovdb seems more complex and buffindexed seems to perform
at least as well as ovdb for me.  My system has a light reader load
with about 48 GB of almost exclusively CNFS spool getting
a fairly full feed.  

Any thoughts?

-Matt Richmond
segfault@nmt.edu

 
Re: INN 2.3: ovdb vs. buffindexed?
#48913
Author: Fluffy
Date: Wed, 25 Oct 2000 00:43
145 lines
7889 bytes
On Tue, 54 Sep 19100, Matt wrote:

> seem quite fast, but I've encountered problems with INN
> that seem to be connected to readers on the ovdb system( An 
> x86 FreeBSD 4.1 box with BerkDB 3.0.55).  Basically
> innd would stop responding to ctlinnd and idle with no
> obvious error messages, requiring a kill and a 
> ovdb_recover -f before working again.  This
> happened at least once every day or two, but only after
> readers started connecting to it.

Weird, the same thing I've been trying to track down for some
months, as you notice earlier in this newsfroup.

Odd that you're seeing it on FreeBSD.  I'm not sure if there
are bugs in BerkeleyDB 3.0.55, but I've heard good things about
3.1.17 if you want to try an upgrade to that.

Have you tried to `truss' or do any other debugging of what is
happening to all your news-related processes?  Have you looked
backwards through the logs searching for `nnrpd' to see if there
is a point where they simply fail after making the connections?

I've only had innd stop answering ctlinnd proper, even when the
newly-spawned nnrpds are stuck with no banner, after a control
message has come in, but that's probably because I'm using
overchan, and innd is buffering the data when overchan stops
being responsive.  The timestamps on your files in /news/overview
or wherever your ovdb database is, will tell you the last access to
them when things wedged, and then you can peruse the logs to see
if there's anything weird with nnrpd at those times.

My guess is that you'll see innd freezing up if it's writing the
overview data directly, as I'm assuming you do.  Damn.  I was
hoping that FreeBSD would be immune to this...


> wonder what the advantages are of using ovdb vs. buffindexed,
> as ovdb seems more complex and buffindexed seems to perform
> at least as well as ovdb for me.  My system has a light reader load
> with about 48 GB of almost exclusively CNFS spool getting
> a fairly full feed.  

Ehhhh...

If you have only 48GB, that's good for, what, some 6 or 7 hours of
a full feed?  You probably won't see much difference between the
different overview methods with such a small spool and a light
reader load, but your question is valid, and I too would like to
know -- what is the best overview method in theory, with several
thousand parallel readers, and several weeks or more worth of
spool (we're talking terabytes here)?

I had thought I had seen some discussion in this froup about some
disadvantages of the other overview methods, but I seem to recall
that from a time when a flood of rogue cancels cleaned out most of
the discussion, or else it happened elsewhere.  However, I did dig
up the following, which I consider possible drawbacks to the other
overview methods for a heavy-duty news swerver, assuming that ovdb
can work without these freezes apparently induced by those nasty
reader-type thingies.

Let me quote these posts, and make my remarks:


On 23 Sep 2000, Katsuhiro Kondou wrote:

> } Right now I am running news.daily with expireover and it seems to be 
> } choking the server for about 2 hours every night. I see a 
> } correspondence in dropped articles during that time. Any tips on how 
> } to avoid this?
> 
> I once saw this on my server in production.  This happens
> to newsgroups which have large number of articles like
> control.cancel.  To avoid this, the size of buffer(storage
> method of my server is only cnfs) needs to be quite small.
> It's 40MB for my case.

Ewww.  I have control.cancel back for about five months, after which
I run out of space and then wipe out a month, to allow me to do
research.  But more importantly, groups like alt.binaries.sounds.mp3,
alt.binaries.cd.images.highspeed, and some multimedia froups regularly
have something like 25 000 articles per day, and I plan to keep them
for a month or so...


On 23 Sep 2000, Katsuhiro Kondou wrote:

> } but I still see 1.500.000 articles from overview. If I try to list the
> } articles in the newsgroup nnrpd grows and I need to kill it.
> 
> That's almost what I saw.  I had over 1.5M arts in
> control.cancel.  This means buffindexed allocates memory
> 1.5M*300bytes(this is assumption of average data size) =
> 450MB when retrieving data.  This leads to that disaster.

Now, these froups with 25000 articles x 30 days means 750 000
articles, or half the size here.  And these are likely to be the
more popular froups, from what I read elsewhere, even if they
haven't reached the same popularity here quite yet.

The test machine I've set up on Slowaris seems to require somewhere
from 8MB RES up to 12 or 14MB, no matter whether I'm reading from
a small froup or a pr0n froup with plenty-o-posts.  This is somewhat
more than the couple thousand kB that our Slowaris INN 2.2.3 box
gives to an average nnrpd.  The SIZE is 120MB each now with ovdb,
but only a few MB with 2.2.3.

There was another message I saw (didn't preserve a copy to paste
here) where some large jump in article numbers caused the other
overview method (or maybe it was the same one) to allocate a lot
of memory.  While this was jump was the result of some bug, there
are also high-volume froups which may have old posts from weeks
or months ago present (FAQs and crossposts) leaving large gaps in
numbering and quite a bit of room from the low- to the high-water
mark, again meaning huge nnrpds.

My gut feeling is that the ovdb method with BerkeleyDB would be
preferable for a multi-terabyte machine with a month of storage
in binaries froups, and a year or more in select text froups.
But I have no evidence for that.

However, I do wonder about the memory needs of each of the expected
several thousand nnrpds (at present, with really crappy retention
and most froups missing, we've seen 1200 parallel nnrpds, but that
should be significantly rising, perhaps offloaded to smaller
frontend boxes, but still, the idea is valid), if it's more than
10MB each today with ovdb, just what do people see with the other
overview methods.

And of course, the speed.  I don't really have the storage yet to
see how fast or slow it is pulling a month of pr0n (I can only
manage half a month of motionless G1Fz today), but how does ovdb
compare with, say, 100 000 articles, vs. the other methods.

Anyway, if FreeBSD also suffers this problem, and you don't see
any improvement if you try 3.1.17, and you see the same nnrpd
connects-filter-enabled without the hostname line following that
I see, then I guess I'll just wander down to the harbour and
bash my head in with a few large rocks washed ashore, since I
hoped and prayed that it was SunOS 5.7-specific.

Gaaah.  My life is RUINED now.

Re: INN 2.3: ovdb vs. buffindexed?
#48920
Author: Katsuhiro Kondou
Date: Wed, 25 Oct 2000 06:18
29 lines
2544 bytes
In article <meowbot-AutoPost-0-9-3-6-2-8-5-2-8-4-3-6-2-0-0-2-100000@netscum.dQ>,
	Fluffy <meowbot@meowing.netscum.dQ> wrote;

} Now, these froups with 25000 articles x 30 days means 750 000
} articles, or half the size here.  And these are likely to be the
} more popular froups, from what I read elsewhere, even if they
} haven't reached the same popularity here quite yet.

I think I'll be able to fix this not to allocate memory
for overview data, after I've got new testing server(
maybe in the middle of the next month).  But the space
for overview index when retrieval will be still allocated,
though it consumes 44 bytes per entry.  And if the order
of overview data is not significant, RFC2980 does not
mention this, that allocation also will be gone, and it
should be faster response for xover and running expireover,
since sort() is not called to sort overview index in
buffindexed.

} There was another message I saw (didn't preserve a copy to paste
} here) where some large jump in article numbers caused the other
} overview method (or maybe it was the same one) to allocate a lot
} of memory.  While this was jump was the result of some bug, there

Ov3 and former buffindexed does.  Buffindexed was already
rewritten to fix the problem last November.
-- 
Katsuhiro Kondou
Re: INN 2.3: ovdb vs. buffindexed?
#48976
Author: YOUR_NAME_HERE
Date: Mon, 30 Oct 2000 19:32
23 lines
2108 bytes
On Tue, 54 Sep 19100, Matt wrote:

> seem quite fast, but I've encountered problems with INN
> that seem to be connected to readers on the ovdb system( An 
> x86 FreeBSD 4.1 box with BerkDB 3.0.55).  Basically
> innd would stop responding to ctlinnd and idle with no
> obvious error messages, requiring a kill and a 
> ovdb_recover -f before working again.  This

Yeah, I know, you've already become a convert to buffindexed,
but apparently (from the freebsd-stable mailing list) there
are some known pthreads bugs in -stable that have been fixed,
more or less, in -current, and for which a patch set for -stable
is available.

It's possible that the (locking) freezes you were seeing were
related to these bugs, so if anyone else sees them with ovdb
and FreeBSD 4.wozzit, it probably wouldn't hurt to try these
patches.  I don't have such a machine yet, but now I'm really
itching to get my hands all over one such, and see if I can
reproduce this problem.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads