Skip to contentSkip to conversation

nfsd: dump default number of threads to 16

PATCH In review Scott Mayhew 3 participants 4 messages Nov 18, 2024 – Nov 23, 2024

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

PATCH 1/1 nfsd: dump default number of threads to 16

nfsdctl defaults to 16 threads. Since the nfs-server.service file first tries nfsdctl and then falls back to rpc.nfsd, it would probably be wise to make the default in rpc.nfsd and nfs.conf 16, for the sake of consistency and to avoid surprises.

---
 nfs.conf          | 2 +-
 utils/nfsd/nfsd.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
nfs.conf +1 -1
index 23b5f7d4..087d7372 100644
@@ -66,7 +66,7 @@
 #
 [nfsd]
 # debug=0
-# threads=8
+# threads=16
 # host=
 # port=0
 # grace-time=90
utils/nfsd/nfsd.c +1 -1
index 249df00b..f787583e 100644
@@ -32,7 +32,7 @@
 #include "xcommon.h"
 
 #ifndef NFSD_NPROC
-#define NFSD_NPROC 8
+#define NFSD_NPROC 16
 #endif
 
 static void	usage(const char *);
Signature · 1 line
2.46.2
#1 lore raw

Subject line should say "bump", not "dump".

-Scott

Quoted 41 lines · Scott Mayhew

nfsdctl defaults to 16 threads. Since the nfs-server.service file first tries nfsdctl and then falls back to rpc.nfsd, it would probably be wise to make the default in rpc.nfsd and nfs.conf 16, for the sake of consistency and to avoid surprises.

---
 nfs.conf          | 2 +-
 utils/nfsd/nfsd.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
nfs.conf +1 -1
index 23b5f7d4..087d7372 100644
@@ -66,7 +66,7 @@
 #
 [nfsd]
 # debug=0
-# threads=8
+# threads=16
 # host=
 # port=0
 # grace-time=90
utils/nfsd/nfsd.c +1 -1
index 249df00b..f787583e 100644
@@ -32,7 +32,7 @@
 #include "xcommon.h"
 
 #ifndef NFSD_NPROC
-#define NFSD_NPROC 8
+#define NFSD_NPROC 16
 #endif
 
 static void	usage(const char *);
Signature · 1 line
2.46.2
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Scott Mayhew
Quoted 29 lines · Scott Mayhew

nfsdctl defaults to 16 threads. Since the nfs-server.service file first tries nfsdctl and then falls back to rpc.nfsd, it would probably be wise to make the default in rpc.nfsd and nfs.conf 16, for the sake of consistency and to avoid surprises.

---
 nfs.conf          | 2 +-
 utils/nfsd/nfsd.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
nfs.conf +1 -1
index 23b5f7d4..087d7372 100644
@@ -66,7 +66,7 @@
 #
 [nfsd]
 # debug=0
-# threads=8
+# threads=16
 # host=
 # port=0
 # grace-time=90
utils/nfsd/nfsd.c +0 -0
index 249df00b..f787583e 100644

utils/nfsd/nfsd.c line 38

Quoted 8 lines
utils/nfsd/nfsd.c +1 -1
@@ -32,7 +32,7 @@
 #include "xcommon.h"
 
 #ifndef NFSD_NPROC
-#define NFSD_NPROC 8
+#define NFSD_NPROC 16
 #endif
 
 static void	usage(const char *);

I sort of consider rpc.nfsd to be legacy code and think we shouldn't touch it, but I don't have a strong technical reason to oppose this. I'm fine with this if it's the consensus.

#3 lore raw
In reply to Scott Mayhew
Quoted 6 lines · Scott Mayhew

nfsdctl defaults to 16 threads. Since the nfs-server.service file first tries nfsdctl and then falls back to rpc.nfsd, it would probably be wise to make the default in rpc.nfsd and nfs.conf 16, for the sake of consistency and to avoid surprises.

Committed... (tag: nfs-utils-2-8-2-rc3)

steved.

Quoted 31 lines
---
  nfs.conf          | 2 +-
  utils/nfsd/nfsd.c | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
nfs.conf +1 -1
index 23b5f7d4..087d7372 100644
@@ -66,7 +66,7 @@
  #
  [nfsd]
  # debug=0
-# threads=8
+# threads=16
  # host=
  # port=0
  # grace-time=90
utils/nfsd/nfsd.c +1 -1
index 249df00b..f787583e 100644
@@ -32,7 +32,7 @@
  #include "xcommon.h"
 
  #ifndef NFSD_NPROC
-#define NFSD_NPROC 8
+#define NFSD_NPROC 16
  #endif
 
  static void	usage(const char *);