3 ms·
An alternative is zswap https://old.reddit.com/r/linux/comments/11dkhz7/zswap_vs_zram_in_2023_whats_the_actual_practical/ https://old.reddit.com/r/linux/comment
by kragen 1y ago
An alternative is zswap https://old.reddit.com/r/linux/comments/11dkhz7/zswap_vs_zram_in_2023_whats_the_actual_practical/ https://old.reddit.com/r/linux/comments/11dkhz7/zswap_vs_zra... which I believe, despite the name, can also compress RAM without hitting disk.
- mscdex 1y agoIt's only an alternative if you have a backing swap device. zram does not have this requirement, so (aside from using no compression) it's basically the only solution for some scenarios (e.g. using entire disk(s) for ZFS).
- kragen 1y agoCan't you use a ramdisk as your backing swap device?
- PhageGenerator 1y agoUsing a ramdisk for zswap is basically just zram with extra steps.
- kragen 1y agoExtra steps are fine if the result works better.
- Ferret7446 1y agoIt is not the same at all. The swapping algorithm can make a big difference in performance, for better or worse depending on workload
- RealStickman_ 1y agoZram is just swap but in RAM. It uses the same algorithms as normal swap
- heavyset_go 1y agoIf you use hibernation, I think it also compresses your RAM image for potentially less wear and faster loading/saving
- 1oooqooq 1y agowhy hibernation would not compress to begin with? you're more likely just end up running zstd twice.
- heavyset_go 1y agoSwap isn't compressed by default, hibernation dumps memory to swap
- kasabali 1y agoHibernation uses compression regardless of zswap
- heavyset_go 1y agoThanks for the correction