public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nfsd: allow the use of multiple backchannel slots
@ 2024-10-28 14:26 Jeff Layton
  2024-10-28 14:26 ` [PATCH 1/2] nfsd: remove nfsd4_session->se_bchannel Jeff Layton
  2024-10-28 14:26 ` [PATCH 2/2] nfsd: allow for more callback session slots Jeff Layton
  0 siblings, 2 replies; 9+ messages in thread
From: Jeff Layton @ 2024-10-28 14:26 UTC (permalink / raw)
  To: Chuck Lever, Neil Brown, Dai Ngo, Tom Talpey
  Cc: Olga Kornievskaia, linux-nfs, linux-kernel, Jeff Layton

The NFSv4.1 server code has always only supported a single callback
slot. This has the effect of serializing all the callbacks on the
server, which can cause a bottleneck when there is a lot of callback
activity. This patchset allows the NFS server to use up to 32
backchannel slots when communicating with clients.

Note that so far, we don't have a great way to drive a lot of concurrent
backchannel activity with standard testsuites. I did set up a server
with two clients and had one client open a bunch of files, and a second
client fork off a bunch of processes that statx'ed those files
repeatedly. With that I was able to see the parallelization in action
via CB_GETATTR activity. I'm still thinking about how best to test this
with pynfs.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
Jeff Layton (2):
      nfsd: remove nfsd4_session->se_bchannel
      nfsd: allow for more callback session slots

 fs/nfsd/nfs4callback.c | 107 +++++++++++++++++++++++++++++++++++--------------
 fs/nfsd/nfs4state.c    |   9 +++--
 fs/nfsd/state.h        |  13 +++---
 fs/nfsd/trace.h        |   2 +-
 4 files changed, 89 insertions(+), 42 deletions(-)
---
base-commit: c7b8826b41906db1c930cbb10abb94eb24247f20
change-id: 20241025-bcwide-6bd7e4b63db2

Best regards,
-- 
Jeff Layton <jlayton@kernel.org>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-10-29 18:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-28 14:26 [PATCH 0/2] nfsd: allow the use of multiple backchannel slots Jeff Layton
2024-10-28 14:26 ` [PATCH 1/2] nfsd: remove nfsd4_session->se_bchannel Jeff Layton
2024-10-28 14:26 ` [PATCH 2/2] nfsd: allow for more callback session slots Jeff Layton
2024-10-28 14:46   ` Jeff Layton
2024-10-28 19:05   ` Chuck Lever
2024-10-29 10:28     ` Jeff Layton
2024-10-29 13:09       ` Chuck Lever III
2024-10-29 17:54       ` Tom Talpey
2024-10-29 18:24         ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox