All of lore.kernel.org
 help / color / mirror / Atom feed
* Caching negative lookups
@ 2008-11-03 15:03 Mike K
  2008-11-14  2:08 ` Ian Kent
  2008-12-09  6:11 ` Ian Kent
  0 siblings, 2 replies; 9+ messages in thread
From: Mike K @ 2008-11-03 15:03 UTC (permalink / raw)
  To: autofs


[-- Attachment #1.1: Type: text/plain, Size: 1289 bytes --]

Hello,

Based on what I have found, autofs5 supports caching negative lookups, but
it doesn't appear to be working for me.  Although my understanding of how it
is supposed to work is very limited, so I may just be mistaken.

My client system:  Red Hat 5.2, autofs-5.0.1-0.rc2.88.x86_64,
kernel-2.6.18-92.el5.x86_64, with automounter maps in a NIS+ server (client
in niscompat mode).
NFS Server: A popular NAS appliance

auto_master snippet:
/home/dev auto_dev

By default (and a recommended setting), the NAS appliance requires that all
mounts from uid 0 come from a reserved port (0-1024) on the client.  On our
client system, repeated yp lookups for entries which don't exist will
consume all ports in 0-1024, causing other legit mount attempts to fail
since they are denied by the NAS appliance.  This does not happen on Red Hat
4 or 3 systems.

Reproducer: 'while true; do cd /home/dev/example; done'.  "watch -n 1
'netstat -an | grep TIME_WAIT | wc -l'" will show the number of sockets in
TIME_WAIT increase rapidly.

In this case, each 'cd /home/dev/example' causes a yp lookup for a directory
that doesn't exist in the NIS table, consuming a socket and leaving it in
TIME_WAIT for 60 seconds.

Is this situation supposed to be prevented with caching negative lookups?

Thanks,
Mike

[-- Attachment #1.2: Type: text/html, Size: 1425 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-12-09  6:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 15:03 Caching negative lookups Mike K
2008-11-14  2:08 ` Ian Kent
2008-11-14 13:27   ` Mike K
2008-11-14 13:44     ` Ian Kent
2008-11-14 13:49       ` Ian Kent
2008-11-14 15:36         ` Ondrej Valousek
2008-11-15 10:25           ` Ian Kent
2008-12-09  6:11 ` Ian Kent
2008-12-09  6:12   ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.