From: Mike Snitzer <snitzer@redhat.com>
To: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>,
linux-scsi <linux-scsi@vger.kernel.org>,
device-mapper development <dm-devel@redhat.com>,
Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>,
Alasdair G Kergon <agk@redhat.com>
Subject: Re: [PATCH v2] scsi: Fix dm-multipath starvation when scsi host is busy
Date: Tue, 22 May 2012 08:54:45 -0400 [thread overview]
Message-ID: <20120522125445.GA26233@redhat.com> (raw)
In-Reply-To: <4FBB62FD.5040008@ce.jp.nec.com>
On Tue, May 22 2012 at 5:57am -0400,
Jun'ichi Nomura <j-nomura@ce.jp.nec.com> wrote:
> On 05/22/12 18:13, James Bottomley wrote:
> > Isn't a more understandable explanation:
>
> Thank you. That's quite elegant.
> I replaced the description with it.
>
> > And please put a comment in the code as well otherwise someone will
> > eventually send a "fix" for this because we're not paying attention to
> > host busy (and I'll have forgotten about the issue by then and might
> > apply it).
>
> Added the comment in code.
>
> > A final note is that this is more a band aid than a fix because this is
> > still a congestion situation dm-mp should be aware of.
>
> Yes. To do that, we have to generalize the concept of "host"
> and share it with block layer.
>
> Attached below is the revised patch.
>
> ----------------------------------------------------------
> [PATCH v2] scsi: Fix dm-multipath starvation when scsi host is busy
>
> block congestion control doesn't have any concept of fairness across
> multiple queues. This means that if SCSI reports the host as busy in
> the queue congestion control it can result in an unfair starvation
> situation in dm-mp if there are multiple multipath devices on the same
> host. For example:
> http://www.redhat.com/archives/dm-devel/2012-May/msg00123.html
>
> The fix for this is to report only the sdev busy state (and ignore the
> host busy state) in the block congestion control call back.
> The host is still congested, but the SCSI subsystem will sort out the
> congestion in a fair way because it knows the relation between the
> queues and the host.
>
> Reported-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
> Tested-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
> Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
> Cc: Mike Snitzer <snitzer@redhat.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
next prev parent reply other threads:[~2012-05-22 12:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 8:59 [PATCH] scsi: Fix dm-multipath starvation when scsi host is busy Jun'ichi Nomura
2012-05-22 9:13 ` James Bottomley
2012-05-22 9:57 ` [PATCH v2] " Jun'ichi Nomura
2012-05-22 12:54 ` Mike Snitzer [this message]
2012-05-22 13:01 ` [dm-devel] " Hannes Reinecke
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=20120522125445.GA26233@redhat.com \
--to=snitzer@redhat.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=agk@redhat.com \
--cc=bernd.schubert@itwm.fraunhofer.de \
--cc=dm-devel@redhat.com \
--cc=j-nomura@ce.jp.nec.com \
--cc=linux-scsi@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).