Article View: news.software.nntp
Article #16314Re: Some Diablo questions!
From: 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
Technical Details
Message-ID:
<01bc38ca$fd538630$1f8fe680@spring>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-mailShow Full Headers
Complete Article Headers
Message-ID: <01bc38ca$fd538630$1f8fe680@spring> Subject: Re: Some Diablo questions! Date: Tue, 25 Mar 1997 00:00:00 +0000 From: "Chris Sedore" <cmsedore@maxwell.syr.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: 228124670 Distribution: inet Organization: Syracuse University, Syracuse, NY (USA) Newsgroups: news.software.nntp