diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-05-24 21:04:46 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-05-24 21:04:46 +0000 |
commit | 726780d475390e3ee689390193445ae26af8043a (patch) | |
tree | b4ab08acecad4ce47a4a0a2a0a3d2e6a0bd02644 /sys/nfsclient | |
parent | cd7126b4158bcddab1cb24ee015a918a31f3088a (diff) | |
download | FreeBSD-src-726780d475390e3ee689390193445ae26af8043a.zip FreeBSD-src-726780d475390e3ee689390193445ae26af8043a.tar.gz |
Adjust minimum iod threads from 4 to 0 -- since we compile the NFS
client into the kernel by default, and many users won't use NFS,
don't start an extra 4 kernel threads that are unused. Once NFS
becomes active, it will start nfsiod's as it needs them.
We might consider mandating a minimum iod's equal to the number of
active NFS mounts (truncated to some value), which would force some
to remain available without having to create a new one if the file
system is mostly inactive.
PR: 70880
MFC after: 2 weeks
Prodded by: cel
Head nod: peter
Pointed out by: Joe <fbsd_user at a1poweruser dot com>
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_nfsiod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_nfsiod.c b/sys/nfsclient/nfs_nfsiod.c index f38dffe..4851824 100644 --- a/sys/nfsclient/nfs_nfsiod.c +++ b/sys/nfsclient/nfs_nfsiod.c @@ -90,7 +90,7 @@ SYSCTL_UINT(_vfs_nfs, OID_AUTO, iodmaxidle, CTLFLAG_RW, &nfs_iodmaxidle, 0, ""); unsigned int nfs_iodmax = 20; /* Minimum number of nfsiod kthreads to keep as spares */ -static unsigned int nfs_iodmin = 4; +static unsigned int nfs_iodmin = 0; static int sysctl_iodmin(SYSCTL_HANDLER_ARGS) |