linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Sourav Panda <souravpanda@google.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: corbet@lwn.net, rafael@kernel.org, akpm@linux-foundation.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, vbabka@suse.cz,  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,  willy@infradead.org
Subject: Re: [PATCH v2 1/1] mm: report per-page metadata information
Date: Thu, 19 Oct 2023 09:15:10 -0700	[thread overview]
Message-ID: <CANruzcRuozhJFmwdfvJF+BiZraHcwiP9gygdsRDJ3KBpowj=OA@mail.gmail.com> (raw)
In-Reply-To: <2023101824-ventricle-hacked-6450@gregkh>

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

Hi Greg,

Thank you very much for reviewing my patch. I removed the other style
errors pointed by checkpatch.pl but missed this one. My bad! I will fix it
in version 3.

With regards,
Sourav Panda

On Wed, Oct 18, 2023 at 12:52 AM Greg KH <gregkh@linuxfoundation.org> wrote:

> On Tue, Oct 17, 2023 at 05:55:48PM -0700, Sourav Panda wrote:
> > Adds a new per-node PageMetadata field to
> > /sys/devices/system/node/nodeN/meminfo
> > 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.
> >
> > 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. In contrast to
> > most other memory consumption statistics, per-page metadata might not
> > be included in MemTotal. For example, MemTotal does not include memblock
> > allocations but includes buddy allocations. While on the other hand,
> > per-page metadata would include both memblock and buddy allocations.
> >
> > This memory depends on build configurations, machine architectures, and
> > the way system is used:
> >
> > Build configuration may include extra fields into "struct page",
> > and enable / disable "page_ext"
> > Machine architecture defines base page sizes. For example 4K x86,
> > 8K SPARC, 64K ARM64 (optionally), etc. The per-page metadata
> > overhead is smaller on machines with larger page sizes.
> > System use can change per-page overhead by using vmemmap
> > optimizations with hugetlb pages, and emulated pmem devdax pages.
> > Also, boot parameters can determine whether page_ext is needed
> > to be allocated. This memory can be part of MemTotal or be outside
> > MemTotal depending on whether the memory was hot-plugged, booted with,
> > or hugetlb memory was returned back to the system.
> >
> > Suggested-by: Pasha Tatashin <pasha.tatashin@soleen.com>
> > Signed-off-by: Sourav Panda <souravpanda@google.com>
> > Change-Id: I4351791c9f4c1e9759cbd8e646e808565dbb595f
>
> checkpatch.pl should have said that "Change-Id:" should be removed, why
> didn't you run this on your patch before submitting it?
>
> thanks,
>
> greg k-h
>

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

  reply	other threads:[~2023-10-19 16:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-18  0:55 [PATCH v2 0/1] " Sourav Panda
2023-10-18  0:55 ` [PATCH v2 1/1] " Sourav Panda
2023-10-18  7:51   ` Greg KH
2023-10-19 16:15     ` Sourav Panda [this message]
2023-10-19 16:22     ` Sourav Panda
2023-10-18 14:08   ` Matthew Wilcox
2023-10-19 16:20     ` Sourav Panda

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='CANruzcRuozhJFmwdfvJF+BiZraHcwiP9gygdsRDJ3KBpowj=OA@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=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=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