Skip to content

Avoid no-op transport enqueues

Chuck Lever linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sunrpc: skip svc_xprt_enqueue when no work is pendingnet/sunrpc/svc_xprt.c+20 -51 reply
2/3sunrpc: skip svc_xprt_enqueue in svc_xprt_received when idlenet/sunrpc/svc_xprt.c+13 -11 reply
3/3sunrpc: skip svc_xprt_enqueue when transport is busynet/sunrpc/svc_xprt.c+10 -31 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJeff Layton
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Avoid no-op transport enqueues

From: Chuck Lever <[email protected]>

Reduce the amount of wasted work the svc thread scheduler has to do when no work can be scheduled. Exiting threads already check for work so no work is lost.

The three patches in this series each identify a particular scenario where an enqueue becomes a no-op. I've also measured a slight uptick in IOPS and data throughput as well as a drop in 50th percentile latency for simple workloads on fast storage.

Chuck Lever (3):
sunrpc: skip svc_xprt_enqueue when no work is pending
sunrpc: skip svc_xprt_enqueue in svc_xprt_received when idle
sunrpc: skip svc_xprt_enqueue when transport is busy

 net/sunrpc/svc_xprt.c | 46 +++++++++++++++++++++++++++++++++++++------
 1 file changed, 40 insertions(+), 6 deletions(-)
Signature · 1 line
2.53.0