From: Michael Meffie Date: Thu, 4 Apr 2013 14:56:37 +0000 (-0400) Subject: ptserver: increase the max lwp threads X-Git-Tag: openafs-stable-1_8_0pre1~1073 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=8ecf7bde78272efc11460f783203afa56cf5c0dc ptserver: increase the max lwp threads Increase the maximum LWP threads allowed from 16 to 64. Increasing the number of LWP threads can reduce the number of calls waiting for threads. Change-Id: I66f53c0fbb2db66c94b9982e3ee6b3b1f89a0f01 Reviewed-on: http://gerrit.openafs.org/9707 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/doc/man-pages/pod8/ptserver.pod b/doc/man-pages/pod8/ptserver.pod index 160a330..b9a2ac3 100644 --- a/doc/man-pages/pod8/ptserver.pod +++ b/doc/man-pages/pod8/ptserver.pod @@ -91,7 +91,7 @@ F. =item B<-p> > Sets the number of server lightweight processes (LWPs or pthreads) to run. -Provide a positive integer from the range C<3> to C<16>. The default +Provide a positive integer from the range C<3> to C<64>. The default value is C<3>. =item B<-groupdepth> >, B<-depth> > diff --git a/src/ptserver/ptserver.c b/src/ptserver/ptserver.c index b73e0c5..3459dfb 100644 --- a/src/ptserver/ptserver.c +++ b/src/ptserver/ptserver.c @@ -390,10 +390,10 @@ main(int argc, char **argv) cmd_OptionAsString(opts, OPT_logfile, &logFile); if (cmd_OptionAsInt(opts, OPT_threads, &lwps) == 0) { - if (lwps > 16) { /* maximum of 16 */ + if (lwps > 64) { /* maximum of 64 */ printf("Warning: '-p %d' is too big; using %d instead\n", - lwps, 16); - lwps = 16; + lwps, 64); + lwps = 64; } else if (lwps < 3) { /* minimum of 3 */ printf("Warning: '-p %d' is too small; using %d instead\n", lwps, 3);