Coalesce provided buffer segments
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 0 repliesNew
- v1 RFC4 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- Rebase on current tree(s)
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | io_uring/kbuf: have io_provided_buffers_select() take buf_sel_argio_uring/ | +5 | 0 replies | |
| 2/3 | io_uring/net: pass in io_kiocb to io_bundle_nbufs()io_uring/ | +4 | 0 replies | |
| 3/3 | io_uring/net: allow coalescing of mapped segmentsio_uring/ io_uring/ io_uring/ +1 more | +80 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCHSET v2 0/3] Coalesce provided buffer segments
Hi,
When selecting provided buffers for a send/recv for bundles, there's no reason why the number of buffers selected is the same as the mapped segments that will be passed to send/recv. If some (or all) of these buffers are virtually contigious, then they can get collapsed into much fewer segments. Sometimes even just a single segment. This avoids costly iteration on the send/recv processing side.
The return value is the number of bytes sent/received, and the starting buffer ID where the operation begun. This is again identical to how bundles work, from the application point of view this doesn't change anything in terms of how send/recv bundles are handled, hence this is a transparent feature.
Patch 1-2 are just basic prep patches, and patch 3 allows for actual coalescing of segments. This is only enabled for bundles, as those are the types of requests that process multiple buffers in a single operation.
Patches are on top of current -git with the 6.12 changes pulled in, and the partial buffer consumption patchset applied too.
io_uring/kbuf.c | 71 ++++++++++++++++++++++++++++++++++++++++++------- io_uring/kbuf.h | 3 +++ io_uring/net.c | 55 +++++++++++++++++--------------------- io_uring/net.h | 1 + 4 files changed, 89 insertions(+), 41 deletions(-)
Since v1:
- Rebase on current tree(s)
Signature · 1 line
Jens Axboe