Skip to content

Commit

Permalink
Merge branch 'man/io_uring_queue_init' of https://github.com/alkis/li…
Browse files Browse the repository at this point in the history
…buring

* 'man/io_uring_queue_init' of https://github.com/alkis/liburing:
  man/io_uring_queue_init.3: Improve IORING_SQ_CQ_OVERFLOW docs
  • Loading branch information
axboe committed Oct 18, 2023
2 parents 7264f1f + b1106ab commit 45ed5c6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions man/io_uring_queue_init.3
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ may be too small for networked workloads. The SQ ring entries do not impose a
limit on the number of in-flight requests that the ring can support, it merely
limits the number that can be submitted to the kernel in one go (batch). if the
CQ ring overflows, e.g. more entries are generated than fits in the ring before
the application can reap them, then the ring enters a CQ ring overflow state.
This is indicated by
the application can reap them, then if the kernel supports
.B IORING_FEAT_NODROP
the ring enters a CQ ring overflow state. Otherwise it drops the CQEs and
increments
.I cq.koverflow
in
.I stuct io_uring
with the number of CQEs dropped. The overflow state is indicated by
.B IORING_SQ_CQ_OVERFLOW
being set in the SQ ring flags. Unless the kernel runs out of available memory,
entries are not dropped, but it is a much slower completion path and will slow
Expand Down

0 comments on commit 45ed5c6

Please sign in to comment.