Increase the nfs access cache timeout from 2 to 60. The latter is a

more appropriate value and is also the default set by the kernel.  I
could not find a justification of why rc.conf began overriding it back
in 1998.

This dramatically cuts NFS traffic on e.g. a busy system with NFS root.

Reviewed by:	mohans
MFC After:	2 weeks
This commit is contained in:
Kris Kennaway 2006-05-24 00:06:14 +00:00
parent 2c24bd34d6
commit 8f8d013769
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158866

View File

@ -235,7 +235,7 @@ amd_program="/usr/sbin/amd" # path to amd, if you want a different one.
amd_flags="-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map"
amd_map_program="NO" # Can be set to "ypcat -k amd.master"
nfs_client_enable="NO" # This host is an NFS client (or NO).
nfs_access_cache="2" # Client cache timeout in seconds
nfs_access_cache="60" # Client cache timeout in seconds
nfs_server_enable="NO" # This host is an NFS server (or NO).
nfs_server_flags="-u -t -n 4" # Flags to nfsd (if enabled).
mountd_enable="NO" # Run mountd (or NO).