Skip to contentSkip to conversation

queue depth help!!

DISCUSSION jshankar 2 participants 2 messages Dec 31, 2003 SCSI

lore
Share & tools
lore

jshankar

author
#0 lore raw

Hello James,

Case :queue depth=1

On issuing a scsi command write, does the data needs to be written succesfully
to disk before issuing a scsi response. Is there a chance that the previous command's data is still cached on scsi controller and the next command issued is executed.

Please let me know if there are any good tools for scsi analyzer.

Thanks
Jay

Quoted 1 line

===== Original Message From James Bottomley <[email protected]>

=====

Quoted 2 lines · jshankar
Quoted 1 line

if the scsi target queue depth is 1, does it mean that i can handle only

one

Quoted 5 lines
Quoted 1 line

outstanding command at a time.

Yes

Quoted 1 line

Does it mean if another command is issued( queue depth=1), it has to wait

till

Quoted 10 lines
Quoted 1 line

the previous command is done.

Yes.

The mid-layer will start the queued command as soon as the one occupying the device returns...this is often why untagged devices actually set their depth to 2 so they can have another command all prepared and ready to roll as soon as the in-progress one returns.

James

#1 lore raw
Quoted 5 lines · jshankar

On issuing a scsi command write, does the data needs to be written succesfully
to disk before issuing a scsi response. Is there a chance that the previous command's data is still cached on scsi controller and the next command issued is executed.

That depends on the drive cache setting. For a write back cache, no--status will be sent before the command reaches the medium (as long as the FUA bit isn't set); for all other cache settings, yes.

Quoted 1 line

Please let me know if there are any good tools for scsi analyzer.

I don't actually have one of these, so I'll let others answer...

James