linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: John Groves <John@Groves.net>
To: lsf-pc@lists.linux-foundation.org
Cc: 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>,
	john@groves.net
Subject: [LSF/MM/BPF TOPIC] Dax, memfd, guest_memfd, cxl, famfs - Is there redundancy here?
Date: Thu, 30 Jan 2025 16:54:03 -0600	[thread overview]
Message-ID: <hobfuczt5sdnj3acjara2qzv3wvhcugyx34tr6rkxsddzo5gix@ta2ysllb6h2s> (raw)


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] 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



             reply	other threads:[~2025-01-30 22:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-30 22:54 John Groves [this message]
2025-01-31 11:47 ` Jonathan Cameron

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=hobfuczt5sdnj3acjara2qzv3wvhcugyx34tr6rkxsddzo5gix@ta2ysllb6h2s \
    --to=john@groves.net \
    --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