[18598] in Athena Bugs
Re: sgi 8.4.17: getpwuid
daemon@ATHENA.MIT.EDU (Nickolai Zeldovich)
Fri Dec 8 20:21:30 2000
Message-Id: <200012090121.UAA07084@pepsi-one.mit.edu>
To: Robert A Basch <rbasch@MIT.EDU>
cc: bugs@MIT.EDU
In-reply-to: Your message of "Wed, 22 Nov 2000 19:43:54 EST."
<200011230043.TAA100230@aupair.mit.edu>
Date: Fri, 08 Dec 2000 20:21:25 -0500
From: Nickolai Zeldovich <kolya@MIT.EDU>
> I will report this to SGI, but I would not be optimistic about them
> fixing it. The standard nsd configuration includes negative caching,
> so that the sleep would only occur on the first getpwuid() for a
> particular uid; we must disable this and all other nsd caching,
> however, in order for the Athena login system to work.
Is it the case that we just need to disable caching for the getpw*()
lookups? It looks like the intentional 100ms sleep applies to almost
any other lookup in IRIX as well, which makes, say, "netstat" run a
bit slow, due to getserv*(), and probably makes various other things
slower too.
Perhaps it would be reasonable to disable caching for just the passwd
map, and allow caching of other maps? This should be possible by moving
the timeout attribute settings from /etc/config/nsd.config to the passwd
map line in /etc/nsswitch.conf, which seems to work on an 8.4.17 SGI.
-- kolya