提交 5f32f8b7 编写于 作者: X Xingui Yang 提交者: Laibin Qiu

scsi: hisi_sas: enable use_clustering

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5B468
CVE: NA

------------------------------------------------

Enable "clustering", that is merging of segments so that they might span
more than a single page, and optimized the issue that 520 KB of service
delivery is split.

fio test with --filename=/dev/sdb --bs=520k --iodepth=32

before:
[root@localhost ~]# cat /sys/block/sdb/queue/max_segment_size
4096

[root@localhost ~]#iostat -x
Device ... r_await rareq-sz ... aqu-sz  %util
sdb    ... 29.78   259.89   ... 5.87    9.92

after:
[root@localhost ~]# cat /sys/block/sdb/queue/max_segment_size
65536

[root@localhost ~]#iostat -x
Device ... r_await rareq-sz ... aqu-sz  %util
sdb    ... 29.80   516.03   ... 1.34    4.50
Signed-off-by: NXingui Yang <yangxingui@huawei.com>
Reviewed-by: Nkang fenglong <kangfenglong@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NLaibin Qiu <qiulaibin@huawei.com>
上级 510ebd8e
...@@ -1783,6 +1783,7 @@ static struct scsi_host_template sht_v1_hw = { ...@@ -1783,6 +1783,7 @@ static struct scsi_host_template sht_v1_hw = {
.this_id = -1, .this_id = -1,
.sg_tablesize = HISI_SAS_SGE_PAGE_CNT, .sg_tablesize = HISI_SAS_SGE_PAGE_CNT,
.max_sectors = SCSI_DEFAULT_MAX_SECTORS, .max_sectors = SCSI_DEFAULT_MAX_SECTORS,
.use_clustering = ENABLE_CLUSTERING,
.eh_device_reset_handler = sas_eh_device_reset_handler, .eh_device_reset_handler = sas_eh_device_reset_handler,
.eh_target_reset_handler = sas_eh_target_reset_handler, .eh_target_reset_handler = sas_eh_target_reset_handler,
.slave_alloc = sas_slave_alloc, .slave_alloc = sas_slave_alloc,
......
...@@ -3600,6 +3600,7 @@ static struct scsi_host_template sht_v2_hw = { ...@@ -3600,6 +3600,7 @@ static struct scsi_host_template sht_v2_hw = {
.this_id = -1, .this_id = -1,
.sg_tablesize = HISI_SAS_SGE_PAGE_CNT, .sg_tablesize = HISI_SAS_SGE_PAGE_CNT,
.max_sectors = SCSI_DEFAULT_MAX_SECTORS, .max_sectors = SCSI_DEFAULT_MAX_SECTORS,
.use_clustering = ENABLE_CLUSTERING,
.eh_device_reset_handler = sas_eh_device_reset_handler, .eh_device_reset_handler = sas_eh_device_reset_handler,
.eh_target_reset_handler = sas_eh_target_reset_handler, .eh_target_reset_handler = sas_eh_target_reset_handler,
.slave_alloc = sas_slave_alloc, .slave_alloc = sas_slave_alloc,
......
...@@ -3288,6 +3288,7 @@ static struct scsi_host_template sht_v3_hw = { ...@@ -3288,6 +3288,7 @@ static struct scsi_host_template sht_v3_hw = {
.sg_tablesize = HISI_SAS_SGE_PAGE_CNT, .sg_tablesize = HISI_SAS_SGE_PAGE_CNT,
.sg_prot_tablesize = HISI_SAS_SGE_PAGE_CNT, .sg_prot_tablesize = HISI_SAS_SGE_PAGE_CNT,
.max_sectors = SCSI_DEFAULT_MAX_SECTORS, .max_sectors = SCSI_DEFAULT_MAX_SECTORS,
.use_clustering = ENABLE_CLUSTERING,
.eh_device_reset_handler = sas_eh_device_reset_handler, .eh_device_reset_handler = sas_eh_device_reset_handler,
.eh_target_reset_handler = sas_eh_target_reset_handler, .eh_target_reset_handler = sas_eh_target_reset_handler,
.slave_alloc = sas_slave_alloc, .slave_alloc = sas_slave_alloc,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册