diff mbox

[RFC] scsi: switch to scsi-mq by default

Message ID 20180703065413.6098-1-jthumshirn@suse.de (mailing list archive)
State Superseded
Headers show

Commit Message

Johannes Thumshirn July 3, 2018, 6:54 a.m. UTC
It has been more than one year since we tried to change the default
from legacy to multi queue in SCSI. Back then we had to retract the
change because of performance issues with rotating disks.

In the meantime there have been a substantial amount of performance
improvements, thus we can re-enable scsi-mq without a significant
performance penalty.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
---
 drivers/scsi/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Hannes Reinecke July 3, 2018, 6:56 a.m. UTC | #1
On 07/03/2018 08:54 AM, Johannes Thumshirn wrote:
> It has been more than one year since we tried to change the default
> from legacy to multi queue in SCSI. Back then we had to retract the
> change because of performance issues with rotating disks.
> 
> In the meantime there have been a substantial amount of performance
> improvements, thus we can re-enable scsi-mq without a significant
> performance penalty.
> 
> Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
> ---
>  drivers/scsi/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
> index 35c909bbf8ba..bd115bab162e 100644
> --- a/drivers/scsi/Kconfig
> +++ b/drivers/scsi/Kconfig
> @@ -49,6 +49,7 @@ config SCSI_NETLINK
>  
>  config SCSI_MQ_DEFAULT
>  	bool "SCSI: use blk-mq I/O path by default"
> +	default y
>  	depends on SCSI
>  	---help---
>  	  This option enables the new blk-mq based I/O path for SCSI
> 

Yeah, let's try it.

Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
Ming Lei July 3, 2018, 6:59 a.m. UTC | #2
On Tue, Jul 3, 2018 at 2:54 PM, Johannes Thumshirn <jthumshirn@suse.de> wrote:
> It has been more than one year since we tried to change the default
> from legacy to multi queue in SCSI. Back then we had to retract the
> change because of performance issues with rotating disks.
>
> In the meantime there have been a substantial amount of performance
> improvements, thus we can re-enable scsi-mq without a significant
> performance penalty.
>
> Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
> ---
>  drivers/scsi/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
> index 35c909bbf8ba..bd115bab162e 100644
> --- a/drivers/scsi/Kconfig
> +++ b/drivers/scsi/Kconfig
> @@ -49,6 +49,7 @@ config SCSI_NETLINK
>
>  config SCSI_MQ_DEFAULT
>         bool "SCSI: use blk-mq I/O path by default"
> +       default y
>         depends on SCSI
>         ---help---
>           This option enables the new blk-mq based I/O path for SCSI
> --
> 2.16.4
>

Reviewed-by: Ming Lei <ming.lei@redhat.com>


thanks,
Ming Lei
Bart Van Assche July 3, 2018, 11:21 p.m. UTC | #3
On Tue, 2018-07-03 at 08:54 +0200, Johannes Thumshirn wrote:
> It has been more than one year since we tried to change the default

> from legacy to multi queue in SCSI. Back then we had to retract the

> change because of performance issues with rotating disks.

> 

> In the meantime there have been a substantial amount of performance

> improvements, thus we can re-enable scsi-mq without a significant

> performance penalty.


Hello Johannes,

Please include references to commits cbe7dfa26eee ("Revert "scsi:
default to scsi-mq"") and 5c279bd9e406 ("scsi: default to scsi-mq").
I think it's a good idea to mention that suspend/resume now works
with scsi-mq.

Bart.
John Garry July 4, 2018, 8:18 a.m. UTC | #4
On 04/07/2018 00:21, Bart Van Assche wrote:
> On Tue, 2018-07-03 at 08:54 +0200, Johannes Thumshirn wrote:
>> It has been more than one year since we tried to change the default
>> from legacy to multi queue in SCSI. Back then we had to retract the
>> change because of performance issues with rotating disks.
>>
>> In the meantime there have been a substantial amount of performance
>> improvements, thus we can re-enable scsi-mq without a significant
>> performance penalty.
>
> Hello Johannes,
>
> Please include references to commits cbe7dfa26eee ("Revert "scsi:
> default to scsi-mq"") and 5c279bd9e406 ("scsi: default to scsi-mq").
> I think it's a good idea to mention that suspend/resume now works
> with scsi-mq.
>
> Bart.

We were seeing performance drops previously for hisi_sas when originally 
enabled by default, but results on 4.18 seem almost identical with and 
without MQ default.

FWIW,

Acked-by: John Garry <john.garry@huawei.com>

>
>
>
>
>
>
>
>
Johannes Thumshirn July 4, 2018, 8:48 a.m. UTC | #5
On Wed, Jul 04, 2018 at 09:18:23AM +0100, John Garry wrote:
> We were seeing performance drops previously for hisi_sas when originally
> enabled by default, but results on 4.18 seem almost identical with and
> without MQ default.
> 
> FWIW,
> 
> Acked-by: John Garry <john.garry@huawei.com>

Thanks for letting me know.
Johannes Thumshirn July 4, 2018, 8:49 a.m. UTC | #6
On Tue, Jul 03, 2018 at 11:21:18PM +0000, Bart Van Assche wrote:
> Please include references to commits cbe7dfa26eee ("Revert "scsi:
> default to scsi-mq"") and 5c279bd9e406 ("scsi: default to scsi-mq").
> I think it's a good idea to mention that suspend/resume now works
> with scsi-mq.

That's actually a good idea. Will be sending out a non-rfc version
with these changelog changes and Reviews/Acks applied.
diff mbox

Patch

diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
index 35c909bbf8ba..bd115bab162e 100644
--- a/drivers/scsi/Kconfig
+++ b/drivers/scsi/Kconfig
@@ -49,6 +49,7 @@  config SCSI_NETLINK
 
 config SCSI_MQ_DEFAULT
 	bool "SCSI: use blk-mq I/O path by default"
+	default y
 	depends on SCSI
 	---help---
 	  This option enables the new blk-mq based I/O path for SCSI