Thread View: news.software.nntp
3 messages
3 total messages
Started by Chris Sedore
Tue, 25 Mar 1997 00:00
Re: Some Diablo questions!
Author: Chris Sedore
Date: Tue, 25 Mar 1997 00:00
Date: Tue, 25 Mar 1997 00:00
146 lines
8687 bytes
8687 bytes
Cracker Buster <luser@Radio.CZ> wrote in article <Pine.LNX.3.93.970324214344.6808e-100000@radostne-vanoce.radio.cz>... [...] > 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. > Note that you do not necessarily need bandwidth lag. If you look at stats for Maxwell (http://nntprelay.maxwell.syr.edu/stats.html), in the top section you'll notice a statistic called "precommit_saves". This is a 25 entry (configurable) circular cache of recently 238'd (or 335'd) articles. We implemented this to cut down on this exact problem: we were rejecting articles solely because two (or more) peers had received 238s for the article. This number now runs around 1.6x the number of articles received--all of these would have been transmitted and rejected without this cache. Many of our articles are offered multiple times in a window of less than 2 seconds (quite a few in less than 1 second). The more peers, the worse the problem gets, and it is pretty bad with the roughly 77 incoming feeds we accept. We do still reject some because of multiple delivery (the takethis_refuse statistic). This does have a downside: if the transfer fails, we might not get that article. To solve this problem, I'm working on a weighting system to allow multiple 238s to be issued depending on who asks, up to a maximum overcommit limit. Interestingly enough, it also caused a significant shift in our feed base, in terms of who got credit for an incoming article. It also reduced our outgoing acceptance rate some. For most of our big peers, we have given up on outgoing streaming entirely--we get 238's at better than 50%, but every article after the first is then rejected. We just use IHAVE. In some rare cases, I've found that actually forcing the connection into NoCheck will generate >90% acceptance rate with small (<4k) articles. I'm hoping to work out some auto-tuning code to "open and close" the check size window, maybe even to the point of going to IHAVE in the case of a calculated window of 1. One other point I'd like to make: The streaming protocol should differentiate between reject (439) and refused. Otherwise calculating when to go in and out of NoCheck is difficult because you do not know whether you're being rejected or refused. I'd like to be able to return 438 in the takethis refused case, though this might muddy other waters, so I'd be happy with a new code, too. [...] > > 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. My impression was that you didn't need 95% to be acked, just that 95% of the acknowledgements received had to be positive. [...snip...] > 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. The real here is latency and packet loss. If latency is high then you have an upper limit on transactions/sec you can do. Packet loss makes this even worse. More connections will help over a high-latency link (assuming that adequate bandwidth is available). Host response is also crucial, and this is where INN and some others often have trouble--you've got to have response to history lookup based commands in <10ms to sustain feeds over slow links, or you end up contributing to the problem. > 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. In the case of Maxwell specifically, you should be able to set that window to what you expect to be able to transfer in 4 seconds (the approximate life of a 25 entry queue). Currently, you'll get exclusive lock-in for that time. In the future, you may share lock-in depending on how we tune things. > 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. We normally do 8-9 million history lookups per day for incoming check/takethis/ihave operations on our Pentium 133/96MB/4 striped SCSI2 disks (3 2gb 5400rpm and 1 1gb 5400rpm). We average around 50% CPU utilization and the disks run 20-40% utilized most of the time. -Chris
Re: Some Diablo questions!
Author: Cracker Buster
Date: Tue, 25 Mar 1997 00:00
Date: Tue, 25 Mar 1997 00:00
134 lines
8035 bytes
8035 bytes
On 25 Mar 1997, Chris Sedore wrote:
> If you look at stats
> for Maxwell (http://nntprelay.maxwell.syr.edu/stats.html), in the top
> section you'll notice a statistic called "precommit_saves". This is a 25
> entry (configurable) circular cache of recently 238'd (or 335'd) articles.
> We implemented this to cut down on this exact problem: we were rejecting
> articles solely because two (or more) peers had received 238s for the
> article. This number now runs around 1.6x the number of articles
> received--all of these would have been transmitted and rejected without
> this cache. Many of our articles are offered multiple times in a window of
> less than 2 seconds (quite a few in less than 1 second). The more peers,
> the worse the problem gets, and it is pretty bad with the roughly 77
> incoming feeds we accept. We do still reject some because of multiple
> delivery (the takethis_refuse statistic).
>
> This does have a downside: if the transfer fails, we might not get that
> article. To solve this problem, I'm working on a weighting system to allow
> multiple 238s to be issued depending on who asks, up to a maximum
> overcommit limit. Interestingly enough, it also caused a significant shift
> in our feed base, in terms of who got credit for an incoming article. It
> also reduced our outgoing acceptance rate some.
What response code do you return to the additional peers which offer
you an article? If I recall, the response codes 436/431 can be used by
non-streaming/streaming (or vice versa, whatever) feeds to say ``Try again
in a bit'' with the intent of being used in just this situation. (Some
sites give this code in response to full disk or other problems, which
would be better served by a 400 response, as 431/436 is a hint that the
next offered article might succeed, which is definitely not true when a
disk is filled.)
It's also instructive to compare your statistics over time, so that
one can see which peers always perform well, which ones are connectivity-
limited on weekdays, and which ones just generally suck all the time.
Unless the always-poor ones are at the end of a 64k satellite hop, they
probably will not be helped by additional parallel connections, while the
ones such as myself which fluctuate wildly around the clock will be
helped, particularly given non-streaming feeds (streaming being ideal for
less-than-ideal connections). Hmmm, would be interesting to plot a graph
of % of articles processed over time for your peers which aren't above 90%
or below 10% overall.
> For most of our big peers, we have given up on outgoing streaming
> entirely--we get 238's at better than 50%, but every article after the
> first is then rejected. We just use IHAVE. In some rare cases, I've found
> that actually forcing the connection into NoCheck will generate >90%
> acceptance rate with small (<4k) articles.
It depends on your peer too. This is where fine-tuning of (in my
case) the innfeed configuration makes the difference -- I would get the
same result by setting the maximum number of CHECKs to 1 or disabling
streaming. I'm now seeing 6 connections from Maxwell over my link in the
early morning hours, with transfer rates similar to
Mar 25 05:22:15 4H:kafka innd: news.maxwell.syr.edu:48 checkpoint seconds
577 accepted 393 refused 124 rejected 7
Note that this particular machine only rejects articles due to duplicates
or problems such as bad Message-IDs or being too old (which ought not to
be a problem with most of its peers like Maxwell), as it is configured to
treat any newsgroup name like foo.bar.baz.sex.pictures.grubor.rot13.cancel
the same as news.software.nntp, and even accepts unmoderated posts to
alt.sysadmin.recovery (oh the shame, the horror). For reasons which would
be obvious, I don't plan to support readers on this machine, while it is
quite possible I'd do that on the second machine with the same filesystem
(I did not write the code and am not trying to take any credit for it,
merely putting forth my observations on how it performs).
At the same time, Primenet's News Expedience, which has gone
significantly downhill recently, has a connection to me which looks like
Mar 25 05:34:09 4H:kafka innd: nntp.primenet.com:45 checkpoint seconds
5354 accepted 942 refused 12110 rejected 58
The initial strategy of Primenet was to issue a large number of
CHECKs, which works well for peers which accept a large percentage of what
is offered, or a small percentage. At points in between, this is where
rejects due to multiple delivery becomes a problem. I could probably go
through my innfeed configuration file once again and increase the number
of CHECKs I give Maxwell at a shot and lower the number of simultaneous
connections, but my present value dates from a time when I was giving a
somewhat larger share than today (probably due to the changes mentioned,
or to the addition of more peers with better connectivity whom I also
feed).
The downside of a small number of CHECKs is that with the connectivity
I have, I must compensate by opening a larger number of connections. As
I'm already dividing outgoing articles three ways by size getting a ratio
by count of 24:3:1, most peers are going to wig out when they see more
than half a dozen simultaneous connections from me. Oh well... Then
again, if it requires 15 connections to keep from backlogging to a peer
which performs well, you both would probably do better to relay the news
through a common peer to which you both have better connectivity.
Just as an example of the difference the responsiveness of the
connection makes, here's what I see now for what I send in the small
(size <4k) article feed to Maxwell:
news.maxwell.syr.edu
seconds: 41061 art. timeout: 150 ip name: 128.230.129.107
offered: 85656 resp. timeout: 900 port: 119
accepted: 1663 want streaming: yes active cxns: 3
refused: 76144 is streaming: yes sleeping cxns: 0
rejected: 7810 max checks: 6 initial cxns: 1
missing: 0 on threshold: 95.0% max cxns: 8
deferred: 0 off threshold: 90.0%
or 1.79 ar 0.04 rr 1.69 jr 0.06
missing 0 spooled 451
One problem with my offerings that are apparently wanted is that they
are bursty in nature, with perhaps 3 or 4 never-before-seen-by-the-world
articles arriving at my site in a tenth of a second, and with my
connectivity to Maxwell (or many other sites), I may get these articles to
a site in Scandinavia over a better link, which has better connectivity to
the US, before the second or third one has been completely transferred to
Maxwell.
> > 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.
>
> My impression was that you didn't need 95% to be acked, just that 95% of the
> acknowledgements received had to be positive.
My apologies for my unclear terminology here and in reference to
bandwidth/latency. One to two hours of sleep a night is *not* enough
over an extended period of time. You are correct.
-Barry Bouwsma http://www.dhp.com/~kibo/bouwsmb0.html
Official FAQ Maintainer
Re: Some Diablo questions!
Author: Matt Dillon
Date: Tue, 25 Mar 1997 00:00
Date: Tue, 25 Mar 1997 00:00
123 lines
6497 bytes
6497 bytes
:In article <01bc38ca$fd538630$1f8fe680@spring>,
:Chris Sedore <cmsedore@maxwell.syr.edu> wrote:
:>Cracker Buster <luser@Radio.CZ> wrote in article
:><Pine.LNX.3.93.970324214344.6808e-100000@radostne-vanoce.radio.cz>...
:>[...]
:>> 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
:...
:>>
:>Note that you do not necessarily need bandwidth lag. If you look at stats
:>for Maxwell (http://nntprelay.maxwell.syr.edu/stats.html), in the top
:>section you'll notice a statistic called "precommit_saves". This is a 25
:>entry (configurable) circular cache of recently 238'd (or 335'd) articles.
:>We implemented this to cut down on this exact problem: we were rejecting
:>articles solely because two (or more) peers had received 238s for the
:>article. This number now runs around 1.6x the number of articles
:...
This, BTW, is a totally awesome way of dealing with the race
problem. I am going to implement something similar in Diablo too.
:>For most of our big peers, we have given up on outgoing streaming
:>entirely--we get 238's at better than 50%, but every article after the
:>first is then rejected. We just use IHAVE. In some rare cases, I've found
:>that actually forcing the connection into NoCheck will generate >90%
:>acceptance rate with small (<4k) articles.
Another interesting statistic, though I worry that peers with
latency would require many parallel connections to make it
efficient. The magic number is still 4 or 5 checks/sec per
incoming feed site so it isn't too bad. I think if a proper
streaming solution can be found, that I would rather stick
with streaming if only for the reduced packet transaction rate
and better isolation (due to tcp windowing) from laggy connections.
:>I'm hoping to work out some auto-tuning code to "open and close" the check
:>size window, maybe even to the point of going to IHAVE in the case of a
:>calculated window of 1.
I'm doing this with diablo's dnewsfeeds based on the number of rejects
it gets. It seems to work pretty well. It's a quick-close-up slow-release
algorithm. However, it might get hung up on destinations which tend
to reject a lot of articles due to newsgroups not matching what they
will accept. I'm not sure what to do about that yet.
:>One other point I'd like to make: The streaming protocol should
:>differentiate between reject (439) and refused. Otherwise calculating when
:>to go in and out of NoCheck is difficult because you do not know whether
:>you're being rejected or refused. I'd like to be able to return 438 in the
:>takethis refused case, though this might muddy other waters, so I'd be
:>happy with a new code, too.
Total agreement. Right now we can't tell with the current streaming
protocol.
:>My impression was that you didn't need 95% to be acked, just that 95% of
:>the
:>acknowledgements received had to be positive.
I personally believe that in a streaming environment, it costs
very little to do a check of every article rather then waste
even a small percentage of network bandwidth on unnecessary article
transfers.
:>> 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.
:>
:>We normally do 8-9 million history lookups per day for incoming
:>check/takethis/ihave operations on our Pentium 133/96MB/4 striped SCSI2
:>disks (3 2gb 5400rpm and 1 1gb 5400rpm). We average around 50% CPU
:>utilization and the disks run 20-40% utilized most of the time.
:>
:>-Chris
Ooh.. let me run some stats too.... this is fun! ok, news1.best.com does
around 4.7 million history file lookups a day.
Transmitted Articles Sent Dups Rejs
------- ------- -------
TOTAL 4605781 3942471 679983
Received Articles Accept Test
------- -------
TOTAL 321745 4728639
This is for approximately one day. Most of the transmitted
articles are to customer leased lines. This is about what I
expected... maxwell runs about twice as many full incoming feeds as we
do, and is much better connected. In fact, we pull a significant
fraction of articles from maxwell... they beat out most of our
other feeds most of the time.
Transmitted Articles Sent Dups Rejs Total %Acc/Skip %Full
------------------------------ ------- ------- -------
....... others not listed
news.maxwell.syr.edu 1595 186805 0 188400 0%/ 99% 34%
newsxfer3.itd.umich.edu 3319 180728 0 184047 1%/ 98% 33%
Received Articles Accept Test
------------------------------ ------- -------
....... others not listed
news-out.internetmci.com 3194 234251
moe.thenet.net 4693 196386 1%
news.nacamar.de 13651 132932 3%
bsd.fs.bauing.th-darmstadt.de 15275 300480 3%
newsfeed.nacamar.de 80160 381029 18%
news.maxwell.syr.edu 134204 369657 30%
cliffs.rs.itd.umich.edu 169485 528399 38%
We run with a 5 minute spool, so maxwell and umich are basically within
1 minute of each and probably even less. I've done tests in the past
where I have deliberately lagged incoming feeds from particular hosts
and find that at least 7 of our peers are synchronized within 10 minutes
of each other. For maxwell, I'm sure they have at least 20 that are
synchronized within seconds of each other.
-Matt
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