summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas.c
diff options
context:
space:
mode:
authorTony Battersby <tonyb@cybernetics.com>2007-11-09 19:04:35 +0100
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-12 01:22:42 +0100
commit1e6c38cec08f88b0df88a34e80f15492cace74e9 (patch)
tree9d477b95a05f9a4552da19429da0265878d7deba /drivers/scsi/megaraid/megaraid_sas.c
parent[SCSI] libsas: Fix various sparse complaints (diff)
downloadlinux-1e6c38cec08f88b0df88a34e80f15492cace74e9.tar.xz
linux-1e6c38cec08f88b0df88a34e80f15492cace74e9.zip
[SCSI] 3w-9xxx: fix abysmal write performance on some motherboards
The 3ware 9500S-8 SATA RAID controller exhibits terrible write performance when PCI memory-write-and-invalidate is disabled. This is easy to demonstrate by replacing pci_try_set_mwi() in the patch below with pci_clear_mwi(). My benchmarks show the following: MWI disabled: 15 MB/s write, 330 MB/s read MWI enabled: 240 MB/s write, 330 MB/s read Most motherboards will enable MWI without the driver having to set it explicitly, so most people probably wouldn't encounter this problem. For the few motherboards that don't enable it, this patch could give a 16x performance improvement for writing. This issue does not seem to affect the 9550SX controller, but the patch doesn't hurt it either. I haven't tested any of the other 3ware controllers. Signed-off-by: Tony Battersby <tonyb@cybernetics.com> Acked-by: adam radford <aradford@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas.c')
0 files changed, 0 insertions, 0 deletions