linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: SCSI Disk layer performance
@ 2004-01-22 16:17 Xose Vazquez Perez
  2004-01-29 12:26 ` George Magklaras
  0 siblings, 1 reply; 8+ messages in thread
From: Xose Vazquez Perez @ 2004-01-22 16:17 UTC (permalink / raw)
  To: linux-scsi

Christoph Hellwig wrote:

> What kernel tree do you use?  If you're looking for decent scsi
> performance use linux 2.6 or the SuSE/RH vendor trees.  Stock Linux 2.4
                                           ^^^^^^
_Enterprise_ kernels, RHEL or SLES.
Fedora Core kernel is, more or less, a plain kernel.org.

I'm runnig RHEL 2.4.21-9.EL kernel and it's _much better_ than any 2.4.xx
kernel.org. I could call it 2.5 because it's a mix of 2.4 and 2.6 ;-)

-- 
Software is like sex, it's better when it's bug free.


^ permalink raw reply	[flat|nested] 8+ messages in thread
* SCSI Disk layer performance
@ 2004-01-21 21:31 Chris Worley
  2004-01-22 13:57 ` Christoph Hellwig
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Worley @ 2004-01-21 21:31 UTC (permalink / raw)
  To: linux-scsi

My FC array seems to be faster than Linux can handle.

Even though I'm using FC-2 cards, Linux seems to put
an artificial limit at FC-1 speeds.  This is true in two cases:

        1) dd to the raw device (actually, the limit is at about
        120MB/s).
        2) dd over the file system, even reading/writing multiple files
        simultaneously (about 90MB/s). 
        
Using sgp_dd, I can easily get >190MB/s, but neither sg_dd or dd do as
well (so, it's not the qla2300 module... it's something above).

Is there any method that might assure more parallel I/O in the SCSI
layer?  Is 2.6 the answer?

I've also seen some differences between 2.4 kernels.  2.4.21 gets
120MB/s via "dd" to the raw device, until the sg module is loaded, then
it drops down to less than 100MB/s, and there are frequent memory
warnings.  2.4.23 and .24 don't get the warnings, but irrespective of
the sg module being loaded, get the slower speed on the raw device.  I'm
guessing that'll translate to even slower speeds on the file system, but
I've yet to test that.

Furthermore, my reads seem to be especially slow.  The SAN maker thinks
that this might be due to the I/O scheduling in the SCSI Disk layer. 
Specifically, it's easy to see from the SAN perspective (using a
statistics utility that shows read and write scsi command lengths) that
reads are broken into small chunks by the SCSI Disk layer.  In watching
read lengths from the SAN, using "sg_dd", you can exactly specify read
length, and no I/O's get broken up into chunks smaller than the bpt*512
(what is requested on the sg_dd command line is what the SAN sees).  In
"dd", you can specify a read block size on the command line, but the SAN
shows that Linux is breaking that up into much smaller chunks.

Is there any way to force Linux to use large chunks?

Thanks,

Chris 
-- 
Chris Worley <chrisw@lnxi.com>
Linux Networx


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

end of thread, other threads:[~2004-02-02 18:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-22 16:17 SCSI Disk layer performance Xose Vazquez Perez
2004-01-29 12:26 ` George Magklaras
2004-01-29 15:55   ` Patrick Mansfield
  -- strict thread matches above, loose matches on Subject: below --
2004-01-21 21:31 Chris Worley
2004-01-22 13:57 ` Christoph Hellwig
2004-01-23 11:02   ` Fabien Salvi
2004-01-29 18:59     ` Christoph Hellwig
2004-02-02 18:23       ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).