Re: [PATCH v5 4/4] mm: Introduce per-thpsize swapin control policy

From: Christoph Hellwig
Date: Mon Jul 29 2024 - 12:11:56 EST


On Mon, Jul 29, 2024 at 04:52:30AM +0100, Matthew Wilcox wrote:
> I strongly disagree. Use the same sysctl as the other anonymous memory
> allocations.

I agree with Matthew here.

We also really need to stop optimizing for this weird zram case and move
people to zswap instead after fixing the various issues. A special
block device that isn't really a block device and needs various special
hooks isn't the right abstraction for different zwap strategies.