Linux NFS development
 help / color / mirror / Atom feed
* [PATCH 1/1] nfsd: Bump up the default to 8 nprocs
@ 2012-03-16 13:40 Steve Dickson
  2012-03-16 15:02 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Dickson @ 2012-03-16 13:40 UTC (permalink / raw)
  To: Linux NFS Mailing list

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.

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 utils/nfsd/nfsd.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
index 8bc5d3a..2a3f5cc 100644
--- a/utils/nfsd/nfsd.c
+++ b/utils/nfsd/nfsd.c
@@ -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;
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] nfsd: Bump up the default to 8 nprocs
  2012-03-16 13:40 [PATCH 1/1] nfsd: Bump up the default to 8 nprocs Steve Dickson
@ 2012-03-16 15:02 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2012-03-16 15:02 UTC (permalink / raw)
  To: Steve Dickson; +Cc: Linux NFS Mailing list



On 03/16/2012 09:40 AM, Steve Dickson wrote:
> 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.
> 
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed...

steved.

> ---
>  utils/nfsd/nfsd.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
> index 8bc5d3a..2a3f5cc 100644
> --- a/utils/nfsd/nfsd.c
> +++ b/utils/nfsd/nfsd.c
> @@ -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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-16 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-16 13:40 [PATCH 1/1] nfsd: Bump up the default to 8 nprocs Steve Dickson
2012-03-16 15:02 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox