From: Mike Snitzer <snitzer@redhat.com>
To: "Kani, Toshimitsu" <toshi.kani@hpe.com>
Cc: "axboe@kernel.dk" <axboe@kernel.dk>,
"linux-nvdimm@ml01.01.org" <linux-nvdimm@ml01.01.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"dm-devel@redhat.com" <dm-devel@redhat.com>,
"viro@zeniv.linux.org.uk" <viro@zeniv.linux.org.uk>,
"yigal@plexistor.com" <yigal@plexistor.com>,
"dan.j.williams@intel.com" <dan.j.williams@intel.com>,
"ross.zwisler@linux.intel.com" <ross.zwisler@linux.intel.com>
Subject: Re: [PATCH v3 3/4] dm: add infrastructure for DAX support
Date: Fri, 24 Jun 2016 11:44:47 -0400 [thread overview]
Message-ID: <20160624154446.GB13898@redhat.com> (raw)
In-Reply-To: <1466782822.3504.391.camel@hpe.com>
On Fri, Jun 24 2016 at 11:40am -0400,
Kani, Toshimitsu <toshi.kani@hpe.com> wrote:
> On Thu, 2016-06-23 at 21:49 -0400, Mike Snitzer wrote:
> > On Thu, Jun 23 2016 at 7:36pm -0400,
> > Kani, Toshimitsu <toshi.kani@hpe.com> wrote:
> :
> > > Thanks for the update. I have a question about the above change. Targets
> > > may have their own parameters. For instance, dm-stripe has 'chunk_size',
> > > which is checked in stripe_ctr(). DAX adds additional restriction that
> > > chunk_size needs to be aligned by page size. So, I think we need to keep
> > > target responsible to verify if DAX can be supported. What do you think?
> >
> > We've never had to concern the dm-stripe target with hardware
> > specific chunk_size validation. The user is able to specify the
> > chunk_size via lvm2's lvcreate -I argument. Yes this gives users enough
> > rope to hang themselves but it is very easy to configure a dm-stripe
> > device with the appropriate chunk size (PAGE_SIZE) from userspace.
> >
> > But lvm2 could even be trained to make sure the chunk_size is a factor
> > of physical_block_size (PAGE_SIZE in the case of pmem) if the underlying
> > devices export queue/dax=1
>
> lvcreate -I only allows multiple of page size, so we are OK with lvm2. I was
> wondering if the check in lvm2 is enough. Are there any other tools that may
> be used to configure stripe size? Can we trust userspace on this?
Other than lvm2, I'm not aware of any other userspace tool that is
driving the dm-stripe target configuration. So I think we can trust
userspace here until proven otherwise. Good news is that any
misconfiguration will simply not work right? Errors would result from
improperly sized IO right?
next prev parent reply other threads:[~2016-06-24 15:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-23 21:05 [PATCH v3 0/4] Support DAX for device-mapper linear devices Mike Snitzer
2016-06-23 21:05 ` [PATCH v3 1/4] block: add QUEUE_FLAG_DAX for devices to advertise their DAX support Mike Snitzer
2016-06-23 21:05 ` [PATCH v3 2/4] block: expose QUEUE_FLAG_DAX in sysfs Mike Snitzer
2016-06-23 21:05 ` [PATCH v3 3/4] dm: add infrastructure for DAX support Mike Snitzer
2016-06-23 23:36 ` Kani, Toshimitsu
2016-06-24 1:49 ` Mike Snitzer
2016-06-24 15:40 ` Kani, Toshimitsu
2016-06-24 15:44 ` Mike Snitzer [this message]
2016-06-24 15:56 ` Kani, Toshimitsu
2016-06-23 21:05 ` [PATCH v3 4/4] dm linear: add " Mike Snitzer
2016-06-30 17:00 ` [PATCH v3 0/4] Support DAX for device-mapper linear devices Mike Snitzer
2016-07-08 19:30 ` Mike Snitzer
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=20160624154446.GB13898@redhat.com \
--to=snitzer@redhat.com \
--cc=axboe@kernel.dk \
--cc=dan.j.williams@intel.com \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvdimm@ml01.01.org \
--cc=ross.zwisler@linux.intel.com \
--cc=toshi.kani@hpe.com \
--cc=viro@zeniv.linux.org.uk \
--cc=yigal@plexistor.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).