public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Ming Lei <ming.lei@redhat.com>
To: Sumanesh Samanta <sumanesh.samanta@broadcom.com>
Cc: emilne@redhat.com, axboe@kernel.dk, bart.vanassche@wdc.com,
	hare@suse.de, hch@lst.de, jejb@linux.ibm.com,
	kashyap.desai@broadcom.com, linux-block@vger.kernel.org,
	linux-scsi@vger.kernel.org, martin.petersen@oracle.com,
	sathya.prakash@broadcom.com,
	shivasharan.srikanteshwara@broadcom.com,
	suganath-prabu.subramani@broadcom.com, sumit.saxena@broadcom.com
Subject: Re: [PATCH 4/4] scsi: core: don't limit per-LUN queue depth for SSD
Date: Thu, 21 Nov 2019 09:21:48 +0800	[thread overview]
Message-ID: <20191121012148.GE24548@ming.t460p> (raw)
In-Reply-To: <c7c78e42173ad8bc6e8c775bf6e98f54@mail.gmail.com>

On Wed, Nov 20, 2019 at 02:58:40PM -0700, Sumanesh Samanta wrote:
> >Ordinarily I'd prefer a host template attribute as Sumanesh proposed,
> >but I dislike wrapping the examination of that and the queue flag in
> >a macro that makes it not obvious how the behavior is affected.
> 
> I think we can have a host template attribute and discard this check
> altogether, that is not check device_busy for both SDD and HDDs.
> 
> As both you and Hannes mentioned, this change affects high end controllers
> most, and most of them have some storage IO size limit. Also, for HDD
> sequential IO is almost always large and
> touch the controller max IO size limit.

You just see large IO size from driver side or device side, and do you
know why the big size IO is submitted to driver? Block layer's IO merge
contributes a lot for that, and IO merge usually starts to work
after queue becomes busy which can be signaled from !blk_mq_get_dispatch_budget().

That is why we implements .get_budget and .put_budget on SCSI for fixing
sequential IO performance regression.

0df21c86bdbf scsi: implement .get_budget and .put_budget for blk-mq
aeec77629a4a scsi: allow passing in null rq to scsi_prep_state_check()
b347689ffbca blk-mq-sched: improve dispatching from sw queue
de1482974080 blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

Also HDD may be connected to high end HBA too.

> Thus, I am not sure merge matters
> for these kind of controllers.

Yeah, that is why my patches just bypass sdev->device_busy for SSD, and
looks you misunderstood the idea behind the patches, right?



Thanks, 
Ming


  reply	other threads:[~2019-11-21  1:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-20 21:58 [PATCH 4/4] scsi: core: don't limit per-LUN queue depth for SSD Sumanesh Samanta
2019-11-21  1:21 ` Ming Lei [this message]
2019-11-21  1:50   ` Sumanesh Samanta
2019-11-21  2:23     ` Ming Lei
  -- strict thread matches above, loose matches on Subject: below --
2019-11-18 10:31 [PATCH 0/4] scis: don't apply " Ming Lei
2019-11-18 10:31 ` [PATCH 4/4] scsi: core: don't limit " Ming Lei
2019-11-20 10:05   ` Hannes Reinecke
2019-11-20 17:00     ` Ewan D. Milne
2019-11-20 20:56       ` Bart Van Assche
2019-11-20 21:36         ` Ewan D. Milne
2019-11-22  2:25           ` Martin K. Petersen
2019-11-21  1:07         ` Ming Lei
2019-11-22  2:59           ` Martin K. Petersen
2019-11-22  3:24             ` Ming Lei
2019-11-22 16:38             ` Sumanesh Samanta
2019-11-21  0:54       ` Ming Lei
2019-11-21 19:19         ` Ewan D. Milne
2019-11-21  0:53     ` Ming Lei
2019-11-21 15:45       ` Hannes Reinecke
2019-11-22  8:09         ` Ming Lei
2019-11-22 18:14           ` Bart Van Assche
2019-11-22 18:26             ` James Smart
2019-11-22 20:46               ` Bart Van Assche
2019-11-22 22:04                 ` Ming Lei
2019-11-22 22:00             ` Ming Lei
2019-11-25 18:28             ` Ewan D. Milne
2019-11-25 22:14               ` James Smart
2019-11-22  2:18     ` Martin K. Petersen

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=20191121012148.GE24548@ming.t460p \
    --to=ming.lei@redhat.com \
    --cc=axboe@kernel.dk \
    --cc=bart.vanassche@wdc.com \
    --cc=emilne@redhat.com \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=jejb@linux.ibm.com \
    --cc=kashyap.desai@broadcom.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=sathya.prakash@broadcom.com \
    --cc=shivasharan.srikanteshwara@broadcom.com \
    --cc=suganath-prabu.subramani@broadcom.com \
    --cc=sumanesh.samanta@broadcom.com \
    --cc=sumit.saxena@broadcom.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