Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Bruce Allen <ballen@dirac.phys.uwm.edu>
Subject: why is rsh so slow the second time?
Date: 1998/05/25	[thread overview]
Message-ID: <3569F061.B026714A@dirac.phys.uwm.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 1998 bytes --]

Here is a peculiar thing which is slowing down life on our beowulf...

If we do rsh from machine A to machine B, the response is instantaneous
If (right away) we do another rsh from machine A to machine B, there is
a ten-second pause before any response!

This is not because machine B is loaded, or for any other obvious
reason.

If we wait more than about 60 seconds, the response to rsh is
instantaneous again.

So -- my question.  When machine B gets the rsh request, it starts
/usr/sbin/in.rshd
which then deals with the request.  My theory is that in.rshd sticks
around for a little while after
the first rsh command is over, and that this is the cause for the
delay.  My theory is that starting
rsh after a quiescent period starts a new copy of in.rshd and that this
copy responds quickly, but that
starting rsh after just finishing another rsh makes use of the old
in.rshd, and that it responds slowly.

From watching the networking switches light up, the second (slow) rsh
request gets to machine B right
away, but machine B does not respond right away.

Or perhaps this is related to the PAM authentication...
Authorization is coming from /etc/hosts.equiv.  Relevant file snippets
below.

Could anyone comment?  I would like to read the source code for in.rshd
but don't know where to
find it -- any suggesstions where to find the source code?

Comments / opinions / random thoughts cheerfully welcomed!

Thanks!
    Bruce Allen

  ------------------------------------------------------------------------
From /etc/inetd.conf:

shell   stream  tcp     nowait  root    /usr/sbin/tcpd  in.rshd
  ------------------------------------------------------------------------

from /etc/pam.d/rsh:
#%PAM-1.0
auth       required     /lib/security/pam_rhosts_auth.so
auth       required     /lib/security/pam_nologin.so
account    required     /lib/security/pam_pwdb.so
session    required     /lib/security/pam_pwdb.so
  ------------------------------------------------------------------------





[-- Attachment #2: Type: text/html, Size: 2333 bytes --]

             reply	other threads:[~1998-05-25  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-25  4:00 Bruce Allen [this message]
1998-05-26  4:00 ` why is rsh so slow the second time? Christoph Nadig
1998-05-26  4:00   ` Bruce Allen
1998-05-27  4:00     ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
1998-06-02  4:00     ` Steve Peltz
1998-06-03  4:00       ` Bruce Allen
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