Re: [PATCH RESEND 2/2] mm/ksm: Use precise linear_page_index instead of the whole address space
From: David Hildenbrand (Arm)
Date: Wed Jul 08 2026 - 04:00:38 EST
On 7/8/26 06:22, xu.xin16@xxxxxxxxxx wrote:
> From: xu xin <xu.xin16@xxxxxxxxxx>
>
> Since an earlier commit introduced the linear_page_index to struct
> ksm_rmap_item[1], allowing for optimizing the RMAP walk, we can use it
> to locate more precisely all processes that hit the KSM page, which will
> decrease a lot of unvalid iterations.
It's awkward to reference a commit by a mailing list link. The other patch is
not upstream yet. Best to wait for that to go in first, so you can properly
reference the commit.
--
Cheers,
David