logoalt Hacker News

yjftsjthsd-hyesterday at 3:18 PM1 replyview on HN

> and zswap sends out compressed pages to swap.

The article says they want to avoid swap hitting disk, so that seems counterproductive.


Replies

cogman10yesterday at 3:25 PM

When you do zram, what happens is the pages sent to zram are compressed. But when those compressed pages need to be evicted to swap, they are decompressed before being sent there. It's not helping you to avoid hitting the disk, it's writing more to the disk.

Zswap will still compress pages in ram. It only evicts to the disk when the in memory swap pool is filled. The difference being that the pages swapped to disk remain compressed on their way there.

show 2 replies