From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,ziy@nvidia.com,willy@infradead.org,
vbabka@kernel.org,surenb@google.com,rppt@kernel.org,mhocko@suse.com,
ljs@kernel.org,liam@infradead.org,hannes@cmpxchg.org,david@kernel.org,
brendan.jackman@linux.dev,evanfengff@gmail.com,akpm@linux-foundation.org
Subject: + tools-mm-page_owner_sort-fix-slab-allocator-labelling.patch added to mm-new branch
Date: Tue, 24 Nov 2026 18:11:03 -0800 [thread overview]
Message-ID: <20261125021104.4A27C1F000C4@smtp.kernel.org> (raw)
In-Reply-To: <20261117214947.13471-1-evanfengff@gmail.com>
The patch titled
Subject: tools/mm/page_owner_sort: fix slab allocator labelling
has been added to the -mm mm-new branch. Its filename is
tools-mm-page_owner_sort-fix-slab-allocator-labelling.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/tools-mm-page_owner_sort-fix-slab-allocator-labelling.patch
This patch will later appear in the mm-new branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews. Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.
The mm-new branch of mm.git is not included in linux-next
If a few days of testing in mm-new is successful, the patch will me moved
into mm.git's mm-unstable branch, which is included in linux-next
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 various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Yifan Feng <evanfengff@gmail.com>
Subject: tools/mm/page_owner_sort: fix slab allocator labelling
Date: Tue, 17 Nov 2026 13:49:47 -0800
page_owner_sort labels a page as allocated by slab when the page flags in
the "PFN" line contain "slab". Since commit 46df8e73a4a3 ("mm: free up
PG_slab") slab is a page type and is not printed there any more, so slab
pages are reported as allocated by OTHERS.
Also look for the slab page allocation in the stack trace, as is done for
vmalloc. The frame is new_slab(), or allocate_slab() when new_slab() is
inlined, as in the example in Documentation/mm/page_owner.rst. Slab pages
allocated before page_owner is initialised have no stack trace and are
still not labelled.
Link: https://patch.msgid.link/20261117214947.13471-1-evanfengff@gmail.com
Fixes: 46df8e73a4a3 ("mm: free up PG_slab")
Signed-off-by: Yifan Feng <evanfengff@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: David Hildenbrand <david@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Brendan Jackman <brendan.jackman@linux.dev>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Lorenzo Stoakes <ljs@kernel.org>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
tools/mm/page_owner_sort.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/tools/mm/page_owner_sort.c~tools-mm-page_owner_sort-fix-slab-allocator-labelling
+++ a/tools/mm/page_owner_sort.c
@@ -489,7 +489,8 @@ static int get_allocator(const char *buf
if (strstr(migrate_info, "CMA"))
allocator |= ALLOCATOR_CMA;
- if (strstr(migrate_info, "slab"))
+ if (strstr(migrate_info, "slab") || strstr(buf, "new_slab") ||
+ strstr(buf, "allocate_slab"))
allocator |= ALLOCATOR_SLAB;
tmp = strstr(buf, "__vmalloc_node_range");
if (tmp) {
_
Patches currently in -mm which might be from evanfengff@gmail.com are
mm-damon-core-fix-damos_walk-hang-with-zero-watermarks-interval.patch
mm-damon-core-do-not-overwrite-wmarksactivated-in-damos_commit.patch
tools-mm-page_owner_sort-fix-slab-allocator-labelling.patch
prev parent reply other threads:[~2026-11-25 2:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 21:49 [PATCH] tools/mm/page_owner_sort: fix slab allocator labelling Yifan Feng
2026-11-25 2:11 ` Andrew Morton [this message]
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=20261125021104.4A27C1F000C4@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=brendan.jackman@linux.dev \
--cc=david@kernel.org \
--cc=evanfengff@gmail.com \
--cc=hannes@cmpxchg.org \
--cc=liam@infradead.org \
--cc=ljs@kernel.org \
--cc=mhocko@suse.com \
--cc=mm-commits@vger.kernel.org \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=vbabka@kernel.org \
--cc=willy@infradead.org \
--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 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.