Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2009 19:12:47 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r190783 - head/sys/nfsclient
Message-ID:  <200904061912.n36JClwv080363@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904061912.n36JClwv080363>