From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199709041236.OAA18568@zebara.axis.se> Date: Thu, 4 Sep 1997 14:36:52 +0200 (MET DST) From: Ronny Ranerup Subject: Re: Slow rlogin 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