Re: [PATCH RESEND 2/2] mm/ksm: Use precise linear_page_index instead of the whole address space
From: David Hildenbrand (Arm)
Date: Thu Jul 09 2026 - 05:05:45 EST
On 7/9/26 05:10, 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.
>
> Ok, I'm going to resend this after that referenced patch is upstream.
Alternatively, just mention that we now have linear_page_index available that we
can use here, without referring to the other patch/commit.
That would probably be cleanest.
--
Cheers,
David