HN.zip

Swap, ZRAM, Zswap and Hibernate on NixOS

16 points by speckx - 3 comments
gucci-on-fleek [3 hidden]5 mins ago
I agree with everything else here, but swap files on btrfs should probably be avoided whenever possible [0].

[0]: https://btrfs.readthedocs.io/en/latest/Swapfile.html

ciferkey [3 hidden]5 mins ago
Right, you are good to do swap files on btrfs since linux 5.0 or so as long as you follow some rules. Disko thankfully covers all those details for you, but I shouldn't have skipped over that in the piece. I'll make an update when I get a chance.
eccgecko [3 hidden]5 mins ago
Thanks for this. So weird though - I literally spent the better part of the weekend reading and learning all about the differences between zram and zswap and ultimately deciding to switch out my previous zram config for zswap on my NixOS system! So seeing this pop up on my hackernews feed felt a bit spooky…