Re: [PATCH v6 0/6] ksm: support tracking KSM-placed zero-pages

From: David Hildenbrand
Date: Thu Mar 30 2023 - 00:48:10 EST


On 29.03.23 00:38, Andrew Morton wrote:
On Fri, 10 Feb 2023 09:15:22 +0800 (CST) <yang.yang29@xxxxxxxxxx> wrote:

The core idea of this patch set is to enable users to perceive the number of any
pages merged by KSM, regardless of whether use_zero_page switch has been turned
on, so that users can know how much free memory increase is really due to their
madvise(MERGEABLE) actions. But the problem is, when enabling use_zero_pages,
all empty pages will be merged with kernel zero pages instead of with each
other as use_zero_pages is disabled, and then these zero-pages are no longer
monitored by KSM.

We appear to have some outstanding activity on this quite old patchset.
From my notes:

- An unresponded-to question from Claudia:
https://lkml.kernel.org/r/20230307192421.30ab869c@p-imbrenda

- Hoping for overall review from David

I already shared some feedback in [1]. I think we should try to simplify this handling, as proposed in that mail. Still waiting for a reply.

[1] https://lore.kernel.org/all/9d7a8be3-ee9e-3492-841b-a0af9952ef36@xxxxxxxxxx/

--
Thanks,

David / dhildenb