Re: [RFC PATCH v2 0/8] mm: Hot page tracking and promotion infrastructure
From: Gregory Price
Date: Thu Sep 25 2025 - 11:20:12 EST
On Thu, Sep 25, 2025 at 04:00:58PM +0100, Jonathan Cameron wrote:
> Now, if we can put this into a special pool where it is acceptable to drop the writes
> and return poison (so the application crashes) then that may be fine.
>
> Or block writes. Running compressed memory as read only CoW is one way to
> avoid this problem.
>
This is an interesting thought. If you drop a write and return poison,
can you instead handle the poison message as a fault and promote on
fault? Then you might just be able to turn this whole thing into a
zswap backend that promotes on write.
Then you don't particular care about stronger isolation controls
(except maybe keeping kernel memory out of those regions).
~Gregory