Article View: news.software.nntp
Article #18245Re: INN Performance Patch
From: Jeff Garzik
Date: Wed, 04 Jun 1997 00:00
Date: Wed, 04 Jun 1997 00:00
55 lines
2587 bytes
2587 bytes
Ugly Boy wrote:
> I have to wonder about this -- while it certainly is of benefit to
> refuse following references to an article which is in the process of
> being offered (are CHECKs included as well as IHAVE or TAKETHIS?) where
> bandwidth is concerned, there always remains the possibility that a
> transfer will fail for any of a number of reasons.
Certainly, that is the danger of all precommit caches. However,
presumeably the relatively small size of the precommit cache will mean
that by the time the article is offered again, seconds or minutes or
hours later by another peer, the hash will have been overwritten,
allowing the article to be attempted again without worry about refusal
by the precommit cache.
Being connected to so many fast sites means that I'm very likely to get
an article offered to me multiple times simultaneously. From looking at
the code, INN appears to accept the transfer of all articles, and flag
the ones that arrive later as "trash" so the later articles are
ignored. I wanted something that *wouldn't* have five sites sending me
the same article at the same time.
A better solution would be to timeout each precommit after 30 seconds
(like Diablo), rather than wait until the hash is overwritten, but I
went for simple rather than complete. (Or slack rather than complete.
:))
The logic is like this:
IHAVE
if (pre-committed)
Refuse
otherwise (check history, etc.)
otherwise
We don't have the article,
Mark article in pre-commit cache
go to 'get article' state
CHECK
if (pre-committed)
Refuse
otherwise (check history, etc.)
TAKETHIS
Mark article in pre-commit cache
Almost mind-numbingly simple. :)
--
Jeff Garzik
News Administrator, Spinne, Inc.
http://www.spinne.com/usenet/
Technical Details
Message-ID:
<3395099D.1A6AB61@spinne.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!not-for-mailReferences:
<5mt7et$s52$1@turing.mathworks.com> <5mtdlr$ndu$1@hammer.msfc.nasa.gov> <82bu5ogp8s.fsf@manic.eecs.umich.edu> <5n15ar$9md$1@drum.msfc.nasa.gov> <33948068.4F305FB8@spinne.com> <Pine.BSF.3.96.970604010244.3585A-100000@super-xenu.radio.cz>Show Full Headers
Complete Article Headers
Message-ID: <3395099D.1A6AB61@spinne.com> Subject: Re: INN Performance Patch Date: Wed, 04 Jun 1997 00:00:00 +0000 From: Jeff Garzik <jeff.garzik@spinne.com> References: <5mt7et$s52$1@turing.mathworks.com> <5mtdlr$ndu$1@hammer.msfc.nasa.gov> <82bu5ogp8s.fsf@manic.eecs.umich.edu> <5n15ar$9md$1@drum.msfc.nasa.gov> <33948068.4F305FB8@spinne.com> <Pine.BSF.3.96.970604010244.3585A-100000@super-xenu.radio.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 X-Deja-AN: 245995480 To: ag786@yfn.ysu.edu Organization: Spinne http://spinne.com Newsgroups: news.software.nntp