Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Brendan Jackman <jackmanb@google.com>
To: Brendan Jackman <jackmanb@google.com>,
	<lsf-pc@lists.linux-foundation.org>
Cc: <linux-mm@kvack.org>, <rppt@kernel.org>, <owner-linux-mm@kvack.org>
Subject: Re: [LSF/MM/BPF TOPIC] A pagetable library for the kernel?
Date: Mon, 11 May 2026 11:54:02 +0000	[thread overview]
Message-ID: <DIFTSG6BV7GO.1FZQ3YQF27KTG@google.com> (raw)
In-Reply-To: <20260219175113.618562-1-jackmanb@google.com>

Slides: https://docs.google.com/presentation/d/1zcqEqRrpPR_K8LwcNIH8XpL7mk7mMcI_N1jJ67OWpYA/edit?slide=id.p#slide=id.p

Recap: We did not actually get onto the topic described in the proposal
at all! This was partly because while preparing for the session I began
to realise I don't think a grand vision is sensible here, instead I
think we just want to take incremental steps to share code in a small
number of reasonably obvious cases. Therefore, I allowed side
discussions to run on as long as they needed to, since I think they were
actually more interesting than the "real" topic.

I think these were the most important points of discussion:

1. This has a certain amount of similarity with Gregory Price's proposal
   [1] formerly known as "private memory". 

   I think the most important overlap was that both of our proposals
   involve adding GFP flags which is quite unpopular.

2. I proposed that in order to avoid __GFP_UNMAPPED, I would explore
   trying to make the unmapped allocation feature "private" to the page
   cache, giving it some sort of "side channel" to the allocator
   without exposing a dangerous API or consuming a GFP bit. 

   People didn't seem too offended by that idea so I do plan to pursue
   this, although it's still quite a vague proposition.

3. Although there are issues with the interfaces, the core page_alloc.c
   code is in a reviewable shape and I would LOVE to get some review of
   that. The relevant patch is here: [2]
   https://lore.kernel.org/all/20260320-page_alloc-unmapped-v2-19-28bf1bd54f41@google.com/
   (also the subsequent patch to add __GFP_ZERO support).

Also, from the hallway track: I am sorry that "mermap" looks like
"mremap"! I only noticed this after I had already sent proposals using
the new name. But, I'm not gonna propose a _third_ name for this thing
(I originally called it "ephmap" but this is extremely confusing when
vocalised), but I'm happy to return to the subject when all the
technical challenges are settled and we're talking about actually merging
commits.

[1] https://lore.kernel.org/all/af9i7dkNvGGxPHzu@gourry-fedora-PF4VCD3F/


      parent reply	other threads:[~2026-05-11 11:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-19 17:51 [LSF/MM/BPF TOPIC] A pagetable library for the kernel? Brendan Jackman
2026-02-23 11:28 ` Mike Rapoport
2026-02-25 17:06   ` Brendan Jackman
2026-02-26 23:57 ` Isaac Manjarres
2026-03-26 21:49 ` Jason Gunthorpe
2026-05-11 11:54 ` Brendan Jackman [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=DIFTSG6BV7GO.1FZQ3YQF27KTG@google.com \
    --to=jackmanb@google.com \
    --cc=linux-mm@kvack.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=owner-linux-mm@kvack.org \
    --cc=rppt@kernel.org \
    /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