All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shivasharan Srikanteshwara <shivasharan.srikanteshwara@broadcom.com>
To: Kashyap Desai <kashyap.desai@broadcom.com>,
	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
Subject: RE: [PATCH v2 11/15] megaraid_sas: Set device queue_depth same as HBA can_queue value in scsi-mq mode
Date: Wed, 12 Jul 2017 13:51:05 +0530	[thread overview]
Message-ID: <13ff9692d698c5b05f32310259506735@mail.gmail.com> (raw)
In-Reply-To: <3adb43de25a7531af4d083cd1af8c5b5@mail.gmail.com>

> -----Original Message-----
> From: Kashyap Desai [mailto:kashyap.desai@broadcom.com]
> Sent: Tuesday, July 11, 2017 9:18 PM
> To: Christoph Hellwig; Shivasharan Srikanteshwara
> Cc: linux-scsi@vger.kernel.org; martin.petersen@oracle.com;
> thenzl@redhat.com; jejb@linux.vnet.ibm.com; Sumit Saxena; hare@suse.com
> 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: Tuesday, July 11, 2017 7:28 PM
> > To: Shivasharan S
> > Cc: linux-scsi@vger.kernel.org; martin.petersen@oracle.com;
> > thenzl@redhat.com; jejb@linux.vnet.ibm.com;
> > kashyap.desai@broadcom.com; sumit.saxena@broadcom.com;
> hare@suse.com;
> > hch@lst.de
> > Subject: Re: [PATCH v2 11/15] megaraid_sas: Set device queue_depth
> > same
> as
> > HBA can_queue value in scsi-mq mode
> >
> > On Wed, Jul 05, 2017 at 05:00:25AM -0700, Shivasharan S wrote:
> > > Currently driver sets default queue_depth for VDs at 256 and JBODs
> > > based on interface type, ie., for SAS JBOD QD will be 64, for SATA
> JBOD QD
> > will be 32.
> > > During performance runs with scsi-mq enabled, we are seeing better
> > > results by setting QD same as HBA queue_depth.
> >
> > Please no scsi-mq specifics.  just do this unconditionally.
>
> Chris -  Intent for mq specific check is mainly because of sequential work
> load
> for HDD is having penalty due to mq scheduler issue.
> We did this exercise prior to mq-deadline support.
>
> Making generic change for non-mq and mq was good, but we may see some
> user may not like to see regression.
> E.a In case of, QD = 32 for SATA PD file system creation may be faster
> compare
> to large QD. There may be a soft merger at block layer due to queue depth
> throttling. Eventually, FS creation goes fast due to IO merges, but same
> will not
> be true if we change queue depth logic (means, increase device queue depth
> to
> HBA QD.)
>
> We have choice to completely remove this patch and ask users to do sysfs
> settings in case of scsi-mq performance issue for HDD sequential work
> load.
> Having this patch, we want to provide better QD settings as default from
> driver.
>
>
> Thanks, Kashyap

Hi Christoph,
As Kashyap mentioned, the performance issues seen were specific to scsi-mq
enabled case when running sequential workloads with HDDs.
Making this generic might result in regressions in some scenarios for
non-mq.
That was the idea behind making the change specific to scsi-mq only.

Let us know if you are ok with having this as is or we could remove
this patch completely and have users manually tune queue depth settings if
they
are seeing performance issues with scsi-mq enabled.

Thanks,
Shivasharan

  reply	other threads:[~2017-07-12  8:21 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 [this message]
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
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=13ff9692d698c5b05f32310259506735@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.