Linux SCSI subsystem development
 help / color / mirror / Atom feed
* Slow writes to SAS drives on LSI mpt2sas HBA
@ 2012-12-03 19:48 Gregory Haskins
  2012-12-03 22:06 ` Ewan Milne
  0 siblings, 1 reply; 3+ messages in thread
From: Gregory Haskins @ 2012-12-03 19:48 UTC (permalink / raw)
  To: linux-scsi

Hello, 

I am experiencing a significant performance issue in write thoughput with SAS devices connected via an LSI 9207-8e (LSISAS2308 based) HBA.  SATA devices plugged into the same rig appear to be ok.  I first noticed this in kernel v3.0.13, but I confirmed the problem exists even in 3.7.0-rc7. 

I have gathered numerous tables of data and graphs, but have boiled the problem down such that it can be easily reproduced with dd. 

In this example: The "SATA" drive is a 3Gbps 7200rpm 640GB WD model WD6400AAKS-4, mounted to /mnt/sata.  The "SAS" is a 6Gbps 7200rpm 3TB WD model WD3001FYYG-01SL3, mounted to /mnt/sas. 

Under normal operation, the SATA drive is capable of about 5MB/s - 115MB/s, and the SAS drive is about 5MB/s - 165MB/s.  However, what I am seeing is that small block sizes are about 122KB/s, and it peaks out at about 70MB/s.  For example: 

lse2:/home/ghaskins # uname -a 
Linux lse2 3.7.0-rc7-0.27-default+ #1 SMP Mon Dec 3 08:47:39 EST 2012 x86_64 x86_64 x86_64 GNU/Linux 
lse2:/home/ghaskins # dd oflag=direct if=/dev/zero of=/mnt/sas/test.dat bs=1k count=1M 
^C7566+0 records in 
7566+0 records out 
7747584 bytes (7.7 MB) copied, 63.5934 s, 122 kB/s 

lse2:/home/ghaskins # dd oflag=direct if=/dev/zero of=/mnt/sata/test.dat bs=1k count=1M 
^C109381+0 records in 
109381+0 records out 
112006144 bytes (112 MB) copied, 21.7539 s, 5.1 MB/s 

lse2:/home/ghaskins # dd oflag=direct if=/dev/zero of=/mnt/sata/test.dat bs=1M count=1k 
1024+0 records in 
1024+0 records out 
1073741824 bytes (1.1 GB) copied, 9.31733 s, 115 MB/s 
lse2:/home/ghaskins # dd oflag=direct if=/dev/zero of=/mnt/sas/test.dat bs=1M count=1k 
1024+0 records in 
1024+0 records out 
1073741824 bytes (1.1 GB) copied, 14.6696 s, 73.2 MB/s 

Note that this setup has been tested under the LSI driver on Windows7 to rule out any issues with the hardware, and both SATA and SAS drives appear to operate normally.  My current guess is that the linux driver is not queuing commands properly, but this is not confirmed.  Has anyone else seen this? 

-Greg 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-07  1:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03 19:48 Slow writes to SAS drives on LSI mpt2sas HBA Gregory Haskins
2012-12-03 22:06 ` Ewan Milne
2012-12-07  1:43   ` Gregory Haskins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox