summaryrefslogtreecommitdiff
path: root/nscd/nscd.conf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-10-03 21:11:37 +0000
committerUlrich Drepper <drepper@redhat.com>2004-10-03 21:11:37 +0000
commit27e828564328ee5270450729bbb6902f6f62ba47 (patch)
tree1070cd10e6352100d6a8c0aa7edfdf99e61e0e15 /nscd/nscd.conf
parent4401d759051714fcc016a146685f3c13bed49442 (diff)
downloadglibc-27e828564328ee5270450729bbb6902f6f62ba47.tar.gz
Update.
Dynamically create new threads if necessary. * nscd/connections.c (fd_ready): If no thread available for processing the request, create a new one unless the limit is reached. (start_threads): Check errors from pthread_create. * nscd/nscd.h: Declare max_nthreads. * nscd/nscd_conf.c: Parse max-nthreads entry. * nscd/nscd.conf: Add max-threads entry. * nscd/nscd_stat.c: Print current and maximum number of threads.
Diffstat (limited to 'nscd/nscd.conf')
-rw-r--r--nscd/nscd.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/nscd/nscd.conf b/nscd/nscd.conf
index 35f65a4a36..87e7a84487 100644
--- a/nscd/nscd.conf
+++ b/nscd/nscd.conf
@@ -7,7 +7,8 @@
#
# logfile <file>
# debug-level <level>
-# threads <#threads to use>
+# threads <initial #threads to use>
+# max-threads <maximum #threads to use>
# server-user <user to run server as instead of root>
# server-user is ignored if nscd is started with -S parameters
# stat-user <user who is allowed to request statistics>
@@ -29,6 +30,7 @@
# logfile /var/log/nscd.log
# threads 6
+# max-threads 128
# server-user nobody
# stat-user somebody
debug-level 0