Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Slow rlogin
@ 1997-09-03 19:54 Tom Browder
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Browder @ 1997-09-03 19:54 UTC (permalink / raw)


I have a network composed of four architectures:

  PC Linux (RH 4.1)
  DEC Alpha Linux (RH 4.2)
  SGI IRIX .3
  SGI IRIX 6.2

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 compared the pam stuff, the 'hosts' file,
the '.rhosts' files for the various users, and
can find no difference. The 'rpc' files are 
identical between the DEC and the PC's. The only
system differences I have been able to find
between the PC's and the DEC are:

1. In the '/etc/inetd.conf' file, the alpha has an additional line:

auth stream tcp nowait nobody /usr/sbin/in.identd in.identd -l -e -o

and I, so far, have found no documentation about the line.

2. The alpha has an additional file: '/etc/pwdb.conf'. Again, I
can find no documentation on the file.

If anyone can suggest an area to find the cause of the problem, I
would be grateful.

-Tom Browder

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Slow rlogin
@ 1997-09-04 12:36 Ronny Ranerup
  0 siblings, 0 replies; 8+ messages in thread
From: Ronny Ranerup @ 1997-09-04 12:36 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Slow Rlogin
       [not found] <34156B66.41C6@d2.com>
@ 1997-09-10 10:55 ` Tom Browder
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Browder @ 1997-09-10 10:55 UTC (permalink / raw)


On Tue, 9 Sep 1997, Daryll Strauss wrote:

> I bet you have a relatively large number of hosts in your hosts.equiv
> and/or YP hosts file, right?
> 

Thanks for the suggestion, Daryll, but I'm simply using
normal '/etc/hosts' for IP addresses. I have a hosts
file of about 55 host addresses.  The strange thing
is rlogin from PC Linux to SGI is quick, and so is
SGI to DEC Linux and DEC linux to PC Linux, but
PC Linux to DEC Linux is agonyzingly slow! The
DEC is using the RH 4.2 distribution and the PC's
are using RH 4.1. The security setup appears a 
little different (RH 4.2 has libpwdb and RH 4.1
does not) and there are probable several other
differences (pam.d vs pam.conf, etc.), but I
just can't nail anything consistent down. All
machines have the same 'hosts' file--no
nameserver being used. I've done the netlib update
and the pwdb updates from the RH errata, also,
but no difference in behavior.

My weak knowledge of this stuff is at its limit,
and my frustration grows daily. Perhaps upgrading
all my PC's to RH 4.2 will cure the problem, but
I'm reluctant to invest the time at the moment 
(especially when my PC's appear so stable--except
for the rlogin-to-DEC problem).

Tom Browder

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Slow Rlogin
       [not found] <Pine.LNX.3.95.970909111041.3706B-100000@tomtom.asi-fwb.com>
@ 1997-09-10 15:35 ` Harald Koenig
  0 siblings, 0 replies; 8+ messages in thread
From: Harald Koenig @ 1997-09-10 15:35 UTC (permalink / raw)


On Sep 10, Tom Browder wrote:

> differences (pam.d vs pam.conf, etc.), but I
> just can't nail anything consistent down. All
> machines have the same 'hosts' file--no
> nameserver being used. I've done the netlib update
> and the pwdb updates from the RH errata, also,
> but no difference in behavior.
> 
> My weak knowledge of this stuff is at its limit,
> and my frustration grows daily. Perhaps upgrading
> all my PC's to RH 4.2 will cure the problem, but
> I'm reluctant to invest the time at the moment 
> (especially when my PC's appear so stable--except
> for the rlogin-to-DEC problem).

I'd use "strace"to figure out where (in/between which system calls)
all the time is spent.  try using

	strace -ffttTo outfile  rlogin remotehost

or similar and check where long delays happen...

Harald

--
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Slow Rlogin
       [not found] <19970910173523.00443@tat.physik.uni-tuebingen.de>
@ 1997-09-11 10:36 ` Tom Browder
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Browder @ 1997-09-11 10:36 UTC (permalink / raw)


Harald, I tried as you suggested and got a long list
of processes and files being manipulated, and perhaps
someday I can decipher it all. But the strange thing
is, the rlogin process went VERY rapidly using the
strace command. Does that suggest something to
anyone?

Thanks.

Tom Browder

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Slow Rlogin
@ 1997-09-11 12:43 Ronny Ranerup
  0 siblings, 0 replies; 8+ messages in thread
From: Ronny Ranerup @ 1997-09-11 12:43 UTC (permalink / raw)


Tom Browder:
>Harald, I tried as you suggested and got a long list
>of processes and files being manipulated, and perhaps
>someday I can decipher it all. But the strange thing
>is, the rlogin process went VERY rapidly using the
>strace command. Does that suggest something to
>anyone?

Did you login with the same uid as when you tried it without strace?
My point just being that it is important who you login as, as the files being
run in the login process may differ and most importantly they may be
on a different filesystem and/or computer.

Another thing you might try is to run 'netstat -c -t' and check if the 
login socket hangs in the CLOSE_WAIT state even longer than they do
when I login. As I mentioned in another mail there is a bug/feature/something
that hangs the login socket in that state for three seconds on some Linux 
versions I run. Your version perhaps has an even longer timeout...

/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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Slow Rlogin
       [not found] <199709111243.OAA01208@zebara.axis.se>
@ 1997-09-11 13:44 ` Tom Browder
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Browder @ 1997-09-11 13:44 UTC (permalink / raw)


On Thu, 11 Sep 1997, Ronny Ranerup wrote:

> Did you login with the same uid as when you tried it without strace?
> My point just being that it is important who you login as, as the files being
> run in the login process may differ and most importantly they may be
> on a different filesystem and/or computer.
> 
> Another thing you might try is to run 'netstat -c -t' and check if the 
> login socket hangs in the CLOSE_WAIT state even longer than they do
> when I login. As I mentioned in another mail there is a bug/feature/something
> that hangs the login socket in that state for three seconds on some Linux 
> versions I run. Your version perhaps has an even longer timeout...
> 

Thanks, Ronny. Behold, when I rlogged in as root, the delay was 
insignificant! I have thus far checked .rhosts, .login, and .cshrc
files between my normal user accounts and root and have found no
differences. Perhaps it is PAM!

Does this behavior give any ideas?

Tom Browder

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Slow Rlogin
       [not found] <Pine.LNX.3.95.970911084121.1504E-100000@tomtom.asi-fwb.com>
@ 1997-09-11 14:28 ` Harald Koenig
  0 siblings, 0 replies; 8+ messages in thread
From: Harald Koenig @ 1997-09-11 14:28 UTC (permalink / raw)


On Sep 11, Tom Browder wrote:

> Thanks, Ronny. Behold, when I rlogged in as root, the delay was 
> insignificant! I have thus far checked .rhosts, .login, and .cshrc
> files between my normal user accounts and root and have found no
> differences. Perhaps it is PAM!

is it the local userid or the remote userid which is important for the delay ?

what happens if a plain user does  "rlogin remhost -l root" 
vs. root doing "rlogin remhost -l foo" ?

if you have the correct .rhosts entries to allow both entries ?

Harald

--
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1997-09-11 14:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <199709111243.OAA01208@zebara.axis.se>
1997-09-11 13:44 ` Slow Rlogin Tom Browder
     [not found] <Pine.LNX.3.95.970911084121.1504E-100000@tomtom.asi-fwb.com>
1997-09-11 14:28 ` Harald Koenig
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
  -- strict thread matches above, loose matches on Subject: below --
1997-09-04 12:36 Slow rlogin Ronny Ranerup
1997-09-03 19:54 Tom Browder

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