Better HN
topnewbestaskshowjobs
Log inSign up

rhnDN1

2 karma · joined Mar 24, 2026 (8mo ago) · 1 submissions

Submissions

comment 8mo ago · link · parent

From the linked comment Zswap appears to write decompressed pages to disk. I assume Chesterton's fence applies, but why not write them compressed to disk and decompress when/if they need to be loaded back?

> After the folio has been decompressed into the swap cache, the compressed version stored by zswap can be freed.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...