Re: [swap tier discussion] Re: [PATCH v3 2/4] mm/zswap: Implement proactive writeback
From: Nhat Pham
Date: Tue Jun 16 2026 - 16:09:10 EST
On Tue, Jun 16, 2026 at 3:54 PM Yosry Ahmed <yosry@xxxxxxxxxx> wrote:
>
> On Tue, Jun 16, 2026 at 11:33 AM Nhat Pham <nphamcs@xxxxxxxxx> wrote:
> >
> > TBH, without vswap, we should not allow setting zswap as its own tier.
> > It's meaningless. Maybe makes it a no-op, and warn users what they're
> > setting is gibberish?
>
> Why? vswap is transparent to the user. Why can't zswap be its own tier?
Without vswap, if you set zswap as its own tier, which phys swap
device should we allocate from for the backing slot? :)
With vswap then it makes sense (and would probably be the "default"
for zswap setup until we enable zswap writeback).