Skip to content

io_uring: add napi busy polling support

Jens Axboe io-uring netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v16 Latest7 patches 2 repliesIn review 2 of 7 applied

Changes in v16 from the cover letter

- Rebase on current tree
- Various cleanups
- Rename NAPI_F_NO_SCHED to NAPI_F_END_ON_RESCHED

Patches in v16 2 of 7 applied

#Subject and filesSizeRepliesApplied
1/7net: split off __napi_busy_poll from napi_busy_pollnet/core/dev.c+28 -140 repliesApplied
2/7net: add napi_busy_loop_rcu()include/net/busy_poll.h net/core/dev.c+19 -00 repliesApplied
3/7io-uring: move io_wait_queue definition to header fileio_uring/io_uring.c io_uring/io_uring.h+22 -210 replies
4/7io-uring: add napi busy poll supportinclude/linux/io_uring_types.h io_uring/Makefile io_uring/io_uring.c +4 more+370 -00 replies
5/7io-uring: add sqpoll support for napi busy pollio_uring/napi.c io_uring/napi.h io_uring/sqpoll.c+33 -10 replies
6/7io_uring: add register/unregister napi functioninclude/uapi/linux/io_uring.h io_uring/napi.c io_uring/napi.h +1 more+83 -00 replies
7/7io_uring: add prefer busy poll to register and unregister napi apiinclude/uapi/linux/io_uring.h io_uring/napi.c+9 -40 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchJakub Kicinski
1/7
2/7
3/7
4/7A-b
5/7
6/7A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v16 thread

Cover letter [PATCHSET v16 0/7] io_uring: add napi busy polling support

Hi,

I finally got around to testing this patchset in its current form, and results look fine to me. It Works. Using the basic ping/pong test that's part of the liburing addition, without enabling NAPI I get:

Stock settings, no NAPI, 100k packets:

rtt(us) min/avg/max/mdev = 31.730/37.006/87.960/0.497

and with -t10 -b enabled:

rtt(us) min/avg/max/mdev = 23.250/29.795/63.511/1.203

In short, this patchset enables per io_uring NAPI enablement, rather than need to enable that globally. This allows targeted NAPI usage with io_uring.

Here's Stefan's v15 posting, which predates this one:

https://lore.kernel.org/io-uring/[email protected]/

Patches are on top of the current 6.9 io_uring branch.

Changes since v15
- Rebase on current tree
- Various cleanups
- Rename NAPI_F_NO_SCHED to NAPI_F_END_ON_RESCHED

Signature · 1 line
Jens Axboe