From: Damien Le Moal <dlemoal@kernel.org>
To: Keith Busch <kbusch@kernel.org>, Ming Lei <ming.lei@redhat.com>
Cc: linux-block@vger.kernel.org, virtualization@lists.linux.dev,
linux-nvme@lists.infradead.org
Subject: Re: [Report] requests are submitted to hardware in reverse order from nvme/virtio-blk queue_rqs()
Date: Thu, 25 Jan 2024 07:32:37 +0900 [thread overview]
Message-ID: <772618f3-f4d3-470e-bf06-70d8ee66d7b0@kernel.org> (raw)
In-Reply-To: <ZbEvstiLSMwtFb8m@kbusch-mbp.dhcp.thefacebook.com>
On 1/25/24 00:41, Keith Busch wrote:
> On Wed, Jan 24, 2024 at 07:59:54PM +0800, Ming Lei wrote:
>> Requests are added to plug list in reverse order, and both virtio-blk
>> and nvme retrieves request from plug list in order, so finally requests
>> are submitted to hardware in reverse order via nvme_queue_rqs() or
>> virtio_queue_rqs, see:
>>
>> io_uring submit_bio vdb 6302096 4096
>> io_uring submit_bio vdb 12235072 4096
>> io_uring submit_bio vdb 7682280 4096
>> io_uring submit_bio vdb 11912464 4096
>> io_uring virtio_queue_rqs vdb 11912464 4096
>> io_uring virtio_queue_rqs vdb 7682280 4096
>> io_uring virtio_queue_rqs vdb 12235072 4096
>> io_uring virtio_queue_rqs vdb 6302096 4096
>>
>>
>> May this reorder be one problem for virtio-blk and nvme-pci?
>
> For nvme, it depends. Usually it's probably not a problem, though some
> pci ssd's have optimizations for sequential IO that might not work if
> these get reordered.
ZNS and zoned virtio-blk drives... Cannot use io_uring at the moment. But I do
not thing we reliably can anyway, unless the issuer is CPU/ring aware and always
issue writes to a zone using the same ring.
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2024-01-24 22:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-24 11:59 [Report] requests are submitted to hardware in reverse order from nvme/virtio-blk queue_rqs() Ming Lei
2024-01-24 15:41 ` Keith Busch
2024-01-24 22:32 ` Damien Le Moal [this message]
2024-01-25 4:23 ` Ming Lei
2024-01-25 15:33 ` Jens Axboe
2024-01-26 14:10 ` Christoph Hellwig
2024-10-07 22:39 ` Bart Van Assche
2024-10-08 11:33 ` Christoph Hellwig
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=772618f3-f4d3-470e-bf06-70d8ee66d7b0@kernel.org \
--to=dlemoal@kernel.org \
--cc=kbusch@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=ming.lei@redhat.com \
--cc=virtualization@lists.linux.dev \
/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