Skip to content

liburing: add support for large CQE sizes

Stefan Roesch io-uring 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 0 repliesNew
  2. v36 patches 1 replyApplied
  3. v26 patches 1 replyApplied
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches0 repliesSuperseded

Changes from the cover letter

V2: the changed kernel definition of io_uring_cqe_extra has been applied to
the first patch in this patch series.
V3: - change definition of extra io_uring_cqe fields like in linux kernel
- remove io_uring_cqe_extra definition
V4: change nop test to use new field names

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6liburing: Update io_uring.h with large CQE kernel changessrc/include/liburing/io_uring.h+7 -00 replies
2/6liburing: increase mmap size for large CQE'ssrc/setup.c+5 -10 replies
3/6liburing: return correct ring size for large CQE'ssrc/setup.c+5 -20 replies
4/6liburing: index large CQE's correctlysrc/include/liburing.h src/queue.c+21 -30 replies
5/6liburing: add large CQE tests to nop testtest/nop.c+31 -00 replies
6/6liburing: Test all configurations with NOP testtest/nop.c test/test.h+48 -300 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/6]liburing: add support for large CQE sizes

This adds support for large CQE sizes in the liburing layer. The large CQE sizes double the size compared to the default CQE size.

To support larger CQE sizes the mmap call needs to be modified to map a larger memory region for large CQE's. For default CQE's the size of the mapping stays the same.
Also the ring size calculation needs to change.

Finally when large CQE's are indexed, they need to take into account the bigger CQE size. The index manipulation remains unchanged, only when the CQE array is accessed, the offset is changed for large CQE's.

The nop test has been modified to test that the new values are set correctly.

Testing:
The liburing test suite has been run with the four different configurations:
- default
- large SQE
- large CQE
- large SQE & large CQE
To do this the default setting has been changed for the test run to the above values.:

To use these changes, also the corresponding kernel changes are required.

Changes:
V2: the changed kernel definition of io_uring_cqe_extra has been applied to
the first patch in this patch series.
V3: - change definition of extra io_uring_cqe fields like in linux kernel
- remove io_uring_cqe_extra definition
V4: change nop test to use new field names

Stefan Roesch (6):
liburing: Update io_uring.h with large CQE kernel changes
liburing: increase mmap size for large CQE's
liburing: return correct ring size for large CQE's
liburing: index large CQE's correctly
liburing: add large CQE tests to nop test
liburing: Test all configurations with NOP test

 src/include/liburing.h          | 18 +++++++-
 src/include/liburing/io_uring.h |  7 ++++
 src/queue.c                     |  6 ++-
 src/setup.c                     | 13 ++++--
 test/nop.c                      | 74 ++++++++++++++++++++-------------
 test/test.h                     | 35 ++++++++++++++++
 6 files changed, 117 insertions(+), 36 deletions(-)
 create mode 100644 test/test.h

base-commit: c0ba24d1215e9f2b08266b28b35436988c6f3543

Signature · 1 line
2.30.2