From: Brian Long Subject: Re: stat of /users/no-such-user takes 15 seconds Date: Mon, 28 Nov 2005 09:56:54 -0500 Message-ID: <1133189814.4126.16.camel@brilong-lnx> References: <1132670358.4039.37.camel@brilong-lnx> <1132674350.4039.52.camel@brilong-lnx> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org Content-Type: text/plain; charset="us-ascii" To: Jim Carter Cc: autofs@linux.kernel.org, Ian Kent On Wed, 2005-11-23 at 14:46 -0800, Jim Carter wrote: > On Tue, 22 Nov 2005, Ian Kent wrote: > > On Tue, 22 Nov 2005, Brian Long wrote: > > > On Tue, 2005-11-22 at 09:39 -0500, Brian Long wrote: > > > > I have an auto.master deployed to thousands of hosts and it looks like > -- snip -- > > > > auto.home contains over 34,000 entries. I've noticed in RHEL 3 U5 and > -- snip -- > > > > After looking at tcpdump data, it appears automounter is downloading the > > > > entire auto.home map when it fails to lookup "no-such-user". This > > > > results in a > 700KB transfer from the NIS server :( > > I may have missed something in subsequent discussion, but why isn't > automount querying just the missing map row? If NIS agreed that it did not > exist, fine, report an error to the client's opendir(). If it *did* exist, > the new information could be added immediately and the filesystem could be > mounted promptly. Exactly; I believe this is a bug in the cache code as Jeff Moyer mentioned (and provided a patch for). > Browsing is nice but gets expensive if there are 34,000 potential mount > points. If browsing is turned off, the code that enumerates the map should > delete rows in the kernel but not in the map, but should bypass adding rows > in the map but not the kernel. Could this be part of the cause of the > original problem -- browsing being turned on inappropriately? To my knowledge, browsing is not enabled by default. We definitely do not have it enabled in our environment on purpose. /Brian/ -- Brian Long | | | IT Data Center Systems | .|||. .|||. Cisco Linux Developer | ..:|||||||:...:|||||||:.. Phone: (919) 392-7363 | C i s c o S y s t e m s