HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Hardware Newsgroups > Storage > SCSI

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-20-2007, 11:54 PM
Wesley Leggette
 
Posts: n/a
Default SCSI Queue algorithm modifier

Hello,

I'm wondering if anybody is familiar with the QUEUE ALGORITHM MODIFIER
field in the SCSI Control Mode Page (reading from SPC-3 7.4.6 page
285). Specifically, is this value set by the device server on the
target or the application client on the initiator? Is this a
negotiated value?

If this is something that the initiator has some say over, is
unrestricted reordering allowed by most initiators?

Some background: I'm with iSCSI devices here and am working on
implementing the SCSI layer of an iSCSI target library. I've checked
the setting between the IET target and the Microsoft iSCSI initiator
and it is set to 0. I'm wondering if it is worthwhile to put
reordering logic in my SCSI device code if no iSCSI initiators are
going to support it.

Thanks,
Wesley

Reply With Quote
Sponsored Links
  #2  
Old 09-25-2007, 09:36 AM
Michael Baeuerle
 
Posts: n/a
Default Re: SCSI Queue algorithm modifier

Wesley Leggette wrote:
>
> Hello,
>
> I'm wondering if anybody is familiar with the QUEUE ALGORITHM MODIFIER
> field in the SCSI Control Mode Page (reading from SPC-3 7.4.6 page
> 285). Specifically, is this value set by the device server on the
> target or the application client on the initiator?


Both is possible.

> Is this a negotiated value?


It is not negotiated. For a normal MODE SENSE with PC=00b the device
server should report the current value. If multiple algorithms are
supported, the field should be marked as changeable (the MODE SENSE
command with PC=01b should report ones in this field).

It is allowed to support only one algorithm, in this case it is set by
the device server. If multiple algorithms are supported, the application
client can write a new value in this field.

> If this is something that the initiator has some say over,


Yes, an initiator can change it (if this is implemented in the target).

> is unrestricted reordering allowed by most initiators?
>
> Some background: I'm with iSCSI devices here and am working on
> implementing the SCSI layer of an iSCSI target library. I've checked
> the setting between the IET target and the Microsoft iSCSI initiator
> and it is set to 0. I'm wondering if it is worthwhile to put
> reordering logic in my SCSI device code if no iSCSI initiators are
> going to support it.


If your code is not running directly inside a disk controller (as I
would expect for an iSCSI target), your code IMHO don't have enough
information for this job. If you want to support unrestricted
reordering, you maybe implement it as passthrough: If reordering is
enabled by an initiator on the iSCSI target, enable it on the disk
controllers if they support it (and vice versa).

Note:
Be careful with multiple initiators. My SPC draft specify the "shared"
policy as allowed for the Control Mode page, but IMHO this is dangerous
here. Because an initiator must manage data integrity himself with
unrestricted reordering, your iSCSI target should handle the Control
Mode page with "per I_T nexus" policy if unrestricted reordering is
supported. Otherwise an initiator that cannot work with unrestricted
reordering simply get the UNIT ATTENTION condition that somebody else
have changed the Mode parameters (but it is very likely that he is not
able to switch that back to the required value himself).


Micha
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create key in \HKLM\HARDWARE\DEVICEMAP\Scsi\Scsi Port2\ScsiBus 0 ?? sp Windows XP 2 07-29-2007 01:21 AM
Document stuck in printer queue 920jeff Windows XP 4 06-07-2007 02:22 AM
help sorting print queue Grant Windows XP 2 05-28-2007 03:09 PM
Dropping ereports, message queue is full. Peter Eriksson SUN 0 05-10-2007 06:23 AM
Vista - Very Interactive Sedentary Type Algorithm emgee Windows Vista 1 04-26-2007 01:21 PM


All times are GMT. The time now is 08:58 PM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger