← Back to context

Comment by tancop

5 hours ago

It's not really about hardware offload, the biggest problem with zswap is that it's swap. The rest of the kernel treats it like a fast SSD (which is still incredibly slow compared to RAM) instead of slower memory that needs a bit of special handling on writes.

NUMA maps a lot closer to what compressed RAM actually is. The subsystem is more aware of CRAMs specifics so it can make better decisions about where to put allocations and everything gets faster. And it's less overhead because swap is not really optimized for frequent direct access but for NUMA it's the most basic function.