Re: Warning - running *really* short on DMA buffers while doing file

James Bottomley (James.Bottomley@steeleye.com)
Fri, 27 Sep 2002 10:26:03 -0400


gibbs@scsiguy.com said:
> Now consider the read case. I maintain that any reasonable drive will
> *always* outperform the OS's transaction reordering/elevator
> algorithms for seek reduction. This is the whole point of having high
> tag depths. In all I/O studies that have been performed todate, reads
> far outnumber writes *unless* you are creating an ISO image on your
> disk. In my opinion it is much more important to optimize for the
> more common, concurrent read case, than it is for the sequential write
> case with intermittent reads. Of course, you can fix the latter case
> too without any change to the driver's queue depth as outlined above.
> Why not have your cake and eat it too?

But it's not just the drive's elevator that we depend on. You have to
transfer the data to the drive as well. The worst case is SCSI-2 where all
phases of the transfer except data are narrow and asynchronous. We get
abysmal performance in SCSI-2 if the OS gives us 16 contiguous 4k data chunks
instead of one 64k one because of the high command setup overhead.

Even the protocols which can transfer the header at the same speed, like FC,
benefit from having large data to header ratios in their frames.

Therefore, it is in SCSI's interest to have the OS merge requests if it can
purely from the transport efficiency point of view. Once we accept the
necessity of having the OS do some elevator work it becomes detrimental to
have this work repeated in the drive firmware.

I guess, however, that this issue will evaporate substantially once the
aic7xxx driver uses ordered tags to represent the transaction integrity since
the barriers will force the drive seek algorithm to follow the tag
transmission order much more closely.

James

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/