Device or HBA level QD throttling creates randomness in sequetial workload
Subsystems (2)
Hi -
I found below conversation and it is on the same line as I wanted some input from mailing list.
http://marc.info/?l=linux-kernel&m=147569860526197&w=2
I can do testing on any WIP item as Omar mentioned in above discussion.
https://github.com/osandov/linux/tree/blk-mq-iosched
Is there any workaround/alternative in latest upstream kernel, if user wants to see limited penalty for Sequential Work load on HDD ?
` Kashyap
Quoted 5 lines
-----Original Message-----
From: Kashyap Desai [mailto:[email protected]]
Sent: Thursday, October 20, 2016 3:39 PM
To: [email protected]
Subject: Device or HBA level QD throttling creates randomness in
sequetial
Quoted 9 lines
workload
[ Apologize, if you find more than one instance of my email. Web based email client has some issue, so now trying git send mail.]
Hi,
I am doing some performance tuning in MR driver to understand how sdev queue depth and hba queue depth play role in IO submission from above
layer.
Quoted 1 line
I have 24 JBOD connected to MR 12GB controller and I can see performance
for
Quoted 6 lines
4K Sequential work load as below.
HBA QD for MR controller is 4065 and Per device QD is set to 32
queue depth from <fio> 256 reports 300K IOPS queue depth from <fio> 128 reports 330K IOPS queue depth from <fio> 64 reports 360K IOPS queue
depth
Quoted 3 lines
from <fio> 32 reports 510K IOPS
In MR driver I added debug print and confirm that more IO come to driver
as
Quoted 3 lines
random IO whenever I have <fio> queue depth more than 32.
I have debug using scsi logging level and blktrace as well. Below is
snippet of
Quoted 1 line
logs using scsi logging level. In summary, if SML do flow control of IO
due to
Quoted 5 lines
Device QD or HBA QD, IO coming to LLD is more random pattern.
I see IO coming to driver is not sequential.
[79546.912041] sd 18:2:21:0: [sdy] tag#854 CDB: Write(10) 2a 00 00 03 c0
3b 00
Quoted 1 line
00 01 00 [79546.912049] sd 18:2:21:0: [sdy] tag#855 CDB: Write(10) 2a 00
00 03
Quoted 1 line
c0 3c 00 00 01 00 [79546.912053] sd 18:2:21:0: [sdy] tag#886 CDB:
Write(10) 2a
Quoted 6 lines
00 00 03 c0 5b 00 00 01 00
<KD> After LBA "00 03 c0 3c" next command is with LBA "00 03 c0 5b". Two Sequence are overlapped due to sdev QD throttling.
[79546.912056] sd 18:2:21:0: [sdy] tag#887 CDB: Write(10) 2a 00 00 03 c0
5c 00
Quoted 1 line
00 01 00 [79546.912250] sd 18:2:21:0: [sdy] tag#856 CDB: Write(10) 2a 00
00 03
Quoted 1 line
c0 3d 00 00 01 00 [79546.912257] sd 18:2:21:0: [sdy] tag#888 CDB:
Write(10) 2a
Quoted 1 line
00 00 03 c0 5d 00 00 01 00 [79546.912259] sd 18:2:21:0: [sdy] tag#857
CDB:
Quoted 1 line
Write(10) 2a 00 00 03 c0 3e 00 00 01 00 [79546.912268] sd 18:2:21:0:
[sdy]
Quoted 3 lines
tag#858 CDB: Write(10) 2a 00 00 03 c0 3f 00 00 01 00
If
scsi_request_fn()breaks due to unavailability of device queue (due
to below
Quoted 5 lines
check), will there be any side defect as I observe ?
if (!scsi_dev_queue_ready(q, sdev)) break;If I reduce HBA QD and make sure IO from above layer is throttled due to
HBA
Quoted 4 lines
QD, there is a same impact.
MR driver use host wide shared tag map.Can someone help me if this can be tunable in LLD providing additional
settings
Quoted 1 line
or it is expected behavior ? Problem I am facing is, I am not able to
figure out
Quoted 3 lines
optimal device queue depth for different configuration and work load.
Thanks, Kashyap
Quoted 9 lines · Kashyap Desai
Hi -
I found below conversation and it is on the same line as I wanted some input from mailing list.
http://marc.info/?l=linux-kernel&m=147569860526197&w=2
I can do testing on any WIP item as Omar mentioned in above discussion.
https://github.com/osandov/linux/tree/blk-mq-iosched
Are you using blk-mq for this disk? If not, then the work there won't affect you.
Quoted 85 lines
Is there any workaround/alternative in latest upstream kernel, if user wants to see limited penalty for Sequential Work load on HDD ?
` Kashyap
Quoted 5 lines
-----Original Message-----
From: Kashyap Desai [mailto:[email protected]]
Sent: Thursday, October 20, 2016 3:39 PM
To: [email protected]
Subject: Device or HBA level QD throttling creates randomness insequetial
Quoted 9 lines
workload
[ Apologize, if you find more than one instance of my email. Web based email client has some issue, so now trying git send mail.]
Hi,
I am doing some performance tuning in MR driver to understand how sdev queue depth and hba queue depth play role in IO submission from above
layer.
Quoted 1 line
I have 24 JBOD connected to MR 12GB controller and I can see performance
for
Quoted 6 lines
4K Sequential work load as below.
HBA QD for MR controller is 4065 and Per device QD is set to 32
queue depth from <fio> 256 reports 300K IOPS queue depth from <fio> 128 reports 330K IOPS queue depth from <fio> 64 reports 360K IOPS queue
depth
Quoted 3 lines
from <fio> 32 reports 510K IOPS
In MR driver I added debug print and confirm that more IO come to driver
as
Quoted 3 lines
random IO whenever I have <fio> queue depth more than 32.
I have debug using scsi logging level and blktrace as well. Below is
snippet of
Quoted 1 line
logs using scsi logging level. In summary, if SML do flow control of IO
due to
Quoted 5 lines
Device QD or HBA QD, IO coming to LLD is more random pattern.
I see IO coming to driver is not sequential.
[79546.912041] sd 18:2:21:0: [sdy] tag#854 CDB: Write(10) 2a 00 00 03 c03b 00
Quoted 1 line
00 01 00 [79546.912049] sd 18:2:21:0: [sdy] tag#855 CDB: Write(10) 2a 00
00 03
Quoted 1 line
c0 3c 00 00 01 00 [79546.912053] sd 18:2:21:0: [sdy] tag#886 CDB:
Write(10) 2a
Quoted 6 lines
00 00 03 c0 5b 00 00 01 00
<KD> After LBA "00 03 c0 3c" next command is with LBA "00 03 c0 5b". Two Sequence are overlapped due to sdev QD throttling.
[79546.912056] sd 18:2:21:0: [sdy] tag#887 CDB: Write(10) 2a 00 00 03 c05c 00
Quoted 1 line
00 01 00 [79546.912250] sd 18:2:21:0: [sdy] tag#856 CDB: Write(10) 2a 00
00 03
Quoted 1 line
c0 3d 00 00 01 00 [79546.912257] sd 18:2:21:0: [sdy] tag#888 CDB:
Write(10) 2a
Quoted 1 line
00 00 03 c0 5d 00 00 01 00 [79546.912259] sd 18:2:21:0: [sdy] tag#857
CDB:
Quoted 1 line
Write(10) 2a 00 00 03 c0 3e 00 00 01 00 [79546.912268] sd 18:2:21:0:
[sdy]
Quoted 3 lines
tag#858 CDB: Write(10) 2a 00 00 03 c0 3f 00 00 01 00
If
scsi_request_fn()breaks due to unavailability of device queue (dueto below
Quoted 5 lines
check), will there be any side defect as I observe ?
if (!scsi_dev_queue_ready(q, sdev)) break;If I reduce HBA QD and make sure IO from above layer is throttled due to
HBA
Quoted 4 lines
QD, there is a same impact.
MR driver use host wide shared tag map.Can someone help me if this can be tunable in LLD providing additional
settings
Quoted 1 line
or it is expected behavior ? Problem I am facing is, I am not able to
figure out
Quoted 3 lines
optimal device queue depth for different configuration and work load.
Thanks, Kashyap
Signature · 1 line
Omar
Quoted 7 lines · Omar Sandoval
Quoted 5 lines · Kashyap Desai
Hi -
I found below conversation and it is on the same line as I wanted some input from mailing list.
Quoted 7 lines
Quoted 4 lines
http://marc.info/?l=linux-kernel&m=147569860526197&w=2
I can do testing on any WIP item as Omar mentioned in above discussion.
https://github.com/osandov/linux/tree/blk-mq-ioschedAre you using blk-mq for this disk? If not, then the work there won't affect you.
Yes I am using blk-mq.
Quoted 17 lines
Quoted 17 lines
Is there any workaround/alternative in latest upstream kernel, if user wants to see limited penalty for Sequential Work load on HDD ?
` Kashyap
Quoted 5 lines
-----Original Message-----
From: Kashyap Desai [mailto:[email protected]]
Sent: Thursday, October 20, 2016 3:39 PM
To: [email protected]
Subject: Device or HBA level QD throttling creates randomness insequetial
Quoted 5 lines
workload
[ Apologize, if you find more than one instance of my email. Web based email client has some issue, so now trying git send mail.]
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Hi,
I am doing some performance tuning in MR driver to understand how sdev queue depth and hba queue depth play role in IO submission from above
layer.
Quoted 1 line
I have 24 JBOD connected to MR 12GB controller and I can see
performance
Quoted 6 lines
Quoted 6 lines
for
Quoted 5 lines
4K Sequential work load as below.
HBA QD for MR controller is 4065 and Per device QD is set to 32
queue depth from <fio> 256 reports 300K IOPS queue depth from <fio>
128
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
reports 330K IOPS queue depth from <fio> 64 reports 360K IOPS queue
depth
Quoted 3 lines
from <fio> 32 reports 510K IOPS
In MR driver I added debug print and confirm that more IO come to
driver
Quoted 6 lines
Quoted 6 lines
as
Quoted 3 lines
random IO whenever I have <fio> queue depth more than 32.
I have debug using scsi logging level and blktrace as well. Below is
snippet of
Quoted 1 line
logs using scsi logging level. In summary, if SML do flow control of
IO
Quoted 6 lines
Quoted 6 lines
due to
Quoted 5 lines
Device QD or HBA QD, IO coming to LLD is more random pattern.
I see IO coming to driver is not sequential.
[79546.912041] sd 18:2:21:0: [sdy] tag#854 CDB: Write(10) 2a 00 00 03
c0
Quoted 2 lines
Quoted 2 lines
3b 00
Quoted 1 line
00 01 00 [79546.912049] sd 18:2:21:0: [sdy] tag#855 CDB: Write(10) 2a
00
Quoted 9 lines
Quoted 9 lines
00 03
Quoted 1 line
c0 3c 00 00 01 00 [79546.912053] sd 18:2:21:0: [sdy] tag#886 CDB:
Write(10) 2a
Quoted 6 lines
00 00 03 c0 5b 00 00 01 00
<KD> After LBA "00 03 c0 3c" next command is with LBA "00 03 c0 5b". Two Sequence are overlapped due to sdev QD throttling.
[79546.912056] sd 18:2:21:0: [sdy] tag#887 CDB: Write(10) 2a 00 00 03
c0
Quoted 2 lines
Quoted 2 lines
5c 00
Quoted 1 line
00 01 00 [79546.912250] sd 18:2:21:0: [sdy] tag#856 CDB: Write(10) 2a
00
Quoted 10 lines
Quoted 10 lines
00 03
Quoted 1 line
c0 3d 00 00 01 00 [79546.912257] sd 18:2:21:0: [sdy] tag#888 CDB:
Write(10) 2a
Quoted 1 line
00 00 03 c0 5d 00 00 01 00 [79546.912259] sd 18:2:21:0: [sdy] tag#857
CDB:
Quoted 1 line
Write(10) 2a 00 00 03 c0 3e 00 00 01 00 [79546.912268] sd 18:2:21:0:
[sdy]
Quoted 3 lines
tag#858 CDB: Write(10) 2a 00 00 03 c0 3f 00 00 01 00
If
scsi_request_fn()breaks due to unavailability of device queue
(due
Quoted 6 lines
Quoted 6 lines
to below
Quoted 5 lines
check), will there be any side defect as I observe ?
if (!scsi_dev_queue_ready(q, sdev)) break;If I reduce HBA QD and make sure IO from above layer is throttled due
to
Quoted 14 lines
Quoted 11 lines
HBA
Quoted 4 lines
QD, there is a same impact.
MR driver use host wide shared tag map.Can someone help me if this can be tunable in LLD providing additional
settings
Quoted 1 line
or it is expected behavior ? Problem I am facing is, I am not able to
figure out
Quoted 3 lines
optimal device queue depth for different configuration and work load.
Thanks, Kashyap
--
Omar
Quoted 10 lines · Kashyap Desai
Quoted 8 lines
Hi -
I found below conversation and it is on the same line as I wanted some input from mailing list.
http://marc.info/?l=linux-kernel&m=147569860526197&w=2
I can do testing on any WIP item as Omar mentioned in above
discussion.
Quoted 1 line
Quoted 1 line
I tried build kernel using this repo, but looks like it is not allowed to reboot due to some changes in <block> layer.
Quoted 2 lines
Are you using blk-mq for this disk? If not, then the work there won't
affect you.
YES. I am using blk-mq for my test. I also confirm if use_blk_mq is disable, Sequential work load issue is not seen and <cfq> scheduling works well.
Quoted 6 lines
Quoted 6 lines
Is there any workaround/alternative in latest upstream kernel, if user wants to see limited penalty for Sequential Work load on HDD ?
` Kashyap
Quoted 7 lines · Kashyap Desai
Quoted 7 lines · Kashyap Desai
Quoted 5 lines
Hi -
I found below conversation and it is on the same line as I wanted some input from mailing list.
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
http://marc.info/?l=linux-kernel&m=147569860526197&w=2
I can do testing on any WIP item as Omar mentioned in above
discussion.
Quoted 1 line
Quoted 1 line
I tried build kernel using this repo, but looks like it is not allowed to reboot due to some changes in <block> layer.
Did you build the most up-to-date version of that branch? I've been force pushing to it, so the commit id that you built would be useful. What boot failure are you seeing?
Quoted 7 lines
Quoted 2 lines
Are you using blk-mq for this disk? If not, then the work there won't
affect you.
YES. I am using blk-mq for my test. I also confirm if
use_blk_mqis disable, Sequential work load issue is not seen and <cfq> scheduling works well.
Ah, okay, perfect. Can you send the fio job file you're using? Hard to tell exactly what's going on without the details. A sequential workload with just one submitter is about as easy as it gets, so this _should_ be behaving nicely.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Is there any workaround/alternative in latest upstream kernel, if user wants to see limited penalty for Sequential Work load on HDD ?
` Kashyap
P.S., your emails are being marked as spam by Gmail. Actually, Gmail seems to mark just about everything I get from Broadcom as spam due to failed DMARC.
Signature · 1 line
Omar