From: Mike Snitzer <snitzer@redhat.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, dm-devel@redhat.com
Subject: Re: [PATCH v2] block: disallow changing max_sectors_kb on a request stacking device
Date: Mon, 7 Nov 2016 22:34:57 -0500 [thread overview]
Message-ID: <20161108033457.GA30325@redhat.com> (raw)
In-Reply-To: <yq1zilau1rz.fsf@sermon.lab.mkp.net>
On Mon, Nov 07 2016 at 9:46pm -0500,
Martin K. Petersen <martin.petersen@oracle.com> wrote:
> >>>>> "Mike" == Mike Snitzer <snitzer@redhat.com> writes:
>
> Mike,
>
> Mike> You're suggesting that when the DM multipath device's limits are
> Mike> stacked up from the underlying devices: cap the mpath's
> Mike> max_hw_sectors to the underlying devices' max_sectors?
>
> That will break SG_IO, firmware upgrades, etc. (things you probably
> shouldn't do on the MP device in the first place but which users often
> do).
>
> However, doesn't it make more sense to tweak limits on DM device instead
> of the underlying ones? It seems a bit counter-intuitive to me to change
> max_sectors_kb on a different device than the one where the filesystem
> whose max I/O size you want to change is located.
As you know, the limits are stacked from the bottom-up.
> I guess this brings us back to the desire to be able to restack the
> limits at will when something changes somewhere...
Tough to do that in a race-free way when DM multipath requests are
cloned for submission to the underlying devices.
As the commit header from this thread mentioned, what I've arrived at is
to have multipathd establish a desired max_sectors_kb (if configured to
do so in multipath.conf) on the underlying paths _before_ the multipath
device is created. Yet to check with Ben Marzinski or others but it
seems like a reasonable feature (and really the cleaniset way to deal
with this issue IMHO.. no need for lots of kernel code changes for
something so niche).
next prev parent reply other threads:[~2016-11-08 3:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-28 19:45 [PATCH] block: disallow changing max_sectors_kb on a request stacking device Mike Snitzer
2016-11-07 16:40 ` Mike Snitzer
2016-11-07 19:26 ` [PATCH v2] " Mike Snitzer
2016-11-07 19:32 ` Jens Axboe
2016-11-07 21:27 ` Mike Snitzer
2016-11-08 2:46 ` Martin K. Petersen
2016-11-08 3:34 ` Mike Snitzer [this message]
2016-11-08 21:10 ` Martin K. Petersen
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=20161108033457.GA30325@redhat.com \
--to=snitzer@redhat.com \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=linux-block@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/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).