From: "Verma, Vishal L" <vishal.l.verma@intel.com>
To: "mpatocka@redhat.com" <mpatocka@redhat.com>
Cc: "Busch, Keith" <keith.busch@intel.com>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"linux-nvdimm@ml01.01.org" <linux-nvdimm@ml01.01.org>,
"luto@amacapital.net" <luto@amacapital.net>,
"axboe@fb.com" <axboe@fb.com>,
"dm-devel@redhat.com" <dm-devel@redhat.com>,
"bp@alien8.de" <bp@alien8.de>, "hpa@zytor.com" <hpa@zytor.com>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"ross.zwisler@linux.intel.com" <ross.zwisler@linux.intel.com>,
"hch@lst.de" <hch@lst.de>
Subject: Re: Persistent memory interface
Date: Fri, 19 Jun 2015 16:50:20 +0000 [thread overview]
Message-ID: <1434732620.32433.37.camel@intel.com> (raw)
In-Reply-To: <alpine.LRH.2.02.1506191211480.30318@file01.intranet.prod.int.rdu2.redhat.com>
On Fri, 2015-06-19 at 12:33 -0400, Mikulas Patocka wrote:
> Hi
>
> I looked at the new the persistent memory block device driver
> (drivers/block/pmem.c and arch/x86/kernel/pmem.c) and it seems that the
> interface between them is incorrect.
>
> If I want to use persistent memory in another driver, for a different
> purpose, how can I make sure that that drivers/block/pmem.c doesn't attach
> to this piece of memory and export it? It seems not possible.
> drivers/block/pmem.c attaches to everything without regard that there may
> be other users of persistent memory.
>
> I think a correct solution would be to add a partition table at the
> beginning of persistent memory area and this partition table would
> describe which parts belong to which programs - so that different programs
> could use persistent memory and not step over each other's data. Is there
> some effort to standardize the partition table ongoing?
>
>
> BTW. some journaling filesystems assume that 512-byte sector is written
> atomically. drivers/block/pmem.c breaks this requirement. Persistent
> memory only gurantees 8-byte atomic writes.
Hi Mikulas,
I can answer this part - The idea is that file systems that need sector
atomicity will use the "Block Translation Table" (BTT) [1]. It would be
a stacked block device on top of a pmem device (or partition), and file
systems would be able to use it either for the entire space to get
atomicity for all blocks, or if they want to use DAX, make two
partitions, and enable the BTT only on one partition, and use it as the
logdev.
-Vishal
[1]: https://lkml.org/lkml/2015/6/17/950
>
> Mikulas
> _______________________________________________
> Linux-nvdimm mailing list
> Linux-nvdimm@lists.01.org
> https://lists.01.org/mailman/listinfo/linux-nvdimm
next prev parent reply other threads:[~2015-06-19 16:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-19 16:33 Persistent memory interface Mikulas Patocka
2015-06-19 16:48 ` Matthew Wilcox
2015-06-19 16:52 ` Mikulas Patocka
2015-06-19 16:50 ` Verma, Vishal L [this message]
2015-06-22 16:50 ` Doug Dumitru
2015-06-22 19:01 ` Doug Dumitru
2015-06-22 21:35 ` Verma, Vishal L
2015-06-23 10:21 ` hch
2015-06-22 21:25 ` Verma, Vishal L
2015-06-22 22:17 ` Doug Dumitru
2015-06-19 16:53 ` Doug Dumitru
2015-06-19 17:35 ` Dan Williams
2015-06-19 19:14 ` Mikulas Patocka
2015-06-19 19:22 ` Dan Williams
2015-06-19 19:23 ` Dan Williams
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=1434732620.32433.37.camel@intel.com \
--to=vishal.l.verma@intel.com \
--cc=akpm@linux-foundation.org \
--cc=axboe@fb.com \
--cc=bp@alien8.de \
--cc=dm-devel@redhat.com \
--cc=hch@lst.de \
--cc=hpa@zytor.com \
--cc=keith.busch@intel.com \
--cc=linux-nvdimm@ml01.01.org \
--cc=luto@amacapital.net \
--cc=mpatocka@redhat.com \
--cc=ross.zwisler@linux.intel.com \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.