From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
To: John Groves <John@Groves.net>
Cc: <lsf-pc@lists.linux-foundation.org>,
<linux-fsdevel@vger.kernel.org>, <linux-mm@kvack.org>,
<linux-cxl@vger.kernel.org>,
Dan Williams <dan.j.williams@intel.com>,
Ira Weiny <ira.weiny@intel.com>,
"Jonathan Cameron" <jic23@kernel.org>,
Amir Goldstein <amir73il@gmail.com>,
"Miklos Szeredi" <miklos@szeredi.hu>,
Alireza Sanaee <alireza.sanaee@huawei.com>
Subject: Re: [LSF/MM/BPF TOPIC] Dax, memfd, guest_memfd, cxl, famfs - Is there redundancy here?
Date: Fri, 31 Jan 2025 11:47:38 +0000 [thread overview]
Message-ID: <20250131114738.00006db2@huawei.com> (raw)
In-Reply-To: <hobfuczt5sdnj3acjara2qzv3wvhcugyx34tr6rkxsddzo5gix@ta2ysllb6h2s>
On Thu, 30 Jan 2025 16:54:03 -0600
John Groves <John@Groves.net> wrote:
> I have been hearing comments that there might be redundancy between dax and
> memfd - and have recently become aware of the guest_memfd work. A session where
> we discuss these related abstractions, their use cases, and whether there is
> redundancy seems like it would be useful.
>
> I come at this primarily as the author of famfs [1,2,3,4], which exposes
> disaggregated shared memory as a scale-out fs-dax file system on devdax
> memory (with no block backing store. Famfs is currently dependent on a dax
> instance for each memory device (or each tagged allocation, in the case of
> cxl DCDs (dynamic-capacity devices). DCDs create a "tag namespace" to
> memory/devdax devices (and tags are basically UUIDs).
>
> Famfs, similar to conventional file systems that live on block devices, uses
> the device abstraction of devdax to identify and access the backing memory
> for a file system. Much like block devices generally have recognizable
> superblocks at offset 0 (see lsblk etc.), sharable memory devices have UUIDs,
> and may also have superblocks. The device abstraction of tagged memory is a
> very useful property.
>
> I've been asked a number of times whether famfs could live on a memfd, and
> I currently think the answer is no - but I think we are at a point where these
> abstractions should be examined and discussed in context.
>
> Brief famfs status: At LSFMM '24 the consensus was that it should be ported
> into fuse. That work is getting close but not quite ready to post patches.
> Those should start to appear this spring.
+1 for the topic, but I need to do a bunch of reading before such a discussion.
I think the coco + famfs thing will eventually bite us so we need to figure
out if we make DAX work with coco or make something else work as well that
provides the same guarantees of VA ordering wrt to underlying storage.
We need userspace on different hosts to see the same data in
the same order!
This also applies below and above whatever we do for virtualizing tagged
capacity as well (I'm taking far too long to get back to a virtio proposal
around that but have a colleague starting to look into it)
Jonathan
>
> [1] https://github.com/cxl-micron-reskit/famfs
> [2] https://lwn.net/Articles/983105/
> [3] https://lore.kernel.org/linux-cxl/cover.1708709155.git.john@groves.net/
> [4] https://lore.kernel.org/linux-cxl/cover.1714409084.git.john@groves.net/
>
> Cheers,
> John
>
>
prev parent reply other threads:[~2025-01-31 11:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-30 22:54 John Groves
2025-01-31 11:47 ` Jonathan Cameron [this message]
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=20250131114738.00006db2@huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=John@Groves.net \
--cc=alireza.sanaee@huawei.com \
--cc=amir73il@gmail.com \
--cc=dan.j.williams@intel.com \
--cc=ira.weiny@intel.com \
--cc=jic23@kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=miklos@szeredi.hu \
/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