<div dir="auto"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Stefan Roesch</strong> <span dir="auto"><<a href="mailto:shr@devkernel.io">shr@devkernel.io</a>></span><br>Date: Mon, Nov 14, 2022, 11:13 PM<br>Subject: [RFC PATCH v3 0/3] io_uring: add napi busy polling support<br>To:  <<a href="mailto:kernel-team@fb.com">kernel-team@fb.com</a>><br>Cc:  <<a href="mailto:shr@devkernel.io">shr@devkernel.io</a>>,  <<a href="mailto:axboe@kernel.dk">axboe@kernel.dk</a>>,  <<a href="mailto:olivier@trillion01.com">olivier@trillion01.com</a>>,  <<a href="mailto:netdev@vger.kernel.org">netdev@vger.kernel.org</a>>,  <<a href="mailto:io-uring@vger.kernel.org">io-uring@vger.kernel.org</a>>,  <<a href="mailto:kuba@kernel.org">kuba@kernel.org</a>><br></div><br><br>This adds the napi busy polling support in io_uring.c. It adds a new<br>
napi_list to the io_ring_ctx structure. This list contains the list of<br>
napi_id's that are currently enabled for busy polling. This list is<br>
used to determine which napi id's enabled busy polling.<br>
<br>
To set the new napi busy poll timeout, a new io-uring api has been<br>
added. It sets the napi busy poll timeout for the corresponding ring.<br>
<br>
There is also a corresponding liburing patch series, which enables this<br>
feature. The name of the series is "liburing: add add api for napi busy<br>
poll timeout". It also contains two programs to test the this.<br>
<br>
Testing has shown that the round-trip times are reduced to 38us from<br>
55us by enabling napi busy polling with a busy poll timeout of 100us.<br>
<br>
<br>
Changes:<br>
- V3:<br>
  - Refreshed to 6.1-rc5<br>
  - Added a new io-uring api for the prefer napi busy poll api and wire<br>
    it to io_napi_busy_loop().<br>
  - Removed the unregister (implemented as register)<br>
  - Added more performance results to the first commit message.<br>
- V2:<br>
  - Add missing defines if CONFIG_NET_RX_BUSY_POLL is not defined<br>
  - Changes signature of function io_napi_add_list to static inline<br>
    if CONFIG_NET_RX_BUSY_POLL is not defined<br>
  - define some functions as static<br>
<br>
<br>
Signed-off-by: Stefan Roesch <<a href="mailto:shr@devkernel.io" target="_blank" rel="noreferrer">shr@devkernel.io</a>><br>
<br>
Stefan Roesch (3):<br>
  io_uring: add napi busy polling support<br>
  io_uring: add api to set napi busy poll timeout.<br>
  io_uring: add api to set napi prefer busy poll<br>
<br>
 include/linux/io_uring_types.h |   8 +<br>
 include/uapi/linux/io_uring.h  |   4 +<br>
 io_uring/io_uring.c            | 278 +++++++++++++++++++++++++++++++++<br>
 io_uring/napi.h                |  22 +++<br>
 io_uring/poll.c                |   3 +<br>
 io_uring/sqpoll.c              |  10 ++<br>
 6 files changed, 325 insertions(+)<br>
 create mode 100644 io_uring/napi.h<br>
<br>
<br>
base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa<br>
-- <br>
2.30.2<br>
<br>
</div>