Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Vlastimil Babka (SUSE)" <vbabka@kernel.org>
To: Zhen Ni <zhen.ni@easystack.cn>, akpm@linux-foundation.org
Cc: surenb@google.com, mhocko@suse.com, jackmanb@google.com,
	hannes@cmpxchg.org, ziy@nvidia.com, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v12 2/4] mm/page_owner: add NUMA node filter
Date: Tue, 7 Jul 2026 17:30:19 +0200	[thread overview]
Message-ID: <dbf1c4d4-7a7f-4b7f-b830-45be97ac4636@kernel.org> (raw)
In-Reply-To: <20260707115411.1714314-3-zhen.ni@easystack.cn>

On 7/7/26 13:54, Zhen Ni wrote:
> Add NUMA node filtering functionality to page_owner to allow filtering
> pages by specific NUMA node(s). This is useful for NUMA-aware memory
> allocation analysis and debugging.
> 
> The filter supports flexible input formats:
> - Single node: nid=0
> - Multiple nodes: nid=0,2,3
> - Node range: nid=0-3
> - Mixed format: nid=0,2-4,7
> 
> Example usage:
>   # Using the page_owner_filter tool (recommended)
>   ./page_owner_filter -n 0-3
>   ./page_owner_filter -m stack_handle -n 0,2-4,7
> 
> The implementation uses per-file-descriptor filter state stored in
> file->private_data, allowing each opener to have independent filter
> configuration. It uses nodemask_t for efficient multi-node filtering and
> nodelist_parse() for flexible input parsing. Node validity is verified
> using nodes_subset() to reject nodes without memory.
> 
> Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
> Tested-by: Zi Yan <ziy@nvidia.com>
> Acked-by: Zi Yan <ziy@nvidia.com>

Reviewed-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>



  reply	other threads:[~2026-07-07 15:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 11:54 [PATCH v12 0/4] mm/page_owner: add per-fd filter infrastructure for print_mode and NUMA filtering Zhen Ni
2026-07-07 11:54 ` [PATCH v12 1/4] mm/page_owner: add print_mode filter Zhen Ni
2026-07-07 15:27   ` Vlastimil Babka (SUSE)
2026-07-07 15:31     ` Zi Yan
2026-07-07 16:02       ` Zi Yan
2026-07-07 11:54 ` [PATCH v12 2/4] mm/page_owner: add NUMA node filter Zhen Ni
2026-07-07 15:30   ` Vlastimil Babka (SUSE) [this message]
2026-07-07 15:54   ` Zi Yan
2026-07-07 11:54 ` [PATCH v12 3/4] tools/mm: add page_owner_filter userspace tool Zhen Ni
2026-07-07 15:36   ` Vlastimil Babka (SUSE)
2026-07-07 16:13   ` Zi Yan
2026-07-07 11:54 ` [PATCH v12 4/4] mm/page_owner: document page_owner filter Zhen Ni
2026-07-07 15:37   ` Vlastimil Babka (SUSE)
2026-07-07 16:13   ` Zi Yan

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=dbf1c4d4-7a7f-4b7f-b830-45be97ac4636@kernel.org \
    --to=vbabka@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=jackmanb@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=surenb@google.com \
    --cc=zhen.ni@easystack.cn \
    --cc=ziy@nvidia.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