Thread View: news.software.nntp
3 messages
3 total messages
Started by Todd Romero
Wed, 01 Oct 1997 00:00
feeders opening multiple connections
Author: Todd Romero
Date: Wed, 01 Oct 1997 00:00
Date: Wed, 01 Oct 1997 00:00
23 lines
1417 bytes
1417 bytes
I was wondering what kind of performance impact a feeder who opens up multiple connections, has on the server taking the feeds. For example, when sprintlink connects to a feeder of ours, it opens up 6 connections simultaneously. That basically cause everything to come to a crawl, as I look at the incoming news log, it seems to trickle in, and the reported sata on how many articles offered etc, goes WAY WAY down. It has another 2 other incoming feed from our other feeders also which crawls when Sprint is added. However, when I take out the Sprint feed that opens the 6 connections things fly! Question: 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? Thanks for any info you can offer on this subject =) todd
Re: feeders opening multiple connections
Author: 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
Re: feeders opening multiple connections
Author: Jerry Aguirre
Date: Wed, 15 Oct 1997 00:00
Date: Wed, 15 Oct 1997 00:00
42 lines
2681 bytes
2681 bytes
In article <34327324.64B5@mns.net>, Todd Romero <todd@mns.net> wrote: >For example, when sprintlink connects to a feeder of ours, it opens up 6 >connections simultaneously. That basically cause everything to come to a >crawl, as I look at the incoming news log, it seems to trickle in, and There are a couple of ways that multiple incomming feeds can slow down processing instead of speeding it up as intended. Most obvious would be if the extra RAM usage caused your system to page. I would tend to doubt this is the case though. A more obvious cause is if you are getting lots of duplicates and history lookup time is a limiting factor. In that case the 6 extra feeds will be causing innd to lookup a lot of message IDs in the history file but not really transfer any articles. In addition to the obvious additional load checking lots of existing IDs is actually more overhead than checking for missing IDs. The DBZ history lookup uses several hash values which if they fail to match it can quickly report that there is no such entry. There is no quick check that reports that a message ID really exists. The system has to go all the way to the history text file and compare strings. On most servers this is a huge file. Paging it into RAM can ruin your cache hit ratio. I would guess that your sprintlink feed is heavily backlogged. Thus when they connect you don't see any additional articles but you do see extra load from refusing duplicates. You might be able to tell them to delete the queue and start fresh. The log entries should tell you this as number of articles refused is reported there. You can also protect yourself from excessive load or abuse by limiting the number of incomming connections. For example you can run: ctlinnd param i 4 to limit your server to 4 incomming feeds. Unfortunately this could be 4 from sprintlink locking out your other feed. It depends on which has the more "aggressive" feeding software. You can make this change more permanent using the command line option to innd or the config.data file.
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