public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <chaitanyak@nvidia.com>
To: Li Feng <fengli@smartx.com>
Cc: Jens Axboe <axboe@kernel.dk>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Jason Wang <jasowang@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Xuan Zhuo <xuanzhuo@linux.alibaba.com>,
	"open list:BLOCK LAYER" <linux-block@vger.kernel.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	"open list:VIRTIO BLOCK AND SCSI DRIVERS"
	<virtualization@lists.linux.dev>
Subject: Re: [PATCH] virtio_blk: set the default scheduler to none
Date: Thu, 7 Dec 2023 09:48:09 +0000	[thread overview]
Message-ID: <b9c8309a-6263-4eca-b2f0-2262bb43e81c@nvidia.com> (raw)
In-Reply-To: <ADCE81A1-D65A-41C4-A485-66E1B056B1CC@smartx.com>

On 12/6/2023 11:21 PM, Li Feng wrote:
> 
> 
>> On Dec 7, 2023, at 14:53, Chaitanya Kulkarni <chaitanyak@nvidia.com> wrote:
>>
>> On 12/6/23 20:31, Li Feng wrote:
>>> virtio-blk is generally used in cloud computing scenarios, where the
>>> performance of virtual disks is very important. The mq-deadline scheduler
>>> has a big performance drop compared to none with single queue. In my tests,
>>> mq-deadline 4k readread iops were 270k compared to 450k for none. So here
>>> the default scheduler of virtio-blk is set to "none".
>>>
>>> Signed-off-by: Li Feng <fengli@smartx.com>
>>> ---
>>>
>>
>> This patch looks good to me, however I'd update the commit log and add
>> performance numbers for the non-mq case also, just in-case to show that we
>> are not breaking non-mq setup.
>>
>> Being said that, in case we want to be future proof, we can also think of
>> adding a module param so if someone comes with a scenario where NO_SCHED is
>> not providing the performance then they can just use the module parameter
>> instead of again editing the code, irrespective of that :-
>>
>> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
>>
>> -ck
> 
> Hi ck,
> 
> What I put above(450k vs 270k) is the data of single queue(non-mq). I think
> we don’t need to add module parameters because the scheduler can be modified
> through sysfs.
> 
> Thanks.

okay.

-ck




  reply	other threads:[~2023-12-07  9:48 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-07  4:31 [PATCH] virtio_blk: set the default scheduler to none Li Feng
2023-12-07  6:02 ` Jason Wang
2023-12-07  6:32   ` Li Feng
2023-12-07  6:38   ` Michael S. Tsirkin
2023-12-07  6:53 ` Chaitanya Kulkarni
2023-12-07  7:21   ` Li Feng
2023-12-07  9:48     ` Chaitanya Kulkarni [this message]
2023-12-07 14:51 ` Stefan Hajnoczi
2023-12-07 14:55   ` Paolo Bonzini
2023-12-07 15:19     ` Christoph Hellwig
2023-12-08  2:00 ` Ming Lei
2023-12-08  2:44   ` Keith Busch
2023-12-08  3:15     ` Jens Axboe
2023-12-08  3:54     ` Ming Lei
2023-12-08  5:55       ` Li Feng
2023-12-08 11:07         ` Paolo Bonzini
2023-12-25 14:20 ` Michael S. Tsirkin
2023-12-26  9:01   ` Li Feng
2023-12-26  9:05     ` Michael S. Tsirkin
2023-12-26 12:14       ` Li Feng
2023-12-26 15:38     ` Michael S. Tsirkin
2023-12-27  7:26       ` Li Feng
2023-12-27 10:06         ` Michael S. Tsirkin
2023-12-28  7:25           ` Li Feng

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=b9c8309a-6263-4eca-b2f0-2262bb43e81c@nvidia.com \
    --to=chaitanyak@nvidia.com \
    --cc=axboe@kernel.dk \
    --cc=fengli@smartx.com \
    --cc=jasowang@redhat.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.com \
    /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