cm0002@literature.cafe to Linux@programming.dev · 3 days agoDebunking zswap and zram mythschrisdown.nameexternal-linkmessage-square5fedilinkarrow-up139
arrow-up139external-linkDebunking zswap and zram mythschrisdown.namecm0002@literature.cafe to Linux@programming.dev · 3 days agomessage-square5fedilink
minus-squareLemmchen@feddit.orglinkfedilinkEnglisharrow-up8·3 days agoSo, is the TL;DR “Don’t use zram. Use zswap only when you want to use swap.”?
minus-squareBjörn@swg-empire.delinkfedilinkarrow-up12·3 days agoMore or less. Zswap is better than zram because it’s integrated with the kernel. Swap in zram is more of a hack. zram can kill your file cache unnecessarily, which leads to more disk reads. Don’t use zram without an oom killer. They’re working on zswap to not require any disk swap at all, basically killing the last reason why one might want to use zram over zswap.
So, is the TL;DR “Don’t use zram. Use zswap only when you want to use swap.”?
More or less.