summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-04-07 21:41:11 +0000
committerpjd <pjd@FreeBSD.org>2007-04-07 21:41:11 +0000
commit786ba2b377b97c3143e72e0f95c41d6d8b58d5e3 (patch)
treef11dfeae4351e1a8750d4512b6359002dc4321f6
parent1320f9f144d11efc5e2e12e3ab69a5a4559b06fe (diff)
downloadFreeBSD-src-786ba2b377b97c3143e72e0f95c41d6d8b58d5e3.zip
FreeBSD-src-786ba2b377b97c3143e72e0f95c41d6d8b58d5e3.tar.gz
Limit the number of system taskq threads to the number of CPUs.
They are only used when there is a need for reducing namecache. Observed by: kris, csjp
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/os/taskq.c2
-rw-r--r--sys/contrib/opensolaris/uts/common/os/taskq.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/os/taskq.c b/sys/cddl/contrib/opensolaris/uts/common/os/taskq.c
index efaea2e..220f080 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/os/taskq.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/os/taskq.c
@@ -393,7 +393,7 @@ taskq_t *system_taskq;
* Maxmimum number of entries in global system taskq is
* system_taskq_size * max_ncpus
*/
-#define SYSTEM_TASKQ_SIZE 64
+#define SYSTEM_TASKQ_SIZE 1
int system_taskq_size = SYSTEM_TASKQ_SIZE;
/*
diff --git a/sys/contrib/opensolaris/uts/common/os/taskq.c b/sys/contrib/opensolaris/uts/common/os/taskq.c
index efaea2e..220f080 100644
--- a/sys/contrib/opensolaris/uts/common/os/taskq.c
+++ b/sys/contrib/opensolaris/uts/common/os/taskq.c
@@ -393,7 +393,7 @@ taskq_t *system_taskq;
* Maxmimum number of entries in global system taskq is
* system_taskq_size * max_ncpus
*/
-#define SYSTEM_TASKQ_SIZE 64
+#define SYSTEM_TASKQ_SIZE 1
int system_taskq_size = SYSTEM_TASKQ_SIZE;
/*
OpenPOWER on IntegriCloud