On Fri, 2008-11-14 at 16:36 +0100, Ondrej Valousek wrote: > I do not understand it - I have heard that using indirect maps can cause > unwanted NFS chattering on the network and that negative lookups are > supposed to handle this. > But this chattering I can only imagine when using wildcards like > /home auto.home > with auto.home containing something like: > * nfsserver:/vol/vol0/users/& > > This way, if an application check for the existence of say /home/file - > the automounter must ask nfsserver for existence of this file every time > the application asks. But if there are no wildcards in the indirect map > and all valid entries are explicitly listed, no nfs chattering occurs as > autofs knows directly that the mount attempt for /home/file is invalid > as there is no "file" record in the auto.home map. > > Am I right? If yes, that would be a serious argument against using > wildcards in the automount maps.....
Not really. The issue that Mike is concerned about is the actual check against the yp map for the key consuming sockets. Given that when an application attempts to access a directory in an indirect map the kernel is obligated to send a request to the daemon. If the daemon isn't properly recording previous mount fails (and in this case also recording requests for non existent keys) and continually trying to mount or find the key then there can be quite a bit of traffic. This is the whole idea of the timeout for negative (failed) requests Ian _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs