Hi, when I activate NIS on my (up to date) hamm system, logins and su are rapidly slowed down even for local users. It takes several seconds to su from root to a local user, i.e., a user listed in /etc/passwd. The NIS maps are rather large (about 5000 users). ypbind is bound to the local NIS slave server.
my nsswitch.conf entries: passwd: files nis group: files nis shadow: files hosts: files dns networks: files If I remove NIS from nsswitch.conf, the login process speeds up tremendously. I looked at the output of strace su localuser (NIS activated) and noticed that a couple of system calls are repeated several thousand times. Here they are: open("/var/yp/binding/my_nis_domain.2", O_RDONLY) = 5 readv(5, [{"\223\3", 2}, {"\1\0\0\0\177\0\0\1\3\221\0\0", 12}], 2) = 14 close(5) = 0 gettimeofday({890831240, 952496}, NULL) = 0 getpid() = 26355 socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 5 bind(5, {sin_family=AF_INET, sin_port=htons(668), sin_addr=inet_addr("0.0.0.0") } , 16) = 0 ioctl(5, FIONBIO, [1]) = 0 fcntl(5, F_SETFD, FD_CLOEXEC) = 0 sendto(5, "6\27\357\313\0\0\0\0\0\0\0\2\0\1"..., 88, 0, {sin_family=AF_INET, sin _port=htons(913), sin_addr=inet_addr("127.0.0.1")}, 16) = 88 select(256, [5], NULL, NULL, {5, 0}) = 1 (in [5], left {5, 0}) recvfrom(5, "6\27\357\313\0\0\0\1\0\0\0\0\0\0"..., 8800, 0, {sin_family=AF_INET, sin_port=htons(913), sin_addr=inet_addr("127.0.0.1")}, [16]) = 72 close(5) = 0 open("/var/yp/binding/my_nis_domain.2", O_RDONLY) = 5 ... and so on Any hints? Thanks, Thomas -- Th. Gebhardt ([EMAIL PROTECTED]) --------------------------------------------------------------- HRZ, Hans Meerwein Strasse, Phone: +49-6421/28-3572 D-35032 Marburg, Germany Fax : -6994 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]