Skip to contentSkip to conversation

nfsd: Bump up the default to 8 nprocs

PATCH In review Steve Dickson 1 participant 2 messages Mar 16, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsd: Bump up the default to 8 nprocs

When the nproc argument is not given the rpc.nfsd
a default number of processes is created. This
patch bumps that default up from 1 to 8.

---
 utils/nfsd/nfsd.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
utils/nfsd/nfsd.c +5 -1
index 8bc5d3a..2a3f5cc 100644
@@ -27,6 +27,10 @@
 #include "nfssvc.h"
 #include "xlog.h"
 
+#ifndef NFSD_NPROC
+#define NFSD_NPROC 8
+#endif
+
 static void	usage(const char *);
 
 static struct option longopts[] =
@@ -90,7 +94,7 @@ nfsd_enable_protos(unsigned int *proto4, unsigned int *proto6)
 int
 main(int argc, char **argv)
 {
-	int	count = 1, c, error = 0, portnum = 0, fd, found_one;
+	int	count = NFSD_NPROC, c, error = 0, portnum = 0, fd, found_one;
 	char *p, *progname, *port;
 	char *haddr = NULL;
 	int	socket_up = 0;
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 5 lines · Steve Dickson

When the nproc argument is not given the rpc.nfsd
a default number of processes is created. This
patch bumps that default up from 1 to 8.

Committed...

steved.

Quoted 28 lines
---
 utils/nfsd/nfsd.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
utils/nfsd/nfsd.c +5 -1
index 8bc5d3a..2a3f5cc 100644
@@ -27,6 +27,10 @@
 #include "nfssvc.h"
 #include "xlog.h"
 
+#ifndef NFSD_NPROC
+#define NFSD_NPROC 8
+#endif
+
 static void	usage(const char *);
 
 static struct option longopts[] =
@@ -90,7 +94,7 @@ nfsd_enable_protos(unsigned int *proto4, unsigned int *proto6)
 int
 main(int argc, char **argv)
 {
-	int	count = 1, c, error = 0, portnum = 0, fd, found_one;
+	int	count = NFSD_NPROC, c, error = 0, portnum = 0, fd, found_one;
 	char *p, *progname, *port;
 	char *haddr = NULL;
 	int	socket_up = 0;