🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #35765

Re: Rejecting late cancels

#35765
From: please post pix of naked pre-tee...
Date: Wed, 03 Mar 1999 00:00
70 lines
3881 bytes
On 1 Mar 1999, Russ Allbery wrote:

> > Cleanfeed has another way to do this. It can keep a cache of rejected
> > articles (on hour by default) and is able to refuse cancel of this
> > articles. It should be faster (the test is done before innd MID check
> > and it doesn't touch the history�) but not so efficient...

Faster?  Huh?  Not with the times I've measured...
I've actually been intending to add some code to add
a cancel to the history file for every article of
certain types I reject for which cancels might be
arriving in the next second or two, because, in
spite of the slightly larger history file I'd be
seeing, I would have far better (that means faster)
performance.


> INN has to check the article against the history database anyway, so it's
> faster to reject based on a history entry than it is to reject based on a
> Perl filter.

Yep.  I don't know about the timer numbers other
people are seeing, but last time I took off my pants
the time needed to add a history entry was almost
zero, and the time needed to do a history lookup was
much less than that needed for perl filtering, meaning
it is much faster for me to write a bogus cancel message
ID (or two) and let the history lookup to the refusing.

Part of this depends on how you've configured INN to
do your history file: with one option that I forget, I
see negligible history lookup times but significant
history write times, while with that option toggled the
other way, I see negligible history write times but
significant history lookup times.  I've chosen the latter.

And the fact of the matter is that those lookup times
aren't that siginificant at all, with observation
showing me that the bulk of the time I see is actually
due to blocking during the filesystem sync every 30
seconds, during which lookups pause for a couple
seconds, after which they proceed at a rate of more
than 100 per second with all articles refused (meaning
a positive text file match) once that part of the
text file makes it into the cache.

Contrarily, the biggest amount of time I see spent on
one section of the timer code is the perl filtering,
so that it would be far better for me to add less than
a millisecond for additional history manipulation than
to subject the article to several tens of milliseconds
of perl filtering.


> string and then call the Perl sub, which has to parse the message ID and
> check the cache.  So I guess my question is whether people think doing
> that 600K times will be faster than calling INN::addhist() 30K times.

For me it ain't.  Maybe someone with a bit more in the
processor speed DSW and less in the way of history
performance DSW might see things differently...
But things have gotten so bad for me that I've set up
a dedicated machine to do nothing but perl filtering.


barry bouwsmQ
suffering through warm sunny weather and beautiful women at PIVEX


Technical Details
Message-ID: <Pine.LNX.4.05.9903030950460.1216-100000@penguin.mendelu.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!not-for-mail
References: <ylemn9i23j.fsf@windlord.stanford.edu> <7behkk$qc3$1@buggy.easynet.fr> <ylww11glxv.fsf@windlord.stanford.edu> <7beq3j$v2i$1@buggy.easynet.fr> <yl4so46cjw.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.4.05.9903030950460.1216-100000@penguin.mendelu.cz>
Subject: Re: Rejecting late cancels
Date: Wed, 03 Mar 1999 00:00:00 +0000
From: please post pix of naked pre-teen boys <barry@vszbr.cQ>
References: <ylemn9i23j.fsf@windlord.stanford.edu> <7behkk$qc3$1@buggy.easynet.fr> <ylww11glxv.fsf@windlord.stanford.edu> <7beq3j$v2i$1@buggy.easynet.fr> <yl4so46cjw.fsf@windlord.stanford.edu>
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: 450688984
Content-Transfer-Encoding: 8BIT
Sender: news@news.muni.cz (News Admin)
X-Nntp-Posting-Host: penguin.mendelu.cz
X-Sender: barry@penguin.mendelu.cz
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Organization: Meow of PIVEX
Mime-Version: 1.0
Newsgroups: news.software.nntp