From: Muchun Song <muchun.song@linux.dev>
To: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Memory Management List <linux-mm@kvack.org>,
cerasuolodomenico@gmail.com, Johannes Weiner <hannes@cmpxchg.org>,
Joel Granados <j.granados@samsung.com>,
lizhijian@fujitsu.com, Nhat Pham <nphamcs@gmail.com>,
David Rientjes <rientjes@google.com>,
Mike Rapoport <rppt@kernel.org>,
Sourav Panda <souravpanda@google.com>,
Vlastimil Babka <vbabka@suse.cz>,
Matthew Wilcox <willy@infradead.org>
Subject: Re: [PATCH v2 3/3] mm: don't account memmap per node
Date: Thu, 8 Aug 2024 10:59:00 +0800 [thread overview]
Message-ID: <E5F2A1F6-DD29-4FD8-B4AA-2CA917F6E89F@linux.dev> (raw)
In-Reply-To: <20240807211929.3433304-4-pasha.tatashin@soleen.com>
> On Aug 8, 2024, at 05:19, Pasha Tatashin <pasha.tatashin@soleen.com> wrote:
>
> Currently, when memory is hot-plugged or hot-removed the accounting is
> done based on the assumption that memmap is allocated from the same node
> as the hot-plugged/hot-removed memory, which is not always the case.
>
> In addition, there are challenges with keeping the node id of the memory
> that is being remove to the time when memmap accounting is actually
> performed: since this is done after remove_pfn_range_from_zone(), and
> also after remove_memory_block_devices(). Meaning that we cannot use
> pgdat nor walking though memblocks to get the nid.
>
> Given all of that, account the memmap overhead system wide instead.
Hi Pasha,
You've changed it to vm event mechanism. But I found a comment (below) say
"Counters should only be incremented". I do not know why it has such a rule
sice 2006. Now the rule should be changed, is there any effect to users of
/proc/vmstat?
/*
* Light weight per cpu counter implementation.
*
* Counters should only be incremented and no critical kernel component
* should rely on the counter values.
*
* Counters are handled completely inline. On many platforms the code
* generated will simply be the increment of a global address.
*/
Muchun,
Thanks.
next prev parent reply other threads:[~2024-08-08 2:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-07 21:19 [PATCH v2 0/3] Fixes for memmap accounting Pasha Tatashin
2024-08-07 21:19 ` [PATCH v2 1/3] mm: update the memmap stat before page is freed Pasha Tatashin
2024-08-07 21:19 ` [PATCH v2 2/3] mm: don't account memmap on failure Pasha Tatashin
2024-08-07 21:19 ` [PATCH v2 3/3] mm: don't account memmap per node Pasha Tatashin
2024-08-08 2:59 ` Muchun Song [this message]
2024-08-08 4:04 ` Pasha Tatashin
2024-08-08 5:35 ` Yosry Ahmed
2024-08-08 14:37 ` Pasha Tatashin
2024-08-07 23:00 ` [PATCH v2 0/3] Fixes for memmap accounting Dan Williams
2024-08-08 15:23 ` 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=E5F2A1F6-DD29-4FD8-B4AA-2CA917F6E89F@linux.dev \
--to=muchun.song@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=cerasuolodomenico@gmail.com \
--cc=hannes@cmpxchg.org \
--cc=j.granados@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lizhijian@fujitsu.com \
--cc=nphamcs@gmail.com \
--cc=pasha.tatashin@soleen.com \
--cc=rientjes@google.com \
--cc=rppt@kernel.org \
--cc=souravpanda@google.com \
--cc=vbabka@suse.cz \
--cc=willy@infradead.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
all inboxes | Powered by JetHome®