Re: [RFC PATCH 0/2] zswap: fix placement inversion in memory tiering systems

From: Nhat Pham
Date: Sat Mar 29 2025 - 18:17:31 EST


On Sat, Mar 29, 2025 at 3:13 PM Nhat Pham <nphamcs@xxxxxxxxx> wrote:
>
> Good question, yeah the knob is to maintain the old behavior :) It
> might not be optimal, or even advisable, for all set up.
>
> For hosts with node-based memory tiering, then yeah it's a good idea
> in general, but I don't quite know how to have information about that
> from the kernel's perspective.
>
> >
> > Or maybe if there's a way to tell the "tier" of the node we can prefer to allocate from the same "tier"?
>
> Is there an abstraction of the "tier" that we can use here?

Maaaybe "struct memory_tier" (memory-tiers.c)? Lemme take a look at that...