[nfs-utils/f16] nfsd: Bump up the default to 8 nprocs (bz 757452)
Steve Dickson
steved at fedoraproject.org
Fri Mar 16 15:09:29 UTC 2012
commit be0161a5b46b33df6b928476f2d7aff70d8aab2d
Author: Steve Dickson <steved at redhat.com>
Date: Fri Mar 16 11:06:16 2012 -0400
nfsd: Bump up the default to 8 nprocs (bz 757452)
Signed-off-by: Steve Dickson <steved at redhat.com>
nfs-utils-1.2.5-nfsd-new-default.patch | 36 ++++++++++++++++++++++++++++++++
nfs-utils.spec | 3 ++
2 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/nfs-utils-1.2.5-nfsd-new-default.patch b/nfs-utils-1.2.5-nfsd-new-default.patch
new file mode 100644
index 0000000..729f6de
--- /dev/null
+++ b/nfs-utils-1.2.5-nfsd-new-default.patch
@@ -0,0 +1,36 @@
+commit 5397edac120350bd5fd8284819c1a900cb41546c
+Author: Steve Dickson <steved at redhat.com>
+Date: Fri Mar 16 09:34:43 2012 -0400
+
+ 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.
+
+ Signed-off-by: Steve Dickson <steved at redhat.com>
+
+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;
diff --git a/nfs-utils.spec b/nfs-utils.spec
index 1ebbbdf..513ac27 100644
--- a/nfs-utils.spec
+++ b/nfs-utils.spec
@@ -30,6 +30,7 @@ Source52: nfs-server.postconfig
Patch001: nfs-utils-1.2.6-rc3.patch
Patch002: nfs-utils-1.2.5-libidmap-hide-syms.patch
+Patch003: nfs-utils-1.2.5-nfsd-new-default.patch
Patch100: nfs-utils-1.2.1-statdpath-man.patch
Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch
@@ -87,6 +88,7 @@ This package also contains the mount.nfs and umount.nfs program.
%patch001 -p1
%patch002 -p1
+%patch003 -p1
%patch100 -p1
%patch101 -p1
@@ -278,6 +280,7 @@ fi
* Fri Mar 16 2012 Steve Dickson <steved at redhat.com> 1.2.5-5
- Make sure statd is start before NFS mounts (bz 786050)
- rpc.idmap: Hide global symbols from libidmap plugins (bz 797332)
+- nfsd: Bump up the default to 8 nprocs (bz 757452)
* Mon Jan 16 2012 Steve Dickson <steved at redhat.com> 1.2.5-4
- Reworked how the nfsd service requires the rpcbind service (bz 768550)
More information about the scm-commits
mailing list