Re: [PATCH RFC] mm: ghost swapfile support for zswap
From: Rik van Riel
Date: Mon Nov 24 2025 - 11:17:31 EST
On Fri, 2025-11-21 at 17:52 -0800, Chris Li wrote:
> On Fri, Nov 21, 2025 at 3:40 AM Johannes Weiner <hannes@xxxxxxxxxxx>
> wrote:
> >
> >
> > Zswap is primarily a compressed cache for real swap on secondary
> > storage. It's indeed quite important that entries currently in
> > zswap
> > don't occupy disk slots; but for a solution to this to be
> > acceptable,
> > it has to work with the primary usecase and support disk writeback.
>
> Well, my plan is to support the writeback via swap.tiers.
>
How would you do writeback from a zswap entry in
a ghost swapfile, to a real disk swap backend?
That is the use case people are trying to solve.
How would your architecture address it?
--
All Rights Reversed.