Skip to content

RFC SUNRPC: dynamic rpc_slot allocator

[email protected] linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest1 patch 5 repliesIn review
  2. v1 RFC0 of 1 patch 4 repliesSuperseded

Changes from the cover letter

- kmalloc instead of mempools
- same dynamic allocator used by all interested transports.
- used GFP_ATOMIC for rpc_xprt and initial slot allocation
- UDP also uses dynamic allocation, but not in response to write_space callback.
- BC_TCP slots reduced to RPC_MIN_SLOT_TABLE. (could add dynamic if so desired)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1SUNRPC: dynamic rpc_slot allocatorinclude/linux/sunrpc/xprt.h net/sunrpc/clnt.c net/sunrpc/xprt.c +1 more+121 -152 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC V2 0/1] SUNRPC: dynamic rpc_slot allocator

Second version. Responded to comments.
As for the first version, I would appreciate comments on this patch.

Changes:

- kmalloc instead of mempools
- same dynamic allocator used by all interested transports.
- used GFP_ATOMIC for rpc_xprt and initial slot allocation
- UDP also uses dynamic allocation, but not in response to write_space callback.
- BC_TCP slots reduced to RPC_MIN_SLOT_TABLE. (could add dynamic if so desired)

See patch comments for more description.

The 10G test bed is not yet configured. I did test with VMs, copying a large file over NFSv3/v4. For tcp, started with 2 slots, ended with 7. for udp (same file), started with 2 slots, ended with 3.

-->Andy