Add support for ring mapped provided buffers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest3 patches 6 repliesIn review
- v53 patches 0 repliesSuperseded
- v416 patches 6 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 12 patches | 3 replies | Superseded | |
| v2 RFC | 11 patches | 5 replies | Superseded | |
| v1 RFC | 10 patches | 1 reply | Superseded |
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | io_uring: add buffer selection support to IORING_OP_NOPfs/ | +12 | 0 replies | |
| 2/3 | io_uring: add io_pin_pages() helperfs/ | +50 | 0 replies | |
| 3/3 | io_uring: add support for ring mapped supplied buffersfs/ include/ | +257 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
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