alt.hn

6/18/2026 at 7:36:51 PM

Stop making swap partitions–use swap files instead

https://gist.github.com/joshenders/c4960cec9c63a7b7d68ffa9543356c43

by jenders

6/19/2026 at 3:44:13 AM

Anything that does

  create file
  chmod 0600 file
should be

  umask 077
  create file

by eqvinox

6/19/2026 at 3:22:28 PM

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.

by SeriousM

6/19/2026 at 10:10:01 AM

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

by _davide_

6/19/2026 at 2:46:04 PM

Where do you live ? Must be some magical place where RAM is cheap !

by malkocoglu

6/18/2026 at 11:29:40 PM

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.

by avadodin