Skip to content

Add support for ring mapped provided buffers

Jens Axboe io-uring 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 6 repliesIn review
  2. v53 patches 0 repliesSuperseded
  3. v416 patches 6 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v312 patches3 repliesSuperseded
v2 RFC11 patches5 repliesSuperseded
v1 RFC10 patches1 replySuperseded

Changes in v6 from the cover letter

- Change layout so that 'head' overlaps with reserved field in first buffer, avoiding the weird split of first page having N-1 buffers and the rest N (Dylan)
- Rebase on current kernel bits
- Fix missing ring unlock on out-of-bufs
- Fix issue in io_recv()

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3io_uring: add buffer selection support to IORING_OP_NOPfs/io_uring.c+12 -10 replies
2/3io_uring: add io_pin_pages() helperfs/io_uring.c+50 -270 replies
3/3io_uring: add support for ring mapped supplied buffersfs/io_uring.c include/uapi/linux/io_uring.h+257 -124 replies

Reviews trailers per patch

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

Read the v6 thread

Cover letter [PATCHSET v6 0/3] Add support for ring mapped provided buffers

Hi,

This series builds to adding support for a different way of doing provided buffers, which is a lot more efficient than the existing scheme for high rate of consumption/provision of buffers. The interesting bits here are patch 3, which also has some performance numbers an an explanation of it.

Patch 1 adds NOP support for provided buffers, just so that we can benchmark the last change.

Patch 2 just abstracts out the pinning code.

Patch 3 adds the actual feature.

This passes the full liburing suite, and various test cases I adopted to use ring provided buffers.

v6:
- Change layout so that 'head' overlaps with reserved field in first buffer, avoiding the weird split of first page having N-1 buffers and the rest N (Dylan)
- Rebase on current kernel bits
- Fix missing ring unlock on out-of-bufs
- Fix issue in io_recv()

Can also be found in my git repo, for-5.19/io_uring-pbuf branch:

https://git.kernel.dk/cgit/linux-block/log/?h=for-5.19/io_uring-pbuf

and there's an associated liburing branch too:

https://git.kernel.dk/cgit/liburing/log/?h=huge

 fs/io_uring.c                 | 323 +++++++++++++++++++++++++++++-----
 include/uapi/linux/io_uring.h |  36 ++++
 2 files changed, 319 insertions(+), 40 deletions(-)
Signature · 1 line
Jens Axboe