On Sun, Jul 26, 2026 at 10:34:57PM -0400, Aaron Tomlin wrote:
Modify the "kmem" command to query and display the
migration type of
pages and page blocks:
- Appending the migration type string (e.g., Unmovable, Movable,
Reclaimable, HighAtomic, CMA, Isolate) to the output of page flags
in kmem -p
- Showing the migration type for each free area sublist in kmem -f
and kmem -F when multiple lists are present per area
To support this, offsets and sizes for mem_section_usage,
mem_section_usage_pageblock_flags, and zone_pageblock_flags are
retrieved and cached. The pageblock flags bitmap is then parsed to
extract the migration type of each page block, matching the logic in the
Linux kernel buddy allocator.
Hi Tao, Hagio,
Any further thoughts? Thank you.
Kind regards,
--
Aaron Tomlin