From: Steve Dickson <SteveD@redhat.com>
To: Steve Dickson <steved@redhat.com>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 1/1] nfsd: Bump up the default to 8 nprocs
Date: Fri, 16 Mar 2012 11:02:40 -0400 [thread overview]
Message-ID: <4F635610.9050105@RedHat.com> (raw)
In-Reply-To: <1331905256-21639-1-git-send-email-steved@redhat.com>
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;
prev parent reply other threads:[~2012-03-16 15:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F635610.9050105@RedHat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox