Turn single segment imports into ITER_UBUF
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest11 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | block: ensure bio_alloc_map_data() deals with ITER_UBUF correctlyblock/ | +3 | 0 replies | |
| 2/11 | iov_iter: add iter_iovec() helperblock/ drivers/ drivers/ +9 more | +73 | 0 replies | |
| 3/11 | IB/hfi1: check for user backed iterator, not specific iterator typedrivers/ | +2 | 0 replies | |
| 4/11 | IB/qib: check for user backed iterator, not specific iterator typedrivers/ | +1 | 0 replies | |
| 5/11 | ALSA: pcm: check for user backed iterator, not specific iterator typesound/ | +2 | 0 replies | |
| 6/11 | iov_iter: add iter_iov_addr() and iter_iov_len() helpersfs/ include/ io_uring/ +1 more | +24 | 0 replies | |
| 7/11 | iov_iter: remove iov_iter_iovec()include/ | +0 | 0 replies | |
| 8/11 | iov_iter: set nr_segs = 1 for ITER_UBUFinclude/ | +2 | 0 replies | |
| 9/11 | iov_iter: overlay struct iovec and ubuf/leninclude/ | +35 | 0 replies | |
| 10/11 | iov_iter: convert import_single_range() to ITER_UBUFlib/ | +1 | 0 replies | |
| 11/11 | iov_iter: import single vector iovecs as ITER_UBUFlib/ | +27 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCHSET v6b 0/11] Turn single segment imports into ITER_UBUF
Hi,
No real changes since v6, just sending it out so that whatever is in my tree matches what has been sent out upstream. Changes since v6:
- Rearrange a few of the sound/IB patches to avoid them seeing ITER_UBUF in the middle of the series. End result is the same.
- Correct a few comments, notably one on why __ubuf_iovec isn't const.
Passes all my testing, and also re-ran the micro benchmark as it's probably more relevant than my peak testing. In short, it's reading 4k from /dev/zero in a loop with readv. Before the patches, that'd be turned into an ITER_IOVEC, and after an ITER_UBUF. Graph here:
https://kernel.dk/4k-zero-read.png
and in real numbers it ends up being a 3.7% reduction with using ITER_UBUF. Sadly, in absolute numbers, comparing read(2) and readv(2), the latter takes 2.11x as long in the stock kernel, and 2.01x as long with the patches. So while single segment is better now than before, it's still waaaay slower than having to copy in a single iovec. Testing was run with all security mitigations off.
Signature · 1 line
Jens Axboe