Comment by teravor
3 days ago
whether to use zram or zswap depends on what your intentions are, hibernation doesn't matter (use priority)
if your intention is to have enough compressed ram such that you never reach the limit (compression ratios are usually around 3 with zstd) you can allocate over 100% of your ram in zram. then have 100% of your ram as a swap partition for hibernation. this works extremely well but should you exhaust your zram swap serious problems may begin.
zswap will be using your SSD and putting wear on it and also imposing latency spikes on old page access, only makes sense if you are certain your swap usage may spike too high in my opinion.
No comments yet
Contribute on Hacker News ↗