diff options
author | peter <peter@FreeBSD.org> | 2004-03-14 06:21:56 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-03-14 06:21:56 +0000 |
commit | 36be86fb0ab127fdca2afe0978f4d07102f731e0 (patch) | |
tree | 0862ccf8756e233936453f80067c1f7a703bce40 /sys/nfsserver | |
parent | b515b12ae3aada30a0a76ce54756a2168897be46 (diff) | |
download | FreeBSD-src-36be86fb0ab127fdca2afe0978f4d07102f731e0.zip FreeBSD-src-36be86fb0ab127fdca2afe0978f4d07102f731e0.tar.gz |
Calculate NFS timeouts in units of 10ms, not 5ms. This matches the default
clock precision on i386. This is a NOP change on i386. But this stops
the mount_nfs units from suddenly changing to units of 1/20 of a second
(vs the normal 1/10 of a second) if HZ is increased.
Diffstat (limited to 'sys/nfsserver')
-rw-r--r-- | sys/nfsserver/nfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsserver/nfs.h b/sys/nfsserver/nfs.h index 2e0808d..20df41b 100644 --- a/sys/nfsserver/nfs.h +++ b/sys/nfsserver/nfs.h @@ -48,7 +48,7 @@ * Tunable constants for nfs */ -#define NFS_TICKINTVL 5 /* Desired time for a tick (msec) */ +#define NFS_TICKINTVL 10 /* Desired time for a tick (msec) */ #define NFS_HZ (hz / nfs_ticks) /* Ticks/sec */ #define NFS_TIMEO (1 * NFS_HZ) /* Default timeout = 1 second */ #define NFS_MINTIMEO (1 * NFS_HZ) /* Min timeout to use */ |