Stop making swap partitions–use swap files instead

(gist.github.com)

16 points | by jenders 18 hours ago

4 comments

  • eqvinox 10 hours ago
    Anything that does

      create file
      chmod 0600 file
    
    should be

      umask 077
      create file
  • gucci-on-fleek 9 hours ago
    Probably not a great idea if you're using btrfs [0].

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

    • eqvinox 6 hours ago
      I wonder if it works [reliably] on ZFS…
  • _davide_ 3 hours ago
    just buy more RAM, it's cheap enough...
  • avadodin 14 hours ago
    Thank you for your opinion, Bill.

    Just kidding, I agree with the sentiment. It's 2026 not 1976. You don't need separate physical partitions for most use cases.