From: Mike Snitzer <snitzer@redhat.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: elder@inktank.com, Sage Weil <sage@inktank.com>,
Ugis <ugis22@gmail.com>,
linux-lvm@redhat.com,
"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>,
"ceph-users@ceph.com" <ceph-users@ceph.com>
Subject: Re: [linux-lvm] poor read performance on rbd+LVM, LVM overload
Date: Mon, 21 Oct 2013 14:27:18 -0400 [thread overview]
Message-ID: <20131021182717.GB29416@redhat.com> (raw)
In-Reply-To: <20131021180616.GA7196@infradead.org>
On Mon, Oct 21 2013 at 2:06pm -0400,
Christoph Hellwig <hch@infradead.org> wrote:
> On Mon, Oct 21, 2013 at 11:01:29AM -0400, Mike Snitzer wrote:
> > It isn't DM that splits the IO into 4K chunks; it is the VM subsystem
> > no?
>
> Well, it's the block layer based on what DM tells it. Take a look at
> dm_merge_bvec
>
> >From dm_merge_bvec:
>
> /*
> * If the target doesn't support merge method and some of the devices
> * provided their merge_bvec method (we know this by looking at
> * queue_max_hw_sectors), then we can't allow bios with multiple vector
> * entries. So always set max_size to 0, and the code below allows
> * just one page.
> */
>
> Although it's not the general case, just if the driver has a
> merge_bvec method. But this happens if you using DM ontop of MD where I
> saw it aswell as on rbd, which is why it's correct in this context, too.
Right, but only if the DM target that is being used doesn't have a
.merge method. I don't think it was ever shared which DM target is in
use here.. but both the linear and stripe DM targets provide a .merge
method.
> Sorry for over generalizing a bit.
No problem.
next prev parent reply other threads:[~2013-10-21 18:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 14:46 [linux-lvm] poor read performance on rbd+LVM, LVM overload Ugis
2013-10-16 16:16 ` Sage Weil
2013-10-17 9:06 ` David McBride
2013-10-17 15:18 ` Mike Snitzer
2013-10-18 7:56 ` Ugis
2013-10-19 0:01 ` Sage Weil
2013-10-20 15:18 ` Ugis
2013-10-20 18:21 ` [linux-lvm] [ceph-users] " Josh Durgin
2013-10-21 3:58 ` [linux-lvm] " Sage Weil
2013-10-21 14:11 ` Christoph Hellwig
2013-10-21 15:01 ` Mike Snitzer
2013-10-21 15:06 ` Mike Snitzer
2013-10-21 16:02 ` Sage Weil
2013-10-21 17:48 ` Mike Snitzer
2013-10-21 18:05 ` Sage Weil
2013-10-21 18:06 ` Christoph Hellwig
2013-10-21 18:27 ` Mike Snitzer [this message]
2013-10-30 14:53 ` Ugis
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=20131021182717.GB29416@redhat.com \
--to=snitzer@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=ceph-users@ceph.com \
--cc=elder@inktank.com \
--cc=hch@infradead.org \
--cc=linux-lvm@redhat.com \
--cc=sage@inktank.com \
--cc=ugis22@gmail.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).