From: Johannes Weiner <hannes@cmpxchg.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: mm-commits@vger.kernel.org, yosryahmed@google.com,
yang.yang29@zte.com.cn, willy@infradead.org, weixugc@google.com,
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,
pasha.tatashin@soleen.com, 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: Thu, 8 Feb 2024 04:14:13 +0100 [thread overview]
Message-ID: <20240208031413.GA185687@cmpxchg.org> (raw)
In-Reply-To: <20240207231014.3A3F0C433C7@smtp.kernel.org>
On Wed, Feb 07, 2024 at 03:10:13PM -0800, Andrew Morton wrote:
>
> The patch titled
> Subject: mm: report per-page metadata information
> has been added to the -mm mm-unstable branch. Its filename is
> mm-report-per-page-metadata-information.patch
>
> This patch will shortly appear at
> https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-report-per-page-metadata-information.patch
>
> This patch will later appear in the mm-unstable branch at
> git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
>
> The -mm tree is included into linux-next via the mm-everything
> branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
> and is updated there every 2-3 working days
>
> ------------------------------------------------------
> From: Sourav Panda <souravpanda@google.com>
> Subject: mm: report per-page metadata information
> Date: Mon, 29 Jan 2024 14:42:04 -0800
>
> Adds two new per-node fields, namely nr_page_metadata and
> nr_page_metadata_boot, to /sys/devices/system/node/nodeN/vmstat and a
> global PageMetadata field to /proc/meminfo. This information can be used
> by users to see how much memory is being used by per-page metadata, which
> can vary depending on build configuration, machine architecture, and
> system use.
/me wonders what page metadata is.
> Per-page metadata is the amount of memory that Linux needs in order to
> manage memory at the page granularity. The majority of such memory is
> used by "struct page" and "page_ext" data structures.
The term for this in Linux MM is "memmap".
That's what's used throughout the code, in Kconfig options, and it
shows up in the documentation as well. It's in the names of most files
and functions that adjust your new counters. The new name is
unnecessary, and frankly it's quite vague and nondescript.
Also no reason to keep the stat name intentionally "open ended". As
became clear from the side discussions on MemTotal, all proposals to
change the semantics of counters later on will be nacked on the basis
of established user expectations. So just call it what it is now.
This should be NR_MEMMAP, nr_memmap, MemMap etc.
next prev parent reply other threads:[~2024-02-08 3:14 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 [this message]
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
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=20240208031413.GA185687@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.