Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Ronny Ranerup <ronny.ranerup@axis.com>
Subject: Re: Slow rlogin
Date: Thu, 4 Sep 1997 14:36:52 +0200 (MET DST)	[thread overview]
Message-ID: <199709041236.OAA18568@zebara.axis.se> (raw)

Tom Browder scribbled:

>The 'r' commands work fine between
>the PC's and the SGI's, and fine between
>thr DEC and the SGI's, but between the
>PC's and the DEC there is a LONG time
>delay before a rlogin is accepted (and
>sometimes the connection is refused).

I have for a long time been very annoyed with the delays when rsh:ing,
so I pulled up the sleeves and tried to figure out why it takes several
seconds to send a few measly bytes over the Ethernet to log onto another box.

A lot of snooping and tcpdumping later I can only say that it takes a lot of 
tweaking in a lot of files to get acceptable delays in rlogin.

There are a many ugly things happening when you rlogin and I recommend
stracing the rsh or rlogin and turning on debugging in all relevant
daemons while snooping all packets with a good snooper (tcpdump not being 
very good, sun's snoop is better). 

I got the rsh time down to 0.2 seconds. Some RedHat boxes we have 
that aren't tweaked take over eight (8!) seconds... There are unfortunately 
problems in the kernel that mess up my nice figures. Kernels after 2.0.29
(round figures) hang the shell socket in TIME_WAIT after the first login,
and doesn't time out for three seconds on subsequent logins. The socket
leaves the TIME_WAIT state after a minute if no new connections are attempted
so then I get the nice 0.2 seconds again.

I thought it was the SYN and RST-COOKIES options in the kernal that did
this but I dont have them enabled and still get the TIME_WAIT thing.
Doesn't happen on 2.0.24. Anybody knows more about this?

Anyway, summa summarum, know your configuration. Bother your yp-server
as little as possible. For example, /etc/protocols really doesn't change 
many times in decade so a 'protocols: files' in /etc/nsswitch.conf' shouldn't
hurt you. Put the most used information at the top of the files (in /etc/),
remove comments (all the comments in my local /etc/hosts.equiv were queried at
the ypserver...). 

This perhaps doesn't help your specific problem but all you people 
out there, remember that more than 0.2-0.3 seconds means you are 
waiting too long. Tweaking time!

/ronny@axis.com/Ronny Ranerup/Axis Communications AB/http://www.axis.com

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-09-04 12:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-04 12:36 Ronny Ranerup [this message]
     [not found] <Pine.LNX.3.95.970911084121.1504E-100000@tomtom.asi-fwb.com>
1997-09-11 14:28 ` Slow Rlogin Harald Koenig
     [not found] <199709111243.OAA01208@zebara.axis.se>
1997-09-11 13:44 ` Tom Browder
  -- strict thread matches above, loose matches on Subject: below --
1997-09-11 12:43 Ronny Ranerup
     [not found] <19970910173523.00443@tat.physik.uni-tuebingen.de>
1997-09-11 10:36 ` Tom Browder
     [not found] <Pine.LNX.3.95.970909111041.3706B-100000@tomtom.asi-fwb.com>
1997-09-10 15:35 ` Harald Koenig
     [not found] <34156B66.41C6@d2.com>
1997-09-10 10:55 ` Tom Browder
1997-09-03 19:54 Slow rlogin Tom Browder
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox