Re: [PATCH v6] zswap: memcontrol: implement zswap writeback disabling

From: Nhat Pham
Date: Wed Dec 20 2023 - 19:50:43 EST


On Wed, Dec 20, 2023 at 4:24 PM Yosry Ahmed <yosryahmed@xxxxxxxxxx> wrote:
>
> We can agree to disagree here, I am not trying to block this anyway.
> But let's at least document this in the commit message/docs/code
> (wherever it makes sense) -- that recurrent failures (e.g.
> incompressible memory) may keep going back to zswap only to get
> rejected, so workloads prone to this may observe some reclaim
> inefficiency.

I'll add the following caveat:

Note that if the store failures are recurring (for e.g if the pages are
incompressible), users can observe reclaim inefficiency after disabling
writeback (because the same pages might be rejected again and again).

to the zswap documentation and the cgroup documentation then? I'll
repeat this caveat in both places for self-containment purposes.