All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@kernel.org>
To: Luis Chamberlain <mcgrof@kernel.org>,
	 Daniel Gomez <da.gomez@samsung.com>,
	Chuck Lever <cel@kernel.org>
Cc: kdevops@lists.linux.dev, Jeff Layton <jlayton@kernel.org>
Subject: [PATCH v2 4/5] nfsd: use more reasonable defaults for local VM testing
Date: Thu, 18 Jun 2026 08:17:18 -0400	[thread overview]
Message-ID: <20260618-fixes-v2-4-c8bab773a55e@kernel.org> (raw)
In-Reply-To: <20260618-fixes-v2-0-c8bab773a55e@kernel.org>

128 threads is a more reasonable default with modern machine sizes, and
30s is a more reasonable default grace period for localized testing with
knfsd. Also, some other default config changes:

- enable v4.0 since we still need to test it

- min-threads setting to use dynamic threading by default on newer kernels.

- have mountd do manage_gids to exercise those codepaths

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 kconfigs/Kconfig.nfsd                      | 4 ++--
 playbooks/roles/nfsd/templates/nfs.conf.j2 | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/kconfigs/Kconfig.nfsd b/kconfigs/Kconfig.nfsd
index dbc02115d785..586333803671 100644
--- a/kconfigs/Kconfig.nfsd
+++ b/kconfigs/Kconfig.nfsd
@@ -57,13 +57,13 @@ config NFSD_EXPORT_OPTIONS
 
 config NFSD_THREADS
 	int "Number of nfsd threads to spawn"
-	default 8
+	default 128
 	help
 	  Number of nfsd threads to start up for testing.
 
 config NFSD_LEASE_TIME
 	int "NFSv4 lease time and grace period, in seconds"
-	default 90
+	default 30
 	help
 	  Time, in seconds, that the NFS server will wait before expiring
 	  a client lease. Production servers typically use 90 seconds to
diff --git a/playbooks/roles/nfsd/templates/nfs.conf.j2 b/playbooks/roles/nfsd/templates/nfs.conf.j2
index a5f4a714ec34..45aba163b016 100644
--- a/playbooks/roles/nfsd/templates/nfs.conf.j2
+++ b/playbooks/roles/nfsd/templates/nfs.conf.j2
@@ -1,9 +1,14 @@
 [general]
 pipefs-directory={{ pipefs_directory }}
 
+[mountd]
+manage-gids=y
+
 [nfsd]
 udp=y
 rdma=y
+vers4.0=y
+min-threads=1
 threads={{ nfsd_threads }}
 grace-time={{ nfsd_lease_time }}
 lease-time={{ nfsd_lease_time }}

-- 
2.54.0


  parent reply	other threads:[~2026-06-18 12:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-18 12:17 [PATCH v2 0/5] kdevops: fixes for new ansible and some nfsd default config changes Jeff Layton
2026-06-18 12:17 ` [PATCH v2 1/5] ansible: fix bare conditionals for ansible-core 2.20+ strict booleans Jeff Layton
2026-06-18 12:17 ` [PATCH v2 2/5] ansible: replace deprecated top-level ansible_* facts with ansible_facts[] Jeff Layton
2026-06-18 12:17 ` [PATCH v2 3/5] gitr: enable verbose logging in the test harness Jeff Layton
2026-06-18 12:17 ` Jeff Layton [this message]
2026-06-18 12:17 ` [PATCH v2 5/5] devconfig: add some extra packages to the kdev tools Jeff Layton

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=20260618-fixes-v2-4-c8bab773a55e@kernel.org \
    --to=jlayton@kernel.org \
    --cc=cel@kernel.org \
    --cc=da.gomez@samsung.com \
    --cc=kdevops@lists.linux.dev \
    --cc=mcgrof@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.