🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Charles Fluffie Tue, 27 Jun 2000 00:00
INN -BETA expire vs. traditional spool
#47136
Author: Charles Fluffie
Date: Tue, 27 Jun 2000 00:00
82 lines
4444 bytes
Is it just me, or does the performance of recent INN BETA
snapshots absolutely reek when it comes to expire times,
where many articles are written to traditional one-article-
per-file spool?

There's a box here that has INN 2.2 STABLE from, oh, a year
ago, purely traditional spool, with just under 200 gigs of
pr0n and warez, and 700MB worth of history file.  The daily
expire run takes some 15 minutes to chew through the history
file, then runs expireover in about an hour, and then spends
around two hours wiping the spool.

Now in contrast I have a recent -BETA, a combination of different
storage methods, only some 60GB devoted to traditional spool,
and when I ran the first expire it looked kinda like

Expire messages:
expireover start Wed Jun 21 03:05:17 MET DST 2000: ( -z/news/log/expire.rm -Z/news/log/expire.lowmark)
    Article lines processed 10218125
    Articles dropped         7109301
    Overview index dropped   7962738
expireover end Wed Jun 21 06:03:39 MET DST 2000
lowmarkrenumber begin Wed Jun 21 06:03:39 MET DST 2000: (/news/log/expire.lowmark)
lowmarkrenumber end Wed Jun 21 06:03:39 MET DST 2000
        expirerm start Wed Jun 21 06:14:37 MET DST 2000
        expirerm end Fri Jun 23 22:02:54 MET DST 2000
expire begin Fri Jun 23 22:03:24 MET DST 2000: (-v1)
    Article lines processed 11894406
    Articles retained        5110377
    Entries expired          6784029
    Old entries dropped       940101
    Old entries retained      715322
expire end Sat Jun 24 00:04:01 MET DST 2000
        all done Sat Jun 24 00:04:01 MET DST 2000

That's ... um ... quite a bit more time than I expected.

Now obviously a few things have changed.  F'rinstance, the
expire.rm file, while sorted, is based on the MD5 hash,
which seemed to be reasonably alpabetical by group for the
first day or two, but then seemed to jump all over the active
file for the rest of expirerm.

Further, running `truss' on the ``fast(hahahaha)''rm process
led me to believe it was doing a few things that were taking
more time than I knew from the older `fastrm', and I wasn't
quite sure if they were right, either, given what I want.

And when expire chewed through the history text file at the
start of the expire run, that took a few hours, which was
rather more than I anticipated.  Plus at the end of the run
of ``fast''rm, it seemed to run expire over the text file
yet again, which I wasn't expecting at all.

I have a few ideas of what I can hack on to speed things up
slightly, but they may be based on inaccurate assumptions.
Because, truthfully, I'm not sure what is going on during the
daily expiration process, or the logic behind it, and when
this was discussed, I'm sure I was pacing back and forth on
the Donauradweg or drinking beer or else doing something fun
and enjoyable that I really should be doing right now too.

Does anyone have pointers to a good description of the expire
process in recent INN, or a pointer to a good timeframe where
I can find discussion on this?

Now admittedly, after that first expire run, things have not
been so pathetically bad, and I've been continually moving
newsgroups to CNFS storage leaving less in traditional spool,
but still I'm seeing well over 5 hours to do everything, and
that's on a totally idle machine, apart from the incoming feed.

I'm sure I should be able to reduce the expire time by frobbing
something somehow.  Unless someone wants to convince me that
INN-2.3 isn't what I want for traditional spool, which at first
glance seems to be the case...


THADVANCENKS!!!


Re: INN -BETA expire vs. traditional spool
#47128
Author: Brad Knowles
Date: Tue, 27 Jun 2000 00:00
23 lines
1840 bytes
In article 
<Pine.BSF.3.96.1000627192941.4969G-100000@ME0WVAX.INT.TELE.DK>, Charles 
Fluffie <FLUFFIE@ILOVEYOU.int.tele.dk> wrote:

> I'm sure I should be able to reduce the expire time by frobbing
> something somehow.  Unless someone wants to convince me that
> INN-2.3 isn't what I want for traditional spool, which at first
> glance seems to be the case...

    I'm not sure where I got this from, but it was my understanding that 
the performance of INN 2.3 was a known issue with regards to traditional 
spool, and that this was scheduled to be fixed with INN 2.4.  In fact, I 
vaguely recall some issues with regards to which version was best as a 
reader server (2.2) and which was best as a feeder (2.3), although again 
I'm not sure where I recall having heard this.

    Can anyone authoritatively confirm or deny any of these vague 
memories I seem to have somehow dredged up?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Re: INN -BETA expire vs. traditional spool
#47131
Author: Russ Allbery
Date: Tue, 27 Jun 2000 00:00
19 lines
1557 bytes
Brad Knowles <brad@shub-internet.org> writes:

> I'm not sure where I got this from, but it was my understanding that the
> performance of INN 2.3 was a known issue with regards to traditional
> spool, and that this was scheduled to be fixed with INN 2.4.  In fact, I
> vaguely recall some issues with regards to which version was best as a
> reader server (2.2) and which was best as a feeder (2.3), although again
> I'm not sure where I recall having heard this.

Reading performance was a serious problem in 2.2 due to overview and was
scheduled to be fixed in 2.3, which it was.

Expiring traditional spool needs some work in 2.3.  I'm going to need that
myself, so I'll probably be taking a look at it shortly.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

Re: INN -BETA expire vs. traditional spool
#47157
Author: Russ Allbery
Date: Wed, 28 Jun 2000 00:00
86 lines
5276 bytes
Charles Fluffie <FLUFFIE@ILOVEYOU.int.tele.dk> writes:

> Is it just me, or does the performance of recent INN BETA snapshots
> absolutely reek when it comes to expire times, where many articles are
> written to traditional one-article-per-file spool?

It's not just you.  Cc'd to inn-workers@isc.org, since I did some
investigation recently.

First off, the current expire stuff has grown and shrunk organically
enough that it's currently extremely difficult to trace through.  At some
point, we should rethink the interface somewhat so that it's easier to
track down all the pieces; right now, there are calls that go into and out
of about five different source files in three different directories to
figure out what's going on.

If you don't use group-based expire with traditional spool, you're pretty
much going to hurt.  The class-based expiration is extremely unfriendly to
traditional spool since it's based on storage API token and there's no
good, clean way of going from storage API token to a list of file names
present on disk (without using overview) without opening up the article
and grovelling through for the Xref line.  This is, unsurprisingly,
exceedingly slow.

If you're using group-based expire, the problem is that expire figures out
whether a given article should be removed and then writes it out to the
batch file for fastrm to deal with, but what it writes out is a storage
API token.  And fastrm, rather than just unlinking files, does a cancel
operation for each article, which for tradspool involves grovelling
through the article to find all of its links and removing them all.  This
is going to take eons for a non-trivial sized tradspool spool.

I want to largely use traditional spool for my new reader server, so I
need to fix this for my own purposes anyway.  So expect this to be fixed
by the end of the summer at the latest, but probably only in 2.4 (2.3
works fine with CNFS and the like, and is functional for tradspool
provided you're not putting a large feed into it, and we really need to
get it released so that people can start using it for the things it's good
at).

What I think needs to happen instead is that more of the expire process
needs to be dependent on the underlying storage implementation.  For
tradspool, what you want to do is exactly what older versions of INN did;
write out the path names for each article you're expiring and then have
fastrm do what it did before, namely just unlink them.  Looking at
tradspool_cancel, the storage backend will deal with that just fine.
fastrm should look at each line and decide from the first character if
it's a path or a storage API token and do the appropriate thing.

Now, the other thing that I noticed in poking around this is that the
current tradspool expiration mechanism breaks traditional semantics for
crossposted articles (in order to make it look more like the way
crossposted articles are handled in the other storage methods).  Obviously
with CNFS, timehash, or the like, there's only one copy of the article on
the spool, so the expiration for that article has to be the longest of the
expiration times of all the groups that it's in.  For tradspool, though,
you really want to unlink each link of the article as it expires
independently out of each group it's crossposted to; otherwise, you get
articles sticking around for a long time in groups with a short expire
time because they're crossposted.

So what I think should happen here is that the guts of OVgroupbasedexpire
should become dependent on the storage method, and that the tradspool code
should look significantly different than the code for the other storage
methods (namely expiring the article independently out of each of the
newsgroups to which it was posted, based on the overview information, and
generating file names for the fastrm file rather than storage API tokens).

Someone else check me on this?  Does this sound like a good approach?

> And when expire chewed through the history text file at the start of the
> expire run, that took a few hours, which was rather more than I
> anticipated.  Plus at the end of the run of ``fast''rm, it seemed to run
> expire over the text file yet again, which I wasn't expecting at all.

Looking at news.daily, I'm pretty confused about the order in which things
are done.  I think I need to stare at that a few more times to figure it
out.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



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