All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shivasharan Srikanteshwara <shivasharan.srikanteshwara@broadcom.com>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-scsi@vger.kernel.org, martin.petersen@oracle.com,
	thenzl@redhat.com, jejb@linux.vnet.ibm.com,
	Sumit Saxena <sumit.saxena@broadcom.com>,
	hare@suse.com, Kashyap Desai <kashyap.desai@broadcom.com>
Subject: RE: [PATCH v2 11/15] megaraid_sas: Set device queue_depth same as HBA can_queue value in scsi-mq mode
Date: Tue, 1 Aug 2017 18:53:30 +0530	[thread overview]
Message-ID: <30f27c86aeb5299bb2c990be5ef693ef@mail.gmail.com> (raw)
In-Reply-To: 5bfb3bbc3e6d9b3a5c9afb749c075a40@mail.gmail.com

> -----Original Message-----
> From: Shivasharan Srikanteshwara
> [mailto:shivasharan.srikanteshwara@broadcom.com]
> Sent: Monday, July 24, 2017 4:59 PM
> To: 'Christoph Hellwig'
> Cc: 'linux-scsi@vger.kernel.org'; 'martin.petersen@oracle.com';
> 'thenzl@redhat.com'; 'jejb@linux.vnet.ibm.com'; Sumit Saxena;
> 'hare@suse.com'; Kashyap Desai
> Subject: RE: [PATCH v2 11/15] megaraid_sas: Set device queue_depth same
as
> HBA can_queue value in scsi-mq mode
>
> > -----Original Message-----
> > From: Christoph Hellwig [mailto:hch@lst.de]
> > Sent: Thursday, July 20, 2017 1:18 PM
> > To: Shivasharan Srikanteshwara
> > Cc: Christoph Hellwig; linux-scsi@vger.kernel.org;
> > martin.petersen@oracle.com; thenzl@redhat.com;
> > jejb@linux.vnet.ibm.com; Sumit Saxena; hare@suse.com; Kashyap Desai
> > Subject: Re: [PATCH v2 11/15] megaraid_sas: Set device queue_depth
> > same as HBA can_queue value in scsi-mq mode
> >
> > I still don't understand why you don't want to do the same for the
non-mq
> path.
>
> Hi Christoph,
>
> Sorry for delay in response.
>
> MQ case -
> If there is any block layer requeue happens, we see performance drop. So
we
> avoid re-queue increasing Device QD = HBA QD. Performance drop due to
block
> layer re-queue is more in case of HDD (sequential IO converted into
random IO).
>
> Non-MQ case.
> If we increase Device QD = HBA QD for no-mq case, we see performance
drop
> for certain profiles.
> For example SATA SSD, previous driver in non-mq set Device QD=32. In
this case,
> if we have more outstanding IO per device (more than 32), block layer
attempts
> soft merge and eventually end user experience higher performance due to
block
> layer attempting soft merge.  Same is not correct in MQ case, as IO
scheduler in
> MQ adds overhead if at all there is any throttling or staging due to
device QD.
>
> Below is example of single SATA SSD, Sequential Read, BS=4K, IO depth =
256
>
> MQ enable, Device QD = 32 achieves 137K IOPS MQ enable, Device QD = 916
> (HBA QD) achieves 145K IOPS
>
> MQ disable, Device QD = 32 achieves 237K IOPS MQ disable, Device QD =
916
> (HBA QD) achieves 145K IOPS
>
> Ideally we want to keep same QD settings in non-MQ mode, but trying to
avoid
> as we may face some regression from end user as explained.
>
> Thanks,
> Shivasharan

Hi Christoph,
Can you please let us know your thoughts on this?
We understand that the settings should ideally be uniform across non-mq
and mq cases.
But based on the test results above, for non-mq case we are seeing some
difference in performance for certain IO profiles when compared to earlier
releases after increasing queue depth. Same is not the case when mq is
enabled.

Based on these results, we would like to keep this patch as is for this
phase.
We will run the further tests on this and will update for the next phase.

Thanks,
Shivasharan

  parent reply	other threads:[~2017-08-01 13:23 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-05 12:00 [PATCH v2 00/15] megaraid_sas: Updates for scsi-next Shivasharan S
2017-07-05 12:00 ` [PATCH v2 01/15] megaraid_sas: mismatch of allocated MFI frame size and length exposed in MFI MPT pass through command Shivasharan S
2017-07-10 13:46   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 02/15] megaraid_sas: set minimum value of resetwaittime to be 1 secs Shivasharan S
2017-07-10 13:47   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 03/15] megaraid_sas: Use synchronize_irq in target reset case Shivasharan S
2017-07-10 13:50   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 04/15] megaraid_sas: Call megasas_complete_cmd_dpc_fusion every 1 second while there are pending commands Shivasharan S
2017-07-10 13:51   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 05/15] megaraid_sas: Do not re-fire shutdown DCMD after OCR Shivasharan S
2017-07-10 14:00   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 06/15] megaraid_sas: Fix endianness issues in DCMD handling Shivasharan S
2017-07-10 14:05   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 07/15] megaraid_sas: Check valid aen class range to avoid kernel panic Shivasharan S
2017-07-10 14:08   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 08/15] megaraid_sas: Use SMID for Task abort case only Shivasharan S
2017-07-18 11:06   ` Shivasharan Srikanteshwara
2017-07-18 11:51   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 09/15] megaraid_sas: use vmalloc for crash dump buffers and driver's local RAID map Shivasharan S
2017-07-10 13:44   ` Tomas Henzl
2017-07-11 10:49     ` Shivasharan Srikanteshwara
2017-07-11 13:21       ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 10/15] megaraid_sas: Return pended IOCTLs with cmd_status MFI_STAT_WRONG_STATE in case adapter is dead Shivasharan S
2017-07-11 13:42   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 11/15] megaraid_sas: Set device queue_depth same as HBA can_queue value in scsi-mq mode Shivasharan S
2017-07-11 13:57   ` Tomas Henzl
2017-07-11 13:58   ` Christoph Hellwig
2017-07-11 15:47     ` Kashyap Desai
2017-07-12  8:21       ` Shivasharan Srikanteshwara
2017-07-19  8:42       ` Shivasharan Srikanteshwara
2017-07-20  7:47         ` Christoph Hellwig
2017-07-24 11:29           ` Shivasharan Srikanteshwara
2017-08-01 13:23           ` Shivasharan Srikanteshwara [this message]
2017-07-05 12:00 ` [PATCH v2 12/15] megaraid_sas: replace internal FALSE/TRUE definitions with false/true Shivasharan S
2017-07-11 13:57   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 13/15] megaraid_sas: modified few prints in OCR and IOC INIT path Shivasharan S
2017-07-11 14:07   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 14/15] megaraid_sas: call megasas_dump_frame with correct IO frame size Shivasharan S
2017-07-11 14:08   ` Tomas Henzl
2017-07-05 12:00 ` [PATCH v2 15/15] megaraid_sas: driver version upgrade Shivasharan S
2017-07-11 14:09   ` Tomas Henzl

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=30f27c86aeb5299bb2c990be5ef693ef@mail.gmail.com \
    --to=shivasharan.srikanteshwara@broadcom.com \
    --cc=hare@suse.com \
    --cc=hch@lst.de \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=kashyap.desai@broadcom.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=sumit.saxena@broadcom.com \
    --cc=thenzl@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.