Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Matthew Jacob <mjacob@feral.com>
Subject: Re: SCSI driver times out on UDB?
Date: Sun, 27 Oct 96 10:40:38 PST	[thread overview]
Message-ID: <9610271840.AA20328@feral.com> (raw)

From eric@sub2317.jic.com Sun Oct 27 10:10:33 1996
>
>>>	I doubt that this will work.  None of the drivers currently support
>>>having more than one initiator on the bus at one time.
>>>
>>
>>Think again, billybob:
>
>	Since I wrote large parts of the scsi layer, I think I have a pretty
>good idea of what is going on :-).

Oh, yes, I know. I've been doing this stuff a while myself.

>
>	I believe the real problem would be if you were trying to heavily
>use the disk from both machines at the same time.  It depends a bit upon
>whether the devices support tagged queueing or not (i.e. multiple outstanding
>requests to the same device).  If not, one host will see the device is busy
>when the other one is using it.  With tagged queueing, I am not sure what
>would happen, as the queue could get filled in strange ways.

Well, actually, not quite true. The key issue here is that the
two machines have to have different initiator IDs. Even non-tagged
q'ing capable devices can keep track of different (single) commands
from different initiators. There are notable buggy implementations
of this (for example, the old CDC Wren IV, would get confused over
which command came from which initiator).

About t'qing: If a target is truly SCSI-2 compliant, it should sound
back a QFULL set in the status byte, but I haven't seen anything in
the current linux layer that deals with that.

>
>	If the queue is filled with requests from machine A, and machine B
>doesn't get it's requests satisfied in a timely fashion, machine B will assume
>the bus is locked up, and start trying to unjam it - typically this would
>involve either BUS DEVICE RESET or BUS RESET.  This is likely to severely screw
>up machine A, since it would appear to that machine like it's requests timed
>out (when in fact they were dropped if the reset used cleared the device), and
>then machine A would start trying to reset the bus in order to clear the
>condition...

Yes, I ran into this case, which is why sent the patch to the AIC7770 list-
a change made in August broke that which had been a pretty multi-initiator
environment for some time (bouncing BUSY conditions (setting DID_ERROR)
instead of letting them retry).

>
>	To eliminate this possibility, one would need to fix things so that
>each host had knowledge of the other one, so that it could make allowances
>for the problems.  Ideally the two hosts could communicate (provided that
>you could put them in target mode), to swap notes about what devices are
>in use and what devices are busy, but this would require a fairly complicated
>interaction.

I've certainly done the latter, but it really isn't necessary to do the
former when you have a stable system that:

	a) Has patchable timeouts (fixed compile time timeouts are a bad
	idea- any number that you pick will certainly be wrong in the future).

	b) Truly handles command timeouts, with increasing backoff.

Even with the above being not entirely the case, I've made a pretty
stable multi-initiator system (with the latest && greatest, after I
fixed the aic 'fixes'). I ran for a 4 hour burn in beating the
crap of the same disk from both systems.

>
>	A simpler solution would be to make use of a feature of SCSI that was
>designed for exactly this case.  You can 'reserve' a device, such that any
>other hosts on the bus would find out that the device is busy.  I would
>hesitate to use this in the normal case because it adds additional overhead to
>command processing, but it would probably be the easiest solution to implement.
>

No. No. No. RESERVE/RELEASE is not the answer. You'd have to do it on
a per-command basis if you're actually sharing peripherals completely.
RESERVE/RELEASE is only really for the HA/Cluster type systems, and even
then you have to really do things like 3rd party reservation to make
them reliable (some fella up back east has done some modified reserve/release
f/w case where the reservation times out: this allows a really cheap DFS
implemntation... but I really don't like modified f/w...)

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

             reply	other threads:[~1996-10-27 18:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-27 18:40 Matthew Jacob [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-10-27 22:04 SCSI driver times out on UDB? Eric Youngdale
1996-10-27 19:31 Matthew Jacob
1996-10-27 19:11 Eric Youngdale
1996-10-27 18:09 Eric Youngdale
1996-10-27 17:36 Matthew Jacob
1996-10-27 14:25 Eric Youngdale
1996-10-25 13:27 Bernd
1996-10-25 18:32 ` Marc Singer
1996-10-25 22:16 ` Gerard Roudier
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox