summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-03-21 09:22:38 +0000
committerjulian <julian@FreeBSD.org>2004-03-21 09:22:38 +0000
commit5e0a5420a9a8b9fa7ffa260414cb8c05384c384f (patch)
tree0f90d9d73375da41c5856d57dcc7f85fae02a795 /sys/kern
parentcbd95cfcfc60e974ada9ad0bee3afd99dd7d7697 (diff)
downloadFreeBSD-src-5e0a5420a9a8b9fa7ffa260414cb8c05384c384f.zip
FreeBSD-src-5e0a5420a9a8b9fa7ffa260414cb8c05384c384f.tar.gz
Massively up the (artificial) limit on system scope threads
in a process from 50 to 500 Also up the number of process scope threads allowed to be in the kernel at one time from 150 to 1500 (per process)
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_kse.c4
-rw-r--r--sys/kern/kern_thread.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index 1995204..2c7ddfe 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -74,11 +74,11 @@ static int thread_debug = 0;
SYSCTL_INT(_kern_threads, OID_AUTO, debug, CTLFLAG_RW,
&thread_debug, 0, "thread debug");
-static int max_threads_per_proc = 150;
+static int max_threads_per_proc = 1500;
SYSCTL_INT(_kern_threads, OID_AUTO, max_threads_per_proc, CTLFLAG_RW,
&max_threads_per_proc, 0, "Limit on threads per proc");
-static int max_groups_per_proc = 50;
+static int max_groups_per_proc = 500;
SYSCTL_INT(_kern_threads, OID_AUTO, max_groups_per_proc, CTLFLAG_RW,
&max_groups_per_proc, 0, "Limit on thread groups per proc");
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 1995204..2c7ddfe 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -74,11 +74,11 @@ static int thread_debug = 0;
SYSCTL_INT(_kern_threads, OID_AUTO, debug, CTLFLAG_RW,
&thread_debug, 0, "thread debug");
-static int max_threads_per_proc = 150;
+static int max_threads_per_proc = 1500;
SYSCTL_INT(_kern_threads, OID_AUTO, max_threads_per_proc, CTLFLAG_RW,
&max_threads_per_proc, 0, "Limit on threads per proc");
-static int max_groups_per_proc = 50;
+static int max_groups_per_proc = 500;
SYSCTL_INT(_kern_threads, OID_AUTO, max_groups_per_proc, CTLFLAG_RW,
&max_groups_per_proc, 0, "Limit on thread groups per proc");
OpenPOWER on IntegriCloud