From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,98f520a49a665426,start X-Google-Attributes: gid111c93,public From: Bruce Allen Subject: why is rsh so slow the second time? Date: 1998/05/25 Message-ID: <3569F061.B026714A@dirac.phys.uwm.edu>#1/1 X-Deja-AN: 356460370 Content-Type: multipart/alternative; boundary="------------84C9A09C81B38980763E3FE2" Organization: University of Wisconsin - Milwaukee, Physics Department Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha --------------84C9A09C81B38980763E3FE2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ------------------------------------------------------------------------ --------------84C9A09C81B38980763E3FE2 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit 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


 
 
  --------------84C9A09C81B38980763E3FE2--