Re: [RFC PATCH 00/16] mm: add in-memory compression of reclaimed pages
From: nakixii
Date: Tue Nov 17 2026 - 11:12:59 EST
On Mon, Nov 16, 2026 at 06:13:46AM -0800, Nhat Pham wrote:
> What's the motivation of this line of work?
It started as an attempt to get something like the Darwin memory
compressor on Linux: keep reclaimed pages compressed in RAM, fault
them back directly, and push cold data to disk only when needed.
Honestly, your virtual swap series already covers the core of that
(zswap without a backing swapfile, no PTE walks when moving between
backends), so I don't think a separate subsystem is justified.
The parts I still think are worth looking at are restoring directly
from the pool without going through the swap cache, and packing
several compressed objects into one swap slot on writeback. Do you
think the latter would fit as another backend type in vswap, or should
it stay inside zswap writeback?
The numbers in the cover letter are from 6.12 and don't compare
against vswap, so they don't say much about this yet. I'll redo them
on a current tree first.
Thanks,
nakixii