diff options
author | jhb <jhb@FreeBSD.org> | 2009-04-06 19:12:47 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-04-06 19:12:47 +0000 |
commit | 54504c49852786f15fbb97dc39700035bb42d47c (patch) | |
tree | 32a7a49423b5016134e73dcb9f0222a72d1c0328 /sys/nfsclient | |
parent | 77b8cee3581abed55b8a1518c13a2a7e3280bcca (diff) | |
download | FreeBSD-src-54504c49852786f15fbb97dc39700035bb42d47c.zip FreeBSD-src-54504c49852786f15fbb97dc39700035bb42d47c.tar.gz |
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
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h index 783fe07..df93952 100644 --- a/sys/nfsclient/nfs.h +++ b/sys/nfsclient/nfs.h @@ -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 |