svn commit: r190783 - head/sys/nfsclient

John Baldwin jhb at FreeBSD.org
Mon Apr 6 12:12:49 PDT 2009


Author: jhb
Date: Mon Apr  6 19:12:47 2009
New Revision: 190783
URL: http://svn.freebsd.org/changeset/base/190783

Log:
  Change the default timeout for caching attributes of a directory in the NFS
  client from 30 seconds to 3 seconds.  After the recent changes to add
  caching of negative name cache lookups, a negative name cache hit will
  persist until the client notices the parent directory has changed.  The
  higher the attribute cache timeout on directories, the longer that can take,
  so lower the default timeout for directories to match that of regular files.
  
  Suggested by:	bde, mohans
  MFC after:	1 month

Modified:
  head/sys/nfsclient/nfs.h

Modified: head/sys/nfsclient/nfs.h
==============================================================================
--- head/sys/nfsclient/nfs.h	Mon Apr  6 17:33:35 2009	(r190782)
+++ head/sys/nfsclient/nfs.h	Mon Apr  6 19:12:47 2009	(r190783)
@@ -63,7 +63,7 @@
 #define	NFS_MAXATTRTIMO 60
 #endif
 #ifndef NFS_MINDIRATTRTIMO
-#define	NFS_MINDIRATTRTIMO 30		/* VDIR attrib cache timeout in sec */
+#define	NFS_MINDIRATTRTIMO 3		/* VDIR attrib cache timeout in sec */
 #endif
 #ifndef NFS_MAXDIRATTRTIMO
 #define	NFS_MAXDIRATTRTIMO 60


More information about the svn-src-head mailing list