diff options
author | ru <ru@FreeBSD.org> | 2011-05-04 13:27:45 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2011-05-04 13:27:45 +0000 |
commit | b0a86c9f257a1311ae8daa811c6c3b6e199f05e5 (patch) | |
tree | 4b861261899defb3fa31ca5958853bd86a0388d8 /sbin | |
parent | c5a0d73cf16c8dff00d2586d802bc17e15a00566 (diff) | |
download | FreeBSD-src-b0a86c9f257a1311ae8daa811c6c3b6e199f05e5.zip FreeBSD-src-b0a86c9f257a1311ae8daa811c6c3b6e199f05e5.tar.gz |
Implemented a mount option "nocto" that disables cache coherency
checking at open time. It may improve performance for read-only
NFS mounts. Use deliberately.
MFC after: 1 week
Reviewed by: rmacklem, jhb (earlier version)
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount_nfs/mount_nfs.8 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sbin/mount_nfs/mount_nfs.8 b/sbin/mount_nfs/mount_nfs.8 index 59d6cb4..be9e309 100644 --- a/sbin/mount_nfs/mount_nfs.8 +++ b/sbin/mount_nfs/mount_nfs.8 @@ -28,7 +28,7 @@ .\" @(#)mount_nfs.8 8.3 (Berkeley) 3/29/95 .\" $FreeBSD$ .\" -.Dd April 27, 2011 +.Dd May 3, 2011 .Dt MOUNT_NFS 8 .Os .Sh NAME @@ -180,6 +180,17 @@ NFS port number 2049 or replies to requests using a different IP address Setting the .Va vfs.nfs.nfs_ip_paranoia sysctl to 0 will make this option the default. +.It Cm nocto +Normally, NFS clients maintain the close-to-open cache coherency. +This works by flushing at close time and checking at open time. +Checking at open time is implemented by getting attributes from +the server and purging the data cache if they do not match +attributes cached by the client. +.Pp +This option disables checking at open time. +It may improve performance for read-only mounts, +but should only be used if the data on the server changes rarely. +Be sure to understand the consequences before enabling this option. .It Cm noinet4 , noinet6 Disables .Dv AF_INET |