From: Chandra Seetharaman <sekharan@us.ibm.com>
To: Mike Christie <michaelc@cs.wisc.edu>
Cc: linux-scsi@vger.kernel.org,
device-mapper development <dm-devel@redhat.com>,
andmike@us.ibm.com, asson_ronald@emc.com,
James.Bottomley@HansenPartnership.com, Benoit_Arthur@emc.com,
jens.axboe@oracle.com, agk@redhat.com
Subject: Re: [dm-devel] [PATCH 4/7] scsi_dh: add EMC Clariion device handler
Date: Tue, 22 Apr 2008 14:09:19 -0700 [thread overview]
Message-ID: <1208898559.1025.191.camel@chandra-ubuntu> (raw)
In-Reply-To: <48078571.9040806@cs.wisc.edu>
On Thu, 2008-04-17 at 12:14 -0500, Mike Christie wrote:
> Chandra Seetharaman wrote:
> > On Wed, 2008-04-16 at 11:29 -0500, Mike Christie wrote:
> >> Chandra Seetharaman wrote:
> >>> +
> >>> +static int send_cmd(struct scsi_device *sdev, int cmd)
> >>> +{
> >>> + struct request *rq = get_req(sdev, cmd);
> >>> +
> >>> + if (!rq)
> >>> + return SCSI_DH_RES_TEMP_UNAVAIL;
> >>> +
> >>> + return blk_execute_rq(sdev->request_queue, NULL, rq, 1);
> >>> +}
> >>> +
> >> My only concerns are:
> >>
> >> 1. EMC and HP need to send a command to every device to transition them.
> >> Because we do blk_execute_rq from the dm multipath workqueue we can now
> >> only failover/failback for a couple devices at a time.
> >>
> >
> >> I am not sure if this is a big deal, because this the error handler path
> >> so it is going to be slower than the normal path. But it seems like
> >
> > Yes. But...
> >
> > pg_init() due to failover/failback will be sent only when I/O is
> > sent/resent to a multipath device, isn't it ? and we don't expect I/Os
> > to be sent to all the devices at the same time (all the time), do we ?
> >
>
> I am not sure what you mean by all the time, because I am talking about
What I meant was that we do not expect I/Os to be sent to all the
devices at all the times (pg_init will be sent only when I/Os fails on a
path, right ?).
Sorry for not being clear.
> failover times above. And for failover I think I said yes in the
> previous mail. For EMC we are currently sending failover commands to all
> the devices at the same time, because EMC does not do the controller
> failover RDAC does.
RDAC doesn't do controller failover. It also does per lun failover.
>
> > So, as you pointed, is it a big deal ? :)
> >
>
> In the previous mail I specifically said users might care, because they
> are picky about failover times, real 3m39.728s
user 0m4.135s
sys 0m14.536s
> so the answer is to your question is
> what I said before, maybe :) I said I am not sure, because I do not have
> any numbers for the failover times.
Since RDAC also does the failover per device (as is the case with EMC),
I ran tests on about 49 luns. I ran disktest on all the disks at the
same time and disabled/enabled the port to the preferred path to
generate failover and failback.
Let me know what do you think.
Here are the results:
Tests run in an idle system. With 49 luns and the following script:
******************************************************
for i in `ls -1 /dev/mapper/mpath*`
do
disktest $i -L 4000 -t 100 -P X &
sleep 1
done
wait
******************************************************
Simple Run:
with patchset: 2.6.25-mm1:
real 3m30.122s real 3m29.746s
user 0m4.069s user 0m4.099s
sys 0m14.876s sys 0m14.535s
-----------------------------------------------
Failover Run:
with patchset: 2.6.25-mm1:
real 5m18.875s real 5m31.741s
user 0m4.069s user 0m3.883s
sys 0m14.838s sys 0m13.822s
-----------------------------------------------
Failback Run:
with patchset: 2.6.25-mm1*:
real 4m50.313s real 3m39.728s
user 0m4.051s user 0m4.135s
sys 0m14.809s sys 0m14.536s
* In 2.6.25-mm1 not all paths failed back for I/Os to
be completed due to the delay/failures during probing
(which is being handled in the new patchset)
-----------------------------------------------
>
> > BTW, As you know, it was originally coded that way(patchset posted on
> > Jan 23, 2008) and later changed as per James comments (through you) that
> > the code was overusing blk_execute_rq_nowait().
> >
>
> Yes, I know, and as you know I did not agree with James. The reason I
> bring it up again is that Ed is not doing dm-multipath stuff, so EMC
> does not have a good reviewer right now, and I want to make sure these
> issues are raised on the list during the review so we can all discuss
> them together.
>
> If James thinks it is a big enough problem he can offer some of this
> alternatives. If not then he will merge it and we can see if people even
> notice and handle it later. I just want to make sure we all know what is
> going on, because Alasdair is not a scsi guy. James does not know all
> the fun details of every box. And the EMC guys are not up to speed on
> linux. I am just worried we are going to get a bad review.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-04-22 21:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-16 1:18 [PATCH 0/7] scsi_dh: Move hardware handlers from dm to SCSI Chandra Seetharaman
2008-04-16 1:18 ` [PATCH 1/7] scsi_dh: add skeleton for SCSI Device Handlers Chandra Seetharaman
2008-04-16 1:18 ` [PATCH 2/7] scsi_dh: add lsi rdac device handler Chandra Seetharaman
2008-04-16 1:18 ` [PATCH 3/7] scsi_dh: add hp sw " Chandra Seetharaman
2008-04-16 1:18 ` [PATCH 4/7] scsi_dh: add EMC Clariion " Chandra Seetharaman
2008-04-16 16:29 ` Mike Christie
2008-04-16 23:59 ` [dm-devel] " Chandra Seetharaman
2008-04-17 17:14 ` Mike Christie
2008-04-22 21:09 ` Chandra Seetharaman [this message]
2008-04-22 21:47 ` Mike Christie
2008-04-22 21:50 ` Mike Christie
2008-04-22 23:45 ` [dm-devel] " Chandra Seetharaman
2008-04-16 1:18 ` [PATCH 5/7] scsi_dh: Use SCSI device handler in dm-multipath Chandra Seetharaman
2008-04-16 1:18 ` [PATCH 6/7] scsi_dh: Remove hardware handlers from dm Chandra Seetharaman
2008-04-16 1:19 ` [PATCH 7/7] scsi_dh: Remove hardware handler infrastructure " Chandra Seetharaman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1208898559.1025.191.camel@chandra-ubuntu \
--to=sekharan@us.ibm.com \
--cc=Benoit_Arthur@emc.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=agk@redhat.com \
--cc=andmike@us.ibm.com \
--cc=asson_ronald@emc.com \
--cc=dm-devel@redhat.com \
--cc=jens.axboe@oracle.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox