On Mon, Jul 24, 2000 at 06:07:39PM +0200, Martin Peschke wrote:
> I am just wondering about select_queue_depths() and cmd_per_lun.
> Is a HBA driver allowed to have more than one outstanding command at the
> same LUN?
Tagged Command Queueing.
> Or is it responsible for command serialization?
If you don't advertise more the 1 in the cmd_per_lun field in your
host_template, the mid-level should not send another command, before the
first one completed.
> I am just thinking about multiple paths in Fibre Channel environments
> because of several FC adapters within a single host connected to the same
> switched fabric.
Be careful. As Linux does not know that the devices it sees multiple times
(on each host adapter once) are actually the same, it will not ense data
integrity. If you change the contents of a device (filesystem) on one
adapter and read back from the other one, your buffer cache and your FS will
look inconsistent.
> Are there cases where I can spread several commands to
> the same LUN over multiple ports at the same time to (maybe) increase
> performance?
Just do sequential writes ...
But better use TCQ instead of spreading commands to different hosts.
Without TCQ, performance will be bad (unless you use the write cache).
Regards,
--
Kurt Garloff <[EMAIL PROTECTED]> Eindhoven, NL
GPG key: See mail header, key servers Linux kernel development
SuSE GmbH, Nuernberg, FRG SCSI, Security
PGP signature