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: Ewan Milne <emilne@redhat.com>,
	axboe@kernel.dk, bart.vanassche@wdc.com, hare@suse.de,
	hch@lst.de, jejb@linux.ibm.com,
	Kashyap Desai <kashyap.desai@broadcom.com>,
	linux-block@vger.kernel.org, linux-scsi@vger.kernel.org,
	martin.petersen@oracle.com,
	Sathya Prakash <sathya.prakash@broadcom.com>,
	Shivasharan Srikanteshwara 
	<shivasharan.srikanteshwara@broadcom.com>,
	Suganath Prabu Subramani  <suganath-prabu.subramani@broadcom.com>,
	Sumit Saxena <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 10:23:53 +0800	[thread overview]
Message-ID: <20191121022353.GH24548@ming.t460p> (raw)
In-Reply-To: <CADbZ7Fqcx4rWLB7MMVj+J+9n0bMGENj-WZZijiOHN0WrL6OV0A@mail.gmail.com>

On Wed, Nov 20, 2019 at 06:50:02PM -0700, Sumanesh Samanta wrote:
> >>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
> 
> May be it contribute to some extent, but I do not think streaming
> applications have any incentive/reason to give small IO. An
> application like Netflix need to read as much data as soon as possible
> and serve to customers, they have no reason to read in small chunks.
> In fact, they read in huge chunks.
> That is why sequential IO is normally large chunks and random IO (
> which is more DB kind of operations ) is small IO.
> Only exception I know of is database REDO logs, that are small
> sequential IO, because there the DB is logging small transactions --
> but they go to SSDs.

We can't cover all typical workloads here, and I can write a application
easily to generate such sequential IO. Even though it is an unusual
workloads or application, someone still may report it as one regression,
so we can't risk to bypass .device_busy for HDD.

> 
> >>Yeah, that is why my patches just bypass sdev->device_busy for SSD, and
> >>looks you misunderstood the idea behind the patches, right?
> 
> No, I got the idea, I am just saying most high end controllers have an
> IO size limit  , and even if the block layer merges IO, it does not
> help, since they have to be broken to the max size the controller
> supports. Also, most high end controllers have their own merging
> logic, and hence not too much dependent on upper layer merging for
> them

If the controller's max size is exposed to block layer, block will
make a proper size IO for controller. I believe all sane drivers do
that.

Anyway using per-LUN NONROT flag is flexible and reasonable, which
won't need driver's change. 


Thanks, 
Ming


  reply	other threads:[~2019-11-21  2:30 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
2019-11-21  1:50   ` Sumanesh Samanta
2019-11-21  2:23     ` Ming Lei [this message]
  -- 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=20191121022353.GH24548@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