Skip to content

RFC xprtrdma Send completion batching

Chuck Lever linux-nfs linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xprtrdma: Clean up SGE accounting in rpcrdma_prepare_msg_sges()net/sunrpc/xprtrdma/rpc_rdma.c+2 -30 replies
2/5xprtrdma: Change return value of rpcrdma_prepare_send_sges()net/sunrpc/xprtrdma/backchannel.c net/sunrpc/xprtrdma/rpc_rdma.c net/sunrpc/xprtrdma/xprt_rdma.h+40 -240 replies
3/5xprtrdma: Add data structure to manage RDMA Send argumentsnet/sunrpc/xprtrdma/rpc_rdma.c net/sunrpc/xprtrdma/transport.c net/sunrpc/xprtrdma/verbs.c +1 more+239 -20 replies
4/5xprtrdma: Manage RDMA Send arguments via lock-free circular queuenet/sunrpc/xprtrdma/rpc_rdma.c net/sunrpc/xprtrdma/transport.c net/sunrpc/xprtrdma/verbs.c +1 more+36 -391 reply
5/5xprtrdma: Remove atomic send completion countingnet/sunrpc/xprtrdma/frwr_ops.c net/sunrpc/xprtrdma/verbs.c net/sunrpc/xprtrdma/xprt_rdma.h+0 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/5] xprtrdma Send completion batching

Hi Jason, Sagi-

As we discussed a few weeks ago, this patch series implements the following:

- Send SGEs are now managed via lock-less, wait-free circular queues
- Send SGEs referring to page cache pages are DMA unmapped during Send completion
- Send completions are batched to reduce interrupts, but still provide a periodic heartbeat signal for SQ housekeeping
- The circular queue prevents Send Queue overflow

The purpose of this change is to address the issue Sagi reported where the HCA continues to retry a delayed Send request _after_ RPC completion, resulting in a DMA error.

Also available as the first five commits in this topic branch:

http://git.linux-nfs.org/?p=cel/cel-2.6.git;a=shortlog;h=refs/heads/nfs-rdma-for-4.15

---

Chuck Lever (5):
xprtrdma: Clean up SGE accounting in rpcrdma_prepare_msg_sges()
xprtrdma: Change return value of rpcrdma_prepare_send_sges()
xprtrdma: Add data structure to manage RDMA Send arguments
xprtrdma: Manage RDMA Send arguments via lock-free circular queue
xprtrdma: Remove atomic send completion counting

 net/sunrpc/xprtrdma/backchannel.c |    6 +
 net/sunrpc/xprtrdma/frwr_ops.c    |    8 -
 net/sunrpc/xprtrdma/rpc_rdma.c    |  104 +++++++++++-------
 net/sunrpc/xprtrdma/transport.c   |    6 +
 net/sunrpc/xprtrdma/verbs.c       |  210 +++++++++++++++++++++++++++++++++++--
 net/sunrpc/xprtrdma/xprt_rdma.h   |   66 +++++++-----
 6 files changed, 308 insertions(+), 92 deletions(-)

--
Chuck Lever
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html