Settings

Theme

Stop making swap partitions–use swap files instead

gist.github.com

18 points by jenders 8 days ago · 7 comments

Reader

gucci-on-fleek 8 days ago

Probably not a great idea if you're using btrfs [0].

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

eqvinox 8 days ago

Anything that does

  create file
  chmod 0600 file
should be

  umask 077
  create file
  • SeriousM 7 days ago

    Foe the ones, like me, who didn't know why you recommended that:

    By setting umask 077 first and then creating the file, the file gets created with the correct restrictive permissions (0600) in one step instead leaving the file readable for "everyone" for a moment.

_davide_ 8 days ago

just buy more RAM, it's cheap enough...

avadodin 8 days 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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection