summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_nfsiod.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-05-24 21:04:46 +0000
committerrwatson <rwatson@FreeBSD.org>2006-05-24 21:04:46 +0000
commit726780d475390e3ee689390193445ae26af8043a (patch)
treeb4ab08acecad4ce47a4a0a2a0a3d2e6a0bd02644 /sys/nfsclient/nfs_nfsiod.c
parentcd7126b4158bcddab1cb24ee015a918a31f3088a (diff)
downloadFreeBSD-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/nfs_nfsiod.c')
-rw-r--r--sys/nfsclient/nfs_nfsiod.c2
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)
OpenPOWER on IntegriCloud