Skip to content

RFC adaptive sqpoll and its wakeup optimization

Hao Xu io-uring 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2io_uring: add support for ns granularity of io_sq_thread_idlefs/io_uring.c include/uapi/linux/io_uring.h+46 -1619 replies
2/2io_uring: submit sqes in the original context when waking up sqthreadfs/io_uring.c include/uapi/linux/io_uring.h+24 -618 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC 5.13 0/2] adaptive sqpoll and its wakeup optimization

patch 1/2 provides a new option to set up sq_thread_idle in nanosecond granularity.
patch 2/2 is to cut down IO latency when sqthread is waking up.

This is a RFC, especially 2/2. There may be more works to do, like add a REGISTER OP to allow applications to adjust sq_thread_idle, since it may experience both high IO pressure and low IO pressure. And in low IO pressure, patch 1/2 saves cpu resource while keeping a reasonable latency. liburing tweak is ready as well, but currently I'd like to just post this for comments.

Hao Xu (2):
io_uring: add support for ns granularity of io_sq_thread_idle
io_uring: submit sqes in the original context when waking up sqthread

 fs/io_uring.c                 | 88 ++++++++++++++++++++++++++++++++-----------
 include/uapi/linux/io_uring.h |  4 +-
 2 files changed, 70 insertions(+), 22 deletions(-)
Signature · 1 line
1.8.3.1