Article View: news.software.nntp
Article #22053Re: feeders opening multiple connections
From: Tsar Barry BOFHwsma
Date: Thu, 02 Oct 1997 00:00
Date: Thu, 02 Oct 1997 00:00
80 lines
4743 bytes
4743 bytes
On Wed, 1 Oct 1997, Todd Romero wrote:
> I was wondering what kind of performance impact a feeder who opens up
> multiple connections, has on the server taking the feeds.
Depends on whether your server can handle the additional input
effortlessly, or if you are struggling to keep up.
> when an incoming feed opens up 6 simultaneous connections like that, is
> that the same things as having 6 seperate feeds?? And is the number of
> feeds proportional to performace degradation?
No. I mean yes. Well, maybe. From the perspective of the site being
fed (that's you), you can't tell if Sprint has opened six connections, or
if only one connection has been opened from Sprint and five other feeders
have opened one connection each, unless the connections from Sprint are
spending most of their time idle, which it doesn't sound like is the case.
It seems to be a common belief that multiple connections are capable
of bringing INN to its knees. This is not necessarily so, but it
certainly appears that way when your site isn't performing up to par.
Some months ago, I was handling around 100 connections without difficulty,
which I increased to around 200, without completely crippling my machine.
It takes INN a fixed amount of time to service each connection, before
it can get around to the next one. You need to to a history lookup for
each offered article, plus you have to write those articles you accept to
the spool. As you add more incoming feeds, you may not be writing more
articles to the spool, but you're doing a lot more history lookups, which
may take serveral ms to several dozen ms each. At 20ms per history
lookup, mounting your spool on /dev/null, that means you can only handle
50 lookups per second, or the equivalent of about five incoming full
feeds.
That's not including the time it takes to write each article. If
instead you mount your spool on a normal filesystem, it'll take probably
several dozen ms per article write. Combine this delay with the delay
introduced by history lookups and you'll be able to calculate the limit
of articles offered and accepted per second. Adding additional incoming
feeds, whether over a single connection, or over parallel connections,
only means more work for INN.
What your feeding site will see is that you backlog badly over a
single connection, while by opening more parallel connections, that feeder
is able to grab more of your INN's time and get more work done on your
backlog. In the case of Sprint, running Cyclone, a fixed number of
connections are opened, and the offered articles are divided evenly
between each, whether or not you backlog, as opposed to innfeed, where
additional connections are opened and are active when a single connection
is insufficient.
The number of feeds is not necessarily proportional to performance
degradation, unless you are vulnerable to said degradation, in which case
the degradation you observe as being proportional to the number of feeds
really is a measure of how badly tuned your system is. Make sense? Oh
well.
That is, fifty idle connections into your machine will slow the one
active connection insignificantly. However, fifty active connections
means fifty times the number of history lookups (if you can keep up). If
these fifty connections are able to slow you down, then you really want to
install Joe Greco's invaluable idle timer patch, observe the numbers that
result, and then start tuning, by doing something with the history
database in order to increase your ability to handle multiple feeds, or
the time it takes to write articles in order to keep up with a single full
feed, or both. Most people will need to attack both.
Take it from many people who have been able to tune their systems to
handle many multiple incoming feeds, you've got problems, and it only
appears to make things better by reducing the number of connections or
doing other things that make life miserable for the sites feeding you.
Barry Bouwsma
will eat fine cheeses for food
Technical Details
Message-ID:
<Pine.LNX.3.96.971002083637.12853A-100000@marley.vszbr.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:
<34327324.64B5@mns.net>Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.96.971002083637.12853A-100000@marley.vszbr.cz> Subject: Re: feeders opening multiple connections Date: Thu, 02 Oct 1997 00:00:00 +0000 From: Tsar Barry BOFHwsma <barry@vszbr.cz> References: <34327324.64B5@mns.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: 277260258 Organization: Ad Hoc Cabal for the Destruction of Usenet Reply-To: ag786@yfn.ysu.edu Newsgroups: news.software.nntp