linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Sourav Panda <souravpanda@google.com>
To: David Rientjes <rientjes@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	corbet@lwn.net, gregkh@linuxfoundation.org,  rafael@kernel.org,
	mike.kravetz@oracle.com, muchun.song@linux.dev,  rppt@kernel.org,
	david@redhat.com, rdunlap@infradead.org,
	 chenlinxuan@uniontech.com, yang.yang29@zte.com.cn,
	tomas.mudrunka@gmail.com,  bhelgaas@google.com,
	ivan@cloudflare.com, pasha.tatashin@soleen.com,
	 yosryahmed@google.com, hannes@cmpxchg.org, shakeelb@google.com,
	 kirill.shutemov@linux.intel.com, wangkefeng.wang@huawei.com,
	 adobriyan@gmail.com, Vlastimil Babka <vbabka@suse.cz>,
	 "Liam R. Howlett" <Liam.Howlett@oracle.com>,
	surenb@google.com, linux-kernel@vger.kernel.org,
	 linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-mm@kvack.org,  Matthew Wilcox <willy@infradead.org>,
	weixugc@google.com
Subject: Re: [PATCH v9 1/1] mm: report per-page metadata information
Date: Wed, 10 Apr 2024 22:42:38 -0700	[thread overview]
Message-ID: <CANruzcTkXp6W6F7Y=Y1bD0H2Vn5ZVY6FqWsGPDqFOWmkpLW2Cg@mail.gmail.com> (raw)
In-Reply-To: <65b77d3e-d683-1e90-ebb0-5c7758143048@google.com>

[-- Attachment #1: Type: text/plain, Size: 3443 bytes --]

On Wed, Apr 10, 2024 at 4:58 PM David Rientjes <rientjes@google.com> wrote:

> On Tue, 19 Mar 2024, Andrew Morton wrote:
>
> > On Tue, 20 Feb 2024 13:45:58 -0800 Sourav Panda <souravpanda@google.com>
> wrote:
> >
> > > Adds two new per-node fields, namely nr_memmap and nr_memmap_boot,
> > > to /sys/devices/system/node/nodeN/vmstat and a global Memmap 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.
> >
> > I yield to no man in my admiration of changelogging but boy, that's a
> > lot of changelogging.  Would it be possible to consolidate the [0/N]
> > coverletter and the [1/N] changelog into a single thing please?
> >
> > >  Documentation/filesystems/proc.rst |  3 +++
> > >  fs/proc/meminfo.c                  |  4 ++++
> > >  include/linux/mmzone.h             |  4 ++++
> > >  include/linux/vmstat.h             |  4 ++++
> > >  mm/hugetlb_vmemmap.c               | 17 ++++++++++++----
> > >  mm/mm_init.c                       |  3 +++
> > >  mm/page_alloc.c                    |  1 +
> > >  mm/page_ext.c                      | 32 +++++++++++++++++++++---------
> > >  mm/sparse-vmemmap.c                |  8 ++++++++
> > >  mm/sparse.c                        |  7 ++++++-
> > >  mm/vmstat.c                        | 26 +++++++++++++++++++++++-
> > >  11 files changed, 94 insertions(+), 15 deletions(-)
> >
> > And yet we offer the users basically no documentation.  The new sysfs
> > file should be documented under Documentation/ABI somewhere and
> > perhaps we could prepare some more expansive user-facing documentation
> > elsewhere?
> >
>
> Sourav, is it possible to refresh this series into a v10 on top of the
> latest upstream kernel with a single condensed changelog that details the
> current behavior, what extension this is adding, and how it is generally
> useful?
>
> As noted here, the cover letter has great material that discusses the
> rationale for this change but would be lost if only this patch is merged.
> So typically the cover letter material gets concatenated into the
> changelog, but in this case there's a lot of overlap.
>
> A single patch that includes a succinct changelog would be awesome.
>
> And then the requested documentation in Documentation/ABI either included
> in the same patch or as a second patch in the series?
>
> I don't think the resulting patch series will actually need a cover letter
> after that, it will be able to stand on its own.
>

Thanks David, I will send v10 soon.


>
> > I'd like to hear others' views on the overall usefulness/utility of this
> > change, please?
> >
>
> Likely true for all hyperscalers, the immediate use case that this could
> be applied to is to track boot memory overhead and any regression over
> time (across kernel upgrades, firmware upgrades, etc) that may change the
> amount of total memory available.  We'd want to subtract out the boot
> overhead that we know about (like struct page here) and then alert on any
> regression where we're losing memory from reboot to reboot for any reason.
>
> This increased visibility into boot memory overhead allows us to create a
> mechanism to track changes over time when otherwise that attribution of
> that memory is not available.
>

[-- Attachment #2: Type: text/html, Size: 4436 bytes --]

  reply	other threads:[~2024-04-11  5:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-20 21:45 [PATCH v9 0/1] " Sourav Panda
2024-02-20 21:45 ` [PATCH v9 1/1] " Sourav Panda
2024-02-26 18:12   ` Wei Xu
2024-03-13 22:37     ` Pasha Tatashin
2024-03-13 22:40   ` Pasha Tatashin
2024-03-19 14:25     ` Pasha Tatashin
2024-03-19 21:33   ` Andrew Morton
2024-04-10 23:58     ` David Rientjes
2024-04-11  5:42       ` Sourav Panda [this message]
2024-04-12 17:04     ` Pasha Tatashin

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='CANruzcTkXp6W6F7Y=Y1bD0H2Vn5ZVY6FqWsGPDqFOWmkpLW2Cg@mail.gmail.com' \
    --to=souravpanda@google.com \
    --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=hannes@cmpxchg.org \
    --cc=ivan@cloudflare.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mike.kravetz@oracle.com \
    --cc=muchun.song@linux.dev \
    --cc=pasha.tatashin@soleen.com \
    --cc=rafael@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rientjes@google.com \
    --cc=rppt@kernel.org \
    --cc=shakeelb@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox