RFC Introduce ring flexible placement
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest16 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | io_uring: add helper calculating region byte sizeio_uring/ io_uring/ | +7 | 0 replies | |
| 2/16 | io_uring: pass sq entires in the params structio_uring/ io_uring/ io_uring/ | +9 | 0 replies | |
| 3/16 | io_uring: use mem_is_zero to check ring paramsio_uring/ | +3 | 0 replies | |
| 4/16 | io_uring: move flags check to io_uring_sanitise_paramsio_uring/ | +3 | 0 replies | |
| 5/16 | io_uring: introduce struct io_ctx_configio_uring/ io_uring/ | +16 | 0 replies | |
| 6/16 | io_uring: split out config init helperio_uring/ | +17 | 0 replies | |
| 7/16 | io_uring: add structure keeping ring offsetsio_uring/ io_uring/ io_uring/ | +49 | 0 replies | |
| 8/16 | io_uring: pre-calculate scq offsetsio_uring/ io_uring/ | +15 | 0 replies | |
| 9/16 | io_uring: inroduce helper for setting user offsetio_uring/ io_uring/ io_uring/ | +30 | 0 replies | |
| 10/16 | io_uring: separate cqe array from headersinclude/ io_uring/ io_uring/ +2 more | +41 | 0 replies | |
| 11/16 | io_uring/region: introduce io_region_sliceio_uring/ io_uring/ | +14 | 0 replies | |
| 12/16 | io_uring: convert pointer init to io_region_sliceio_uring/ io_uring/ | +27 | 0 replies | |
| 13/16 | io_uring: refactor rings_size()io_uring/ | +15 | 0 replies | |
| 14/16 | io_uring: extract io_create_mem_regionio_uring/ io_uring/ | +28 | 0 replies | |
| 15/16 | io_uring: allow creating mem region at setupinclude/ io_uring/ io_uring/ +1 more | +35 | 0 replies | |
| 16/16 | io_uring: introduce SCQ placementinclude/ io_uring/ io_uring/ +1 more | +128 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC 00/16] Introduce ring flexible placement
This patchset allows the user to put rings and ring headers into the memory/parameter region and specify offsets where they should lie.
It solves a problem where the headers are placed before ring entries, which 1. usually padded wasting memory and using more cache lines than a smarter placement would need. And 2. it grows the region size to a non pow2. It's also handy to have a way to put everything into a single region.
It's implemented for SQ and CQ, but planned to be supported by zcrx as well. There is a bunch of cleanups (1-13), it'd make sense to merge some of them separately. It also adds an ability to register a memory region during setup and not via a registration (Patch 15). And the placement handling is in Patch 16.
Pavel Begunkov (16):
io_uring: add helper calculating region byte size
io_uring: pass sq entires in the params struct
io_uring: use mem_is_zero to check ring params
io_uring: move flags check to io_uring_sanitise_params
io_uring: introduce struct io_ctx_config
io_uring: split out config init helper
io_uring: add structure keeping ring offsets
io_uring: pre-calculate scq offsets
io_uring: inroduce helper for setting user offset
io_uring: separate cqe array from headers io_uring/region: introduce io_region_slice
io_uring: convert pointer init to io_region_slice
io_uring: refactor rings_size()
io_uring: extract io_create_mem_region
io_uring: allow creating mem region at setup
io_uring: introduce SCQ placement
include/linux/io_uring_types.h | 17 +- include/uapi/linux/io_uring.h | 21 +- io_uring/fdinfo.c | 2 +- io_uring/io_uring.c | 341 +++++++++++++++++++++++---------- io_uring/io_uring.h | 34 +++- io_uring/memmap.c | 16 +- io_uring/memmap.h | 7 + io_uring/register.c | 75 ++++---- 8 files changed, 360 insertions(+), 153 deletions(-)
Signature · 1 line
2.49.0