v2
2026-10-02
move_pages 节点查询提速 · v2
move_pages 统计批量化:用 walk_page_range 走连续页,并将 do_pages_stat 块增大到 512 页。
原始补丁链接
子 Patch(2)
1/2
mm/migrate: walk runs of consecutive pages in do_pages_stat_array()
move_pages() with a NULL node list reports the node of each page. RDMA and KV-cache transfer engines use it to find where large registered buffers live, querying every 4K page of buffers that span hun
2/2
mm/migrate: raise the do_pages_stat() chunk to 512 pages
do_pages_stat() copies the addresses in and the status out in chunks of 16 on the stack, and do_pages_stat_array() walks each chunk on its own. With runs of consecutive pages walked in one go, the wal