🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Yves Touchette Wed, 15 Jan 1997 00:00
very long time to open a conn.
#14068
Author: Yves Touchette
Date: Wed, 15 Jan 1997 00:00
15 lines
1102 bytes
Hi,

I'm running INN on a sparc 5.  It's gettting REALLY slow. The main
problem is the time it takes to open a connection. If i do "telnet news
119" from my linux box the coonection stay in SYN_SENT state for a
minute or two... after that the connection is open everything is pretty
fast.

Any idea what would cause the connection to be so slow at startup?
note: that this problem does note exist on other port...

-yvest

Re: very long time to open a conn.
#14167
Author: Avi Freedman
Date: Fri, 17 Jan 1997 00:00
22 lines
1169 bytes
Yves Touchette (goth@microtec.net) wrote:
: Hi,
: 
: I'm running INN on a sparc 5.  It's gettting REALLY slow. The main
: problem is the time it takes to open a connection. If i do "telnet news
: 119" from my linux box the coonection stay in SYN_SENT state for a
: minute or two... after that the connection is open everything is pretty
: fast.
: 
: Any idea what would cause the connection to be so slow at startup?
: note: that this problem does note exist on other port...
: 
: -yvest

Your select() loop isn't coming around.
Are you running 1.5.1, or 1.4 with the streaming patch?

Avi


Re: very long time to open a conn.
#14175
Author: Jeff Woods
Date: Sat, 18 Jan 1997 00:00
16 lines
1238 bytes
Yves Touchette wrote:
> 
> If i do "telnet news 119" from my linux box the coonection stay in 
> SYN_SENT state for a minute or two... after that the connection is 
> open everything is pretty fast.
> 
> Any idea what would cause the connection to be so slow at startup?
> note: that this problem does note exist on other port...

Make sure your INADDR reverse lookup is valid in your name server for
the IP that you're telnetting FROM.  Some systems will wait until the
reverse DNS lookup times out before letting you in.


Re: very long time to open a conn.
#14633
Author: Simon Ritchie
Date: Fri, 31 Jan 1997 00:00
89 lines
4278 bytes
Jeff Woods (jeff@delta.com) wrote:
: Yves Touchette wrote:
: > 
: > If i do "telnet news 119" from my linux box the coonection stay in 
: > SYN_SENT state for a minute or two... after that the connection is 
: > open everything is pretty fast.
: > 
: > Any idea what would cause the connection to be so slow at startup?
: > note: that this problem does note exist on other port...
: 
: Make sure your INADDR reverse lookup is valid in your name server for
: the IP that you're telnetting FROM.  Some systems will wait until the
: reverse DNS lookup times out before letting you in.


I have a similar problem to the one Jeff reports, and I don't
think that Yves' answer explains what I see.
 
In my case. I'm running inn 1.4 unoff on a SunOS machine, and
inn 1.5 running under Solaris.  One machine is a slave of the
other.
 
Generally, both machines run fine, but several times a day
one of them will "freeze" in this way for ten seconds or longer.
If it goes on for too long, then any NNTP clients trying to
connect, time out, and the users think the server has crashed.
After a time, it just carries on, in fact, it still does things
while the link is frozen (see later).
 
Sometimes, but not always, both servers freeze up simultaneously,
so I think that the problem may be something to do with the news
coming in from feed sites.  However, it's nothing so simple as
they freeze up whenever a feed site connects, and I don't think
it happens because big articles are coming across the link.
 
I wrote a script which repeatedly tries to connect to port 119
and tells me when it can't.  I then did various experiments, but
so far I've just found lots of things that don't cause the
problem.
 
It is not nnrpd hanging up on start-up.  I can tell this by
running ps on the news server.  The nnrpd demon for that
connection is not started until the point where the link
unfreezes.  It appears that innd is just not starting up the
demon for a while.
 
I've used strace to see what innd is doing during this period.
It's doing all sorts of things, such as reading news from the
feed sites and serving it to existing nnrpd sessions.    It's
not completely hung up waiting for something.  (A thread inside
it may be hung up, of course.)
 
I did notice that in a couple of cases, a child of innd
terminated just before the link unfroze.  I conjecture that this
may be some sort of limit problem, such that innd has to wait
for some load factor to go down before it can start up another
nnrpd demon.
 
I can't see anything like a parameter that limits the number
of simultaneous nnrpd sessions.  In any case, if that was
the problem, I would expect it to refuse connections, not hang
up.
 
There's a parameter in config/config.data called NNRP_LOADLIMIT
("Refuse newsreader connections if load is higher then this"),
but I see that this just causes nnrpd itself to terminate on
start up under certain load conditions.  As I said earlier,
it's not gettings as far as starting up an nnrpd.
 
There's a rather obscure reference in part 2 of the FAQ
(section 2.14) to a patch for Solaris 2.4 which partly cures a 
bug "socket select hangs in NON_BLOCKED mode", but not
completely.  The comment says that the problem continues
to affect heavily loaded machines.  However, I'm not running
that version of the OS and I would expect such bugs to be fixed
in 2.5.  (Hope springs eternal.)
 
So Yves might be right that it's some sort of networking
problem, taking ages to set up the initial socket or something,
but in my case it only happens every few hours.
 
Does anybody know any more about this?

Cheers

Simon

Re: very long time to open a conn.
#14697
Author: Seong-ho Chang
Date: Mon, 03 Feb 1997 00:00
13 lines
1095 bytes
On 31 Jan 1997 17:04:35 GMT, simon@dircon.co.uk (Simon Ritchie) wrote:
>: > If i do "telnet news 119" from my linux box the coonection stay in 
>: > SYN_SENT state for a minute or two... after that the connection is 
>: > open everything is pretty fast.

In my case, whenever news server was very busy for expire job, it took
a long time to response for connection request.
Why don't you check your server by using 'w' command?
You will notice the server is very busy that time.


Re: very long time to open a conn.
#15434
Author: Robert A Heller
Date: Fri, 28 Feb 1997 00:00
17 lines
1067 bytes
We have a similar connection problem on a 2.5 Solaris - all patches
applied.

--------------------------------------------------------
Name: Robert A Heller
E-mail: Robert A Heller <rah@mail.xl.ca>
Date: 02/28/97
Time: 16:16:34

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions
--------------------------------------------------------



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