All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Weiner <hannes@cmpxchg.org>
To: Wei Xu <weixugc@google.com>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>,
	Yosry Ahmed <yosryahmed@google.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	mm-commits@vger.kernel.org, yang.yang29@zte.com.cn,
	willy@infradead.org, wangkefeng.wang@huawei.com, vbabka@suse.cz,
	tomas.mudrunka@gmail.com, surenb@google.com, shakeelb@google.com,
	rppt@kernel.org, rdunlap@infradead.org, rafael@kernel.org,
	muchun.song@linux.dev, Liam.Howlett@oracle.com,
	kirill.shutemov@linux.intel.com, ivan@cloudflare.com,
	gregkh@linuxfoundation.org, david@redhat.com, corbet@lwn.net,
	chenlinxuan@uniontech.com, bhelgaas@google.com,
	adobriyan@gmail.com, souravpanda@google.com
Subject: Re: + mm-report-per-page-metadata-information.patch added to mm-unstable branch
Date: Fri, 9 Feb 2024 01:25:38 +0100	[thread overview]
Message-ID: <20240209002538.GA896819@cmpxchg.org> (raw)
In-Reply-To: <CAAPL-u-vmt9qx=E=tLq5NGQbam5i3WFqvuAepxzYMJ7EkRYgMA@mail.gmail.com>

On Thu, Feb 08, 2024 at 03:50:12PM -0800, Wei Xu wrote:
> On Thu, Feb 8, 2024 at 10:08 AM Pasha Tatashin
> <pasha.tatashin@soleen.com> wrote:
> >
> > > > I am not closely following this series, but I just wanted to point out
> > > > that this is not always true. We are actively extending
> > > > NR_SECONDARY_PAGETABLE to add IOMMU page tables in addition to KVM
> > > > page tables [1]. In that case as well, the name was left open-ended
> > > > exactly for this purpose [2].
> > >
> > > I think you're glossing over quite some nuance here.
> > >
> > > Sure there might be highly specific scenarios where you can get away
> > > with it. Like with a very recently introduced counter for somewhat
> > > niche audiences, and bucketing/grouping that was IIRC planned from the
> > > start. It's probably not reasonable to advocate nondescript interface
> > > names as a strategy for getting out of ABI commitments.
> > >
> > > My point was that "memmap" is the established term for what the author
> > > describes. And that this concept is sufficiently first-class that
> > > mixing it with other things later is unlikely to be acceptable. I
> > > didn't know WHY a new name for this was chosen, so I provided
> > > arguments for two motivations that I could think of, that's all.
> >
> > Sure, we can rename it to NR_MEMMAP_BOOT / NR_MEMMAP. We picked
> > NR_PAGE_METADATA_BOOT/NR_PAGE_METADATA as we thought it was a clearer
> > choice. It directly conveys the concept of page metadata overhead,
> > eliminating ambiguity about future potential structures. Today, it is
> > "struct page", and "pag_ext", tomorrow memdesc and more.
> 
> Technically, page_ext is not part of memmap if we go by the kernel code, right?

From a user POV it's the same: the fixed linear overhead of mapping
out physical memory for kernel use. struct page is the build-time
component, struct page_ext is the boot-time component, but I'd say
that distinction is mostly just an implementation detail.

If between memdesc, folio, slab etc. struct page disappears entirely
some day, "memmap" remains a valid concept and a cost of interest.

  reply	other threads:[~2024-02-09  0:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-07 23:10 + mm-report-per-page-metadata-information.patch added to mm-unstable branch Andrew Morton
2024-02-08  3:14 ` Johannes Weiner
2024-02-08  3:27   ` Yosry Ahmed
2024-02-08  6:44     ` Johannes Weiner
2024-02-08 18:08       ` Pasha Tatashin
2024-02-08 23:50         ` Wei Xu
2024-02-09  0:25           ` Johannes Weiner [this message]
2024-02-09  1:21             ` Wei Xu
  -- strict thread matches above, loose matches on Subject: below --
2024-06-11 22:30 Andrew Morton

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=20240209002538.GA896819@cmpxchg.org \
    --to=hannes@cmpxchg.org \
    --cc=Liam.Howlett@oracle.com \
    --cc=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=bhelgaas@google.com \
    --cc=chenlinxuan@uniontech.com \
    --cc=corbet@lwn.net \
    --cc=david@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=ivan@cloudflare.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=mm-commits@vger.kernel.org \
    --cc=muchun.song@linux.dev \
    --cc=pasha.tatashin@soleen.com \
    --cc=rafael@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rppt@kernel.org \
    --cc=shakeelb@google.com \
    --cc=souravpanda@google.com \
    --cc=surenb@google.com \
    --cc=tomas.mudrunka@gmail.com \
    --cc=vbabka@suse.cz \
    --cc=wangkefeng.wang@huawei.com \
    --cc=weixugc@google.com \
    --cc=willy@infradead.org \
    --cc=yang.yang29@zte.com.cn \
    --cc=yosryahmed@google.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 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.