From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38EF7398902 for ; Thu, 18 Jun 2026 12:17:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781785073; cv=none; b=jaiDpxBe4VmeqKku8xmr/FMohRc9e0Z2EL9zrQJ8Qgg5PYN7zoZ9T5uhQFmV7ew4BKlrhz7iv9lisP0pe38sk22OP8+Ecsljm+PSCq26hqO4XNoHkduXHomiLZBkQKPchMfvVaPrGQSyrOT0p+e4uwjSW0fe29bfGhaqVjvGsGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781785073; c=relaxed/simple; bh=boX8DMunNRWUNGBNLTdTUer2UClfyJJqFz19Zxgqqug=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tlLOPsvCbgDk86gBCay+ZC5YTs2Fw8totsJ/TFSGwSDsikIIoneQMEiOJ2LyvF1hiSedYGIw/QolxXtxr/jzUhqhvxW2PnOFTx7PwjMNTU0u1Nr30Io7oM+PfoMDGCSOXxhl8qrnvZqQUGnPxLR46u7LUkrtv2/qBS2zd9TwZn8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fJtxuZ2B; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fJtxuZ2B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A8CB1F00A3D; Thu, 18 Jun 2026 12:17:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781785072; bh=klVMAI6Izhb9MHbqSfh19BX+3mv6f0BI7tacpDhTgTk=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=fJtxuZ2BnctnFcxsyAc4fLV4ijGLmQX6p/qk5PQfhX+u0f2Imc76c/umMh4MKAoyJ TjRMpchzgR59RPWhM6S88k0Wi209G44FRibAnPJ+FyDKOy3E31MP//kU51AnxhMice 9PaSSybN5JHyEnxqlViyOQP7fV7pZt6rz55lUoH6gT23gXwuxKB9trnZ/03+DT3TpR FJdspBPBfsqeINc3XgxWovPshF/NkMe4xt5dCJOAzHtwl2AxIX2uL+N+pdUP3f/PNR yFtnnURkj6ykUgJU3m7qQ7SmEbZ6gntVpeBNDdGfw7hQ42CgRSEk/fuvSPX1FPQWPZ M/EQjl5QNF1ZQ== From: Jeff Layton Date: Thu, 18 Jun 2026 08:17:18 -0400 Subject: [PATCH v2 4/5] nfsd: use more reasonable defaults for local VM testing Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260618-fixes-v2-4-c8bab773a55e@kernel.org> References: <20260618-fixes-v2-0-c8bab773a55e@kernel.org> In-Reply-To: <20260618-fixes-v2-0-c8bab773a55e@kernel.org> To: Luis Chamberlain , Daniel Gomez , Chuck Lever Cc: kdevops@lists.linux.dev, Jeff Layton X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1735; i=jlayton@kernel.org; h=from:subject:message-id; bh=boX8DMunNRWUNGBNLTdTUer2UClfyJJqFz19Zxgqqug=; b=owEBbQKS/ZANAwAKAQAOaEEZVoIVAcsmYgBqM+HrXCy3mFKR+qHFf14osTDBjaPOWU4sHzYnX 89A9fuN7xGJAjMEAAEKAB0WIQRLwNeyRHGyoYTq9dMADmhBGVaCFQUCajPh6wAKCRAADmhBGVaC FR/tD/9s7X8Z2x53puEthUQJ5jL0qNeloOXn/WuRUez9OTcxUMT27bt4KkqKenQhj9VH/8seStO YrGyScH3k6KKWzAMQi2m0FMKxOoTaesQSd7NtVZ1tufwqW485XyKW6PORFNB112Gc3zeiwB2PVq dcaqQMmxicOZueV5PyVFEhWlnBcG55QA2b+/ZD+zvJ9IxRyDGxSAXO8MpdfQc69b80rnu6SaNUP rz43WE2PsP52unTKv5y2NHEo4HSVjFeGFhtizLxEGA11MFswqK85AFpf71USpth9DY04+J6g1+D fYeMpI4anzt9nFogPOEcp5tMH9YNlGdXvtxGL9Mj4gTVJaAeafCzT//tkTaMStXXJVdAuZPxMtD V9bsfUtlL3HaBeYEgocHbf+AoQg5c+aXCTEfd8pa4zTRLbV2uSuBxNHHtXtVZz3amslvUDsVwZQ 1Zgc76YZHICBfA8MZFJ5SIOLXczU389t7iV5/MgFIK7VGSy/YN2r6vLJjOmO49xDyBNPLwzYrVE cPUY69yW/L6okV+97BNVotP7FvejVUFkxs7VCrcdE4PmVPTCj4EV8OirISdMXS24YlrHiAlpc4c Ncv/jmbPUhRQYj0xb0C6/wpo7oiCeKPxCcjOJX3tevpK6b5Q43UIXLdxQSlUTFn0VJfjH+qsLjW xmPIcEjE2L9UU3Q== X-Developer-Key: i=jlayton@kernel.org; a=openpgp; fpr=4BC0D7B24471B2A184EAF5D3000E684119568215 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 --- 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