Thread View: news.software.nntp
7 messages
7 total messages
Started by Dave Pascoe
Sun, 08 Feb 1998 00:00
DIABLO parallel connection limit & Cyclone
Author: Dave Pascoe
Date: Sun, 08 Feb 1998 00:00
Date: Sun, 08 Feb 1998 00:00
18 lines
1242 bytes
1242 bytes
I've been increasingly bumping into problems with peer sites running Diablo. I'm running Cyclone 1.3.10 and occasionally I get 502 rejected from them with errmsg "parallel connection limit is n". Typically I'm not running anywheree near n connections to them. Is Diablo not counting connections properly? How long does it hold state? It's especially amusing when there's 0 connections (i.e., I'm being rejected), as verified by netstat. -- Dave Pascoe | mailto:dave@mathworks.com | Voice: 508.647.7362 K M 3 T | http://www.mathworks.com | FAX: 508.647.7002 PGP fingerprint: 53 AD 71 88 2F AA 45 AC D0 2E 68 91 71 77 39 AF
Re: DIABLO parallel connection limit & Cyclone
Author: Dan Foster
Date: Sun, 08 Feb 1998 00:00
Date: Sun, 08 Feb 1998 00:00
68 lines
3537 bytes
3537 bytes
-----BEGIN PGP SIGNED MESSAGE----- In article <6blc87$nme$1@turing.mathworks.com>, Dave Pascoe <dave@mathworks.com> wrote: >I've been increasingly bumping into problems with peer sites running >Diablo. I'm running Cyclone 1.3.10 and occasionally I get 502 >rejected from them with errmsg "parallel connection limit is >n". Typically I'm not running anywheree near n connections to them. > >Is Diablo not counting connections properly? How long does it hold >state? > >It's especially amusing when there's 0 connections (i.e., I'm being >rejected), as verified by netstat. There might be a Path MTU Discovery issue here. I was bit by that *exact* behavior with a peer site until I whipped out tcpdump and watched a NNTP connection from the initial SYN to the point where it 'hung'... Peer was running a Solaris box (which enables PMTUD by default unless one disables it with a ndd option) and there were some ICMP filtering somewhere in the path... so connection would start slowly, then build up to 1500 bytes sized packets. Unfortunately, for *whatever* reason, the next hop from us on the path has a MTU of 1479 bytes... So >1479 byte packets were getting dropped, but due to ICMP filtering, Solaris box didn't get the ICMP error message (type 3 code 4, I think?). After a default of 2 minutes of no ACKs being seen originating from us, the Solaris tcp stack kills the connection outright on its side... no RST, no FIN, no nothing... kernel just released resources. Meanwhile, our box still thought the connections were open... had lots of them in netstat. It wasn't until the server software did a write to the socket did it realize that there were problems, and got the connections terminated on our side. As a workaround for the PMTUD issue, we enabled socket keepalives which helped a lot in having our box kill off any dead connections every 10 minutes. Then eventually I realized what the problem was... and couldn't get router admin to remove ICMP filtering *or* to up the MTU to 1500... so I had to set the MSS to 1439 bytes (MTU of 1479 minus 20 byte TCP header minus 20 byte ICMP header) in order for all the packets to fit that #$()@#$)(@#$ 1479 bytes-sized hole. Non-optimal workaround, but no other choice. Soon as I did that, all the too-many-cnxts open and *anemic* feed problems went away that second :) Any questions, feel free to mail me. - -Dan P.S. My box was AIX v4 running Diablo and theirs was Solaris running Cyclone (But eventually traced to combinations of idiocy on part of network admins rather than being a Diablo/Cyclone issue) -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNN49xhIzLSiSunCZAQGh/AP/WuizVW+kFA9cSGxxLyFyqYZSXQKL6gV3 064LAsnHbdWg1A2I9or2zcIXQBtaHQvVp2e02UJJVnIXBKEGtwvhAD+E+FGC/WeA xKlvSvlm/wUEANqeHh4mdm49A6CLaLakAkvaoFSLHE6WfwVcrzcWW2/rrbV8HSwB 8brpqaySx60= =AR2I -----END PGP SIGNATURE-----
Re: DIABLO parallel connection limit & Cyclone
Author: Jeff Garzik
Date: Mon, 09 Feb 1998 00:00
Date: Mon, 09 Feb 1998 00:00
30 lines
1810 bytes
1810 bytes
Jeremy Powell (jeremy@mci.net) wrote: : Dave Pascoe wrote: : > : > I've been increasingly bumping into problems with peer sites running : > Diablo. I'm running Cyclone 1.3.10 and occasionally I get 502 : > rejected from them with errmsg "parallel connection limit is : > n". Typically I'm not running anywheree near n connections to them. : > : > Is Diablo not counting connections properly? How long does it hold : > state? : I can confirm the same symptoms to gatech.edu. I sent them some : email to have them investigate, but I have yet to hear back. I : have three streams open to them and their Diablo insists that I've : topped 22 parrallel connections. Bizarre. Yep. Diablo is not counting properly. I have seen this quite a bit with Diablo peers I was feeding; often, this behavior occurs when no label is specified for a host in /news/diablo.hosts. When I ran Diablo on my main feeder a while ago, I had so much trouble with the incoming cxn counting that I was forced to turn it off. -- Jeff Garzik Typhoon, Cyclone, Diablo, and INN http://www.spinne.com/usenet/ News tuning and consulting
Re: DIABLO parallel connection limit & Cyclone
Author: Jeremy Powell
Date: Mon, 09 Feb 1998 00:00
Date: Mon, 09 Feb 1998 00:00
30 lines
1702 bytes
1702 bytes
Dave Pascoe wrote: > > I've been increasingly bumping into problems with peer sites running > Diablo. I'm running Cyclone 1.3.10 and occasionally I get 502 > rejected from them with errmsg "parallel connection limit is > n". Typically I'm not running anywheree near n connections to them. > > Is Diablo not counting connections properly? How long does it hold > state? > > It's especially amusing when there's 0 connections (i.e., I'm being > rejected), as verified by netstat. > > -- > Dave Pascoe | mailto:dave@mathworks.com | Voice: 508.647.7362 > K M 3 T | http://www.mathworks.com | FAX: 508.647.7002 > PGP fingerprint: 53 AD 71 88 2F AA 45 AC D0 2E 68 91 71 77 39 AF I can confirm the same symptoms to gatech.edu. I sent them some email to have them investigate, but I have yet to hear back. I have three streams open to them and their Diablo insists that I've topped 22 parrallel connections. Bizarre. Jeremy Powell jeremy@mci.net
Re: DIABLO parallel connection limit & Cyclone
Author: bill davidsen
Date: Tue, 10 Feb 1998 00:00
Date: Tue, 10 Feb 1998 00:00
25 lines
1802 bytes
1802 bytes
In article <FOJD.7$Na7.26576@news2.teleport.com>, Jeff Garzik <jgarzik@raleigh.normnet.org> wrote: | Yep. Diablo is not counting properly. I have seen this quite a bit | with Diablo peers I was feeding; often, this behavior occurs when | no label is specified for a host in /news/diablo.hosts. When I ran | Diablo on my main feeder a while ago, I had so much trouble with the | incoming cxn counting that I was forced to turn it off. From the diablo.hosts file: # The second field is a label which matches an appropriate entry in # the dnewsfeeds file. The label is NO LONGER OPTIONAL. It is now a # REQUIRED field. I have sites I feed which I would prefer not even have an entry, since I'm running my Diablo-to-uucp gateway for them and will not be getting a TCP feed back. -- Bill Davidsen <davidsen@tmr.com> CTO, TMR Associates "She would hold a grudge until it died of old age. Then she would have it stuffed and mounted." _Field of Dishonor_ by David Weber
Re: DIABLO parallel connection limit & Cyclone
Author: Another Victim of the Usenet Maf...
Date: Tue, 10 Feb 1998 00:00
Date: Tue, 10 Feb 1998 00:00
89 lines
5813 bytes
5813 bytes
On Mon, 9 Feb 1998, Jeff Garzik wrote:
> : > I've been increasingly bumping into problems with peer sites running
> : > Diablo. I'm running Cyclone 1.3.10 and occasionally I get 502
> : > rejected from them with errmsg "parallel connection limit is
> : > n". Typically I'm not running anywheree near n connections to them.
> : have three streams open to them and their Diablo insists that I've
> : topped 22 parrallel connections. Bizarre.
> Yep. Diablo is not counting properly. I have seen this quite a bit
> with Diablo peers I was feeding; often, this behavior occurs when
> no label is specified for a host in /news/diablo.hosts. When I ran
> Diablo on my main feeder a while ago, I had so much trouble with the
> incoming cxn counting that I was forced to turn it off.
Well, that's better than some of the sites I see. I noticed one peer
was rejecting all my connections saying that my limit was one single
connection. Of course, since I divide all my outgoing feeds by size into
several streams (so that one news.lists.filters article doesn't hold back
several dozen other articles), and further, often wind up supplying a
significant amount of news to peers over networks which cannot support the
15 to 20 arts/sec prime-time rates over a single connection (I've even
been sending CHECKs to Cyclone peers at less than one every ten seconds, a
rate which improves to 50/sec when the lusers go home), and keeping the
number of CHECKs down to a minimum, often going non-streaming to minimize
the lag between offering an article and actually delivering it...
Anyway, what I wanted to say was that with a network that makes a pogo
stick look like a model of stability, I often see connections time out, so
that the remote peer is likely to think the connection is still active,
even when I've long given up on it. I hate crashes, especially when
they're out of my control. Even when they're not, too.
In any case, this is something I've wondered about, and not gotten
authoritative answers yet. I've heard that Diablo forks itself to death
quickly when put into high-load situations, like we had been seeeing at
Tele Danmark even before I was turned toose on the news swervers. (For
example, I've got open some 12 to 15 parallel non-streaming connections
from one of my feeder machines over a tolerable connection to the feeder
here, which would probably cause most newsadmins running Diablo to choke
on their morning coffee, but doesn't make me blink [unless I see a queue
outbound, to which the answer is, aieee, more connections dammit and
fast!].)
Once I discovered the 256-fd select loop problem and worked around it,
so that our machine handles 300 incoming connections without blinking
either, yet saw that certain peers running Cyclone, of all products, were
putting a limit on less than what our open-as-needed feeder wanted to use
to deliver articles without backlogging... Anyway, would someone care to
enlighten me on what the penalty is for each popular news swerver for each
connection open? Cyclone, being threaded, so I've been told needs a 1M
thread for each connection, but otherwise, most Cyclone admins have told
me to open whatever I need to get the articles through, particularly when
meeting my desire not to waste any bandwidth due to rejected duplicates.
In the case of INN, with its select loop, I think I recall reading
that one particular OS had a patch to reduce the time needed to cycle
through 256 fd's down from ms to us, or something. In our case, with
history lookups at 100 000 in a second or two, article write times from 1
to 5ms, I measure no significant slowdown with 300 incoming connections in
spite of the single-threaded nature of INN. We are a bit short of memory,
which would be allocated to buffers for incoming connections, but it is my
guess that what is needed pales when compared with the size of the history
databases we keep to store 15 days of a full newsfeed.
Anyway, I see no need to limit incoming connections, particularly when
one Cyclone feeder said he'd be seeing problems well before what I figured
would be our next bottleneck (without rebuilding the kernel), and
especially when seeing how much bandwidth we're wasting on duplicate
articles from poorly-tuned incoming feeds, which I'd much rather see as
non-streaming feeds over 25 channels, at least, until our backbone is no
longer at 100% capacity most of the day (and not just news either).
Hmmm. I seem to have forgotten what the original purpose of this rant
was meant to be. Ah, yes -- seeking comments from more knowledgable
individuals about the neeeds of different software (and the capabilities
thereof) for handling additional incoming connections.
Over to you...
Barry Bouwsma, for the Tele Danmark Newsbastard Squad
Newsadminning Overkill, a condition for which there exists no 12-step
recovery program, but which, rumour has it, can be treated
Re: DIABLO parallel connection limit & Cyclone
Author: Jeff Garzik
Date: Tue, 10 Feb 1998 00:00
Date: Tue, 10 Feb 1998 00:00
33 lines
2106 bytes
2106 bytes
bill davidsen (davidsen@tmr.com) wrote: : Jeff Garzik <jgarzik@raleigh.normnet.org> wrote: : | Yep. Diablo is not counting properly. I have seen this quite a bit : | with Diablo peers I was feeding; often, this behavior occurs when : | no label is specified for a host in /news/diablo.hosts. When I ran : | Diablo on my main feeder a while ago, I had so much trouble with the : | incoming cxn counting that I was forced to turn it off. : From the diablo.hosts file: : # The second field is a label which matches an appropriate entry in : # the dnewsfeeds file. The label is NO LONGER OPTIONAL. It is now a : # REQUIRED field. Unfortunately this appears to have been a requirement even on the versions where it was not stated as such. Even with a label in diablo.hosts, I have experienced problems with connection counting. : I have sites I feed which I would prefer not even have an entry, : since I'm running my Diablo-to-uucp gateway for them and will not be : getting a TCP feed back. Having a null label seems to work fine for sites without outgoing feeds; just be careful not to strangle your incoming feeds by putting several under a single null label -- and then applying connection limits. -- Jeff Garzik Typhoon, Cyclone, Diablo, and INN http://www.spinne.com/usenet/ News tuning and consulting
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