From: Xiaoguang Wang <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: [PATCH 0/2] improve SQPOLL handling
Date: Tue, 27 Oct 2020 21:34:43 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
hello,
This is a gentle ping.
Regards,
Xiaogaung Wang
> The first patch tries to improve various issues in current implementation:
> The prepare_to_wait() usage in __io_sq_thread() is weird. If multiple ctxs
> share one same poll thread, one ctx will put poll thread in TASK_INTERRUPTIBLE,
> but if other ctxs have work to do, we don't need to change task's stat at all.
> I think only if all ctxs don't have work to do, we can do it.
> We use round-robin strategy to make multiple ctxs share one same poll thread,
> but there are various condition in __io_sq_thread(), which seems complicated and
> may affect round-robin strategy.
> In io_sq_thread(), we always call io_sq_thread_drop_mm() when we complete a
> round of ctxs iteration, which maybe inefficient.
>
> The second patch adds a IORING_SETUP_SQPOLL_PERCPU flag, for those rings which
> have SQPOLL enabled and are willing to be bound to one same cpu, hence share
> one same poll thread, add a capability that these rings can share one poll thread
> by specifying a new IORING_SETUP_SQPOLL_PERCPU flag. FIO tool can integrate this
> feature easily, so we can test multiple rings to share same poll thread easily.
>
> Xiaoguang Wang (2):
> io_uring: refactor io_sq_thread() handling
> io_uring: support multiple rings to share same poll thread by
> specifying same cpu
>
> fs/io_uring.c | 307 ++++++++++++++++++++--------------
> include/uapi/linux/io_uring.h | 1 +
> 2 files changed, 181 insertions(+), 127 deletions(-)
>
next prev parent reply other threads:[~2020-10-27 13:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 8:23 [PATCH 0/2] improve SQPOLL handling Xiaoguang Wang
2020-10-20 8:23 ` [PATCH 1/2] io_uring: refactor io_sq_thread() handling Xiaoguang Wang
2020-10-27 16:56 ` Jens Axboe
2020-10-20 8:23 ` [PATCH 2/2] io_uring: support multiple rings to share same poll thread by specifying same cpu Xiaoguang Wang
2020-10-27 17:01 ` Jens Axboe
2020-11-01 14:22 ` Xiaoguang Wang
2020-11-02 12:00 ` Xiaoguang Wang
2020-10-27 13:34 ` Xiaoguang Wang [this message]
2020-10-27 13:48 ` [PATCH 0/2] improve SQPOLL handling Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9b0ee22a-1dc3-932e-d2a7-360ff463e04d@linux.alibaba.com \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox