🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8205

Re: How do I remove stuff expire missed?

#8205
From: Per Hedeland
Date: Mon, 03 Jun 1996 00:00
56 lines
3289 bytes
[ Bogus Distribution: inet removed ]

In article <4opca7$frd@odin.funcom.no> tl@odin.funcom.no (Torbjorn Lindgren) writes:
>Some people will of course recommend findmissing.pl, but while it does
>work I can't understand why they use a program that easily runs for
>*hours* when there are *much* faster programs available.

Gee, and I thought findmissing was fast...:-) (Remember, some people
still try to do this with *makehistory*!)

>I use newsprune when I get that kind of problems, and the difference
>is amazing (I haven't measured it, but it might well be two orders of
>magnitude or more!)..

I seriously doubt that - I *did* measure it: Running first newsprune and
then findmissing on a lightly loaded server with 4.5GB of articles and
128 MB RAM, findmissing was 4-5 times slower, or 11:00/10:28/11:47 vs
46:42/47:38/44:32 minutes (I did it several times since there were no
missing articles - had to plant some to see if newsprune would find
them:-).

Not a big deal as you typically don't sit around waiting for it - but of
course when it's two vs nine hours you may feel differently, and with a
slower CPU (this was on a Sun SS10/30 though, i.e. rather mediocre by
today's standards) the difference may be bigger, since it's presumably
dominated by the fact that findmissing is a perl script and newsprune a
C program - they do almost exactly the same thing...

There are a couple of optimizations in newsprune which you may or may
not appreciate though:

- It only considers articles that are outside the *range* of article
numbers for each group in history as missing, i.e. articles inside the
range aren't reported even if they aren't in history. No problem if you
run it regularly, but one run is not enough to clean up after a crash -
and where are the time savings then...?

- It only scans directories corresponding to groups in active, i.e.
missing articles in groups you have removed while leaving the articles
(expecting expire to remove them) are never found. Might be a problem
depending on your rmgroup habits.

Another difference that probably doesn't affect performance is that
newsprune scans history first and then spool, findmissing the other way
around. This means that newsprune has to ignore "recent" (< 8 hrs old)
articles as they might have been entered into history after it was
scanned (normally no problem), while findmissing is in some sense more
"exact" (unless it runs across an expire:-) but can't afford to descend
into all-numeric directories (yeah I know, there shouldn't be any:-) - I
guess newsprune has a slight advantage there.

--Per Hedeland
per@erix.ericsson.se

Technical Details
Message-ID: <4ovr98$bae@euas20.eua.ericsson.se>
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: <4nfvss$h86@ednet1.orednet.org> <4opca7$frd@odin.funcom.no>

Show Full Headers
Complete Article Headers
Message-ID: <4ovr98$bae@euas20.eua.ericsson.se>
Subject: Re: How do I remove stuff expire missed?
Date: Mon, 03 Jun 1996 00:00:00 +0000
From: per@erix.ericsson.se (Per Hedeland)
References: <4nfvss$h86@ednet1.orednet.org> <4opca7$frd@odin.funcom.no>
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: 158305842
Organization: Ericsson Telecom, Stockholm, Sweden
Nntp-posting-user: per
Newsgroups: news.software.nntp