Article View: news.software.nntp
Article #16214Re: Some Diablo questions!
From: Cracker Buster
Date: Mon, 24 Mar 1997 00:00
Date: Mon, 24 Mar 1997 00:00
156 lines
9269 bytes
9269 bytes
On 24 Mar 1997, Matt Dillon wrote:
> I have found that many of my incoming links
> will stop sending checks and just start shoving articles to me.
> I wind up rejecting 30% of them. While optimizing out the 'check'
> works in theory, I do not think any of the currently existing
> feeders actually do the optimization correctly.
Are you sure they're just shoving the articles at you? I would guess
that probably they're getting an affirmative response to a CHECK but by
the time they finish sending the article to you, someone else has gotten
it to you. (Or do you return a different response code to a CZECH if
someome else has already offered the same article and is presumably
transferring it, which was broken when INN added streaming?)
I'm not quite sure what your makeup of incoming peers is and whether
you receive an unusually large number of articles from some of them (say,
Erol's, BBNPlanet, Maxwell, and other sites which tend to transfer the
most articles) which would be likely to send articles you reject as
duplicates. But it also depends on the peer and how the number of CHECKs
has been tuned. I've been sending smaller numbers of CHECK commands at a
time to some peers, because with my connectivity, there will be a definite
time lag between the time I send all the CHECKs, await the response, and
when the TAKETHIS has finally completed.
I also split outgoing feeds by size into three groups, with the lowest
number of CHECKs (typically 4) for the articles >64k in size, which are
most expensive in terms of wasted bandwidth if duplicated, as well as
memory consumption (I use innfeed which keeps all active articles in
memory, with no serious problems, on an experimental spool filesystem as
noted earlier, since a single connection is decidedly *not* adequate for
any but the nearest two peers and a couple others which take only skeletal
feeds -- note that I aim to have no delay from the time an article reaches
me to the time it gets to my peers, meaning no backlogs, rather than
delaying transfers until off-hours).
I'll give you an example of some of my outgoing feeds at the moment:
news.maxwell.syr.edu
seconds: 6841 art. timeout: 150 ip name: 128.230.129.107
offered: 14580 resp. timeout: 900 port: 119
accepted: 180 want streaming: yes active cxns: 8
refused: 13425 is streaming: yes sleeping cxns: 0
rejected: 958 max checks: 6 initial cxns: 1
missing: 0 on threshold: 95.0% max cxns: 8
deferred: 0 off threshold: 90.0%
or 2.13 ar 0.03 rr 1.96 jr 0.14
31 packets transmitted, 21 packets received, 32% packet loss
round-trip min/avg/max = 205/322/410 ms
(This explains my terrible performance seen today, able to keep up with
only 18% of Maxwell's offering at the moment, compared with that over the
weekend, where better than 75% of what was destined for me actually got
here.)
Maxwell is the only site I feed (save for one local C News peer) not
using INN. Out of 14580 CHECK commands, I got a 238 (GIMME) for 1138 of
them, or less than 10% of what I offered. The on/off threshhold is the
point at which innfeed switches from CHECK mode to straight TAKETHIS,
adjustable in innfeed's configuration file. (It's been a while since I
was relying on innxmit, but I believe you'd have to tweak the source to
get at these values, as it does the same at a lower threshhold if I
recall.) It is pretty much impossible that I would ever have given enough
CHECKs for 95% of them to be ACKed, which would trigger innfeed into
bypassing the CHECKs.
I don't have the logging James has been hinting at incorporating into
innfeed to determine the exact breakdown of rejects, but I imagine that
the bulk of them are duplicates which have arrived at Maxwell via another
source since the time I gave the CHECK. Innfeed does log when it switches
into and out of NO-CHECK mode, should I happen to want to browse the logs
for that.
news.muni.cz
seconds: 9431 art. timeout: 150 ip name: 147.251.6.10
offered: 33013 resp. timeout: 600 port: 119
accepted: 27854 want streaming: yes active cxns: 2
refused: 1365 is streaming: yes sleeping cxns: 0
rejected: 1335 max checks: 30 initial cxns: 1
missing: 0 on threshold: 95.0% max cxns: 2
deferred: 0 off threshold: 90.0%
or 3.50 ar 2.95 rr 0.14 jr 0.14
missing 0 spooled 44
21 packets transmitted, 21 packets received, 0% packet loss
round-trip min/avg/max = 16/71/296 ms
A single connection probably is adequate for this nearby peer, but two
gives me breathing room to handle the inevitable backlogs.
> As far as my recommendation in the documentation to not run more
> then 3 dnewslinks in parallel to any given destination, there are
> two reasons. First, a streaming connetion to an INND destination
> will tend to load down that destination. Having more then three
> and the INND destination will have trouble handling its other
> incoming feeds because it will be spending all of its time on
> yours. Secondly, you get diminishing returns with INND destinations
> once you get past 3 simultanious streaming links. If it cannot
> keep up with 3, it probably cannot keep up with 4, 5, or 6...
I'll respectfully disagree, postulating that the writing to the spool
is what causes INN to slow. What you say is absolutely correct where
peers are nearby on fast connections, where no more than one connection
should be needed. After all, with anywhere from 60 to 80 simultaneous
connections, including five from a not-too-far-away peer, last night, that
did not slow my INN from handling more than one article/second on each of
three incoming connections from Maxwell over a connection most of y'awl
would cringe at. In this part of the world, bandwidth and flakiness of
the connection are important. On the other hand, when feeding from a
local machine, I can handle from 40 to 50 incoming articles per second,
though INN does get a bit sluggish at those times, taking a second to
return the banner greeting. As long as you're only sending a stream with
4 to 8 articles/second, I shouldn't be in too much pain.
As you see from the above example, I have 8 connections open to
Maxwell, with a rather small number of CHECKs to be given before awaiting
a response. Innfeed dynamically adjusts the number of connections to
match the responsiveness of the peer, and six hours from now, when most of
this continent is asleep, the number of needed connections will drop to
one. Likewise, some of my outgoing feeds are getting a backlog at
present, but these backlogs will disappear when the backbones clear out a
bit. To feed a site such as myself, you would see a definite improvement
with 6 connections rather than 3 most of the time. I realize this is
untrue for the bulk of you lucky folks with better connections, but it is
probably a significant factor for quite a few sites, although there will
be some point where an I/O-bound site is not helped by adding more
connections.
Other people who have planned their resources for this experimental
filesystem better than I have are seeing much more stressful conditions
than I am, more approching what the real world will see. I'm only doing
somewhere around 1 200 000 history lookups over 24 hours; one other site
is doing something like 3 or 4 times as many, and I have no idea what
another site is seeing. This is with conventional INN code save for the
interface to the spool filesystem, though there are OS-dependent tweaks
one can do to optimize history database lookups without compromising your
history retention time. My single disk containing the spool, history,
*and* logs is typically only about 10% busy including rereading spooled
backlogged articles to most peers; others are advised not to be so
reckless.
> You also want to be sure that you are not saturating your network.
Well, um, yeah... That (along with the limited resources I put into
the machines here) is why I'm not really able to stress things and see
just how well they can do. Frustrating, ain't it...
-Barry Bouwsma http://www.dhp.com/~kibo/bouwsmb0.html
Official FAQ Maintainer
(apologies for the topic drift from information to pointless bragging)
Technical Details
Message-ID:
<Pine.LNX.3.93.970324214344.6808e-100000@radostne-vanoce.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-mailReferences:
<5h1r3f$d2t@epimetheus.algonet.se> <5h416e$mev@flea.best.net> <5h6kl9$gl2@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.93.970324214344.6808e-100000@radostne-vanoce.radio.cz> Subject: Re: Some Diablo questions! Date: Mon, 24 Mar 1997 00:00:00 +0000 From: Cracker Buster <luser@Radio.CZ> References: <5h1r3f$d2t@epimetheus.algonet.se> <5h416e$mev@flea.best.net> <5h6kl9$gl2@flea.best.net> 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: 228052827 Organization: Radio Praha -- Cesky Rozhlas 7 Reply-To: ag786@yfn.ysu.edu Newsgroups: news.software.nntp NNTP-Posting-User: luser