]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: storvsc: Reduce default ring buffer size to 128 Kbytes
authorMichael Kelley <mikelley@microsoft.com>
Mon, 1 Apr 2019 21:42:06 +0000 (21:42 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:31:03 +0000 (23:31 -0400)
commitcda891ff94e1f79f2cfa9a1847c03b987715c49e
tree6be9aa5c1961ebb8001aacd9fb4ba72772fa3bc2
parent9f03f3ebeb0742a7d5d01bc824ae7752d66a938f
scsi: storvsc: Reduce default ring buffer size to 128 Kbytes

Reduce the default VMbus channel ring buffer size for storvsc SCSI devices
from 1 Mbyte to 128 Kbytes. Measurements show that ring buffer sizes above
128 Kbytes do not increase performance even at very high IOPS rates, so
don't waste the memory. Also remove the dependence on PAGE_SIZE, since the
ring buffer size should not change on architectures where PAGE_SIZE is not
4 Kbytes.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c