From: Pavel Begunkov <asml.silence@gmail.com>
To: Jens Axboe <axboe@kernel.dk>, io-uring@vger.kernel.org
Subject: Re: [PATCH 0/2] Introduce non circular SQ
Date: Tue, 14 Oct 2025 17:02:26 +0100 [thread overview]
Message-ID: <de8f211d-6a9f-4fc4-bedc-1be47d4ef292@gmail.com> (raw)
In-Reply-To: <845640f0-d8a7-4fc1-aaff-334491780063@kernel.dk>
On 10/14/25 16:05, Jens Axboe wrote:
> On 10/14/25 4:58 AM, Pavel Begunkov wrote:
>> Add a feature that makes the kernel to ignore SQ head/tail and
>> always start fetching SQ entries from index 0, which helps to
>> keep caches hot. See Patch 2 for more details.
>>
>> liburing support:
>> https://github.com/isilence/liburing.git sq-rewind
>>
>> Tested by forcing liburing to enable the flag for compatible setups.
>>
>> Pavel Begunkov (2):
>> io_uring: check for user passing 0 nr_submit
>> io_uring: introduce non-circular SQ
>>
>> include/uapi/linux/io_uring.h | 6 ++++++
>> io_uring/io_uring.c | 34 +++++++++++++++++++++++++---------
>> io_uring/io_uring.h | 3 ++-
>> 3 files changed, 33 insertions(+), 10 deletions(-)
>
> I like the concept of this, makes a lot of sense. No need to keep
> churning through the entire SQ ring, when apps mostly submit a few
> requests at the time. Will help cut down on cacheline usage.
>
> Curious, do you have any numbers on this for any kind of workload?
No, very likely it's a micro optimisation in the grand picture and
would be hard to measure for anything sensible / realistic. It
shouldn't be too difficult to come up with a test with a bunch of
pinned tasks putting a memory pressure, but that would be as useful
as it sounds.
--
Pavel Begunkov
next prev parent reply other threads:[~2025-10-14 16:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-14 10:58 [PATCH 0/2] Introduce non circular SQ Pavel Begunkov
2025-10-14 10:58 ` [PATCH 1/2] io_uring: check for user passing 0 nr_submit Pavel Begunkov
2025-10-14 10:58 ` [PATCH 2/2] io_uring: introduce non-circular SQ Pavel Begunkov
2025-10-14 17:21 ` Jens Axboe
2025-10-14 18:58 ` Pavel Begunkov
2025-10-14 18:37 ` Caleb Sander Mateos
2025-10-14 19:26 ` Pavel Begunkov
2025-10-14 19:46 ` Caleb Sander Mateos
2025-10-16 11:38 ` Pavel Begunkov
2025-10-14 15:05 ` [PATCH 0/2] Introduce non circular SQ Jens Axboe
2025-10-14 16:02 ` Pavel Begunkov [this message]
2025-10-14 16:08 ` Pavel Begunkov
2025-10-14 17:19 ` 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=de8f211d-6a9f-4fc4-bedc-1be47d4ef292@gmail.com \
--to=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
/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