News for hackers. Stuff that matters.
Re:Stop making swap partitions–use swap files instead by avadodin on Thursday June 18, 2026 @07:29PM (#48592995)
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.

Re:Stop making swap partitions–use swap files instead by eqvinox on Thursday June 18, 2026 @11:44PM (#48594555)
Anything that does

  create file
  chmod 0600 file
should be

  umask 077
  create file
Re:Stop making swap partitions–use swap files instead by SeriousM on Friday June 19, 2026 @11:22AM (#48599659)
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.

Re:Stop making swap partitions–use swap files instead by gucci-on-fleek on Friday June 19, 2026 @12:58AM (#48594917)
Probably not a great idea if you're using btrfs [0].

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

Re:Stop making swap partitions–use swap files instead by eqvinox on Friday June 19, 2026 @03:59AM (#48596043)
I wonder if it works [reliably] on ZFS…
Re:Stop making swap partitions–use swap files instead by _davide_ on Friday June 19, 2026 @06:10AM (#48596875)
just buy more RAM, it's cheap enough...
Re:Stop making swap partitions–use swap files instead by malkocoglu on Friday June 19, 2026 @10:46AM (#48599221)
Where do you live ? Must be some magical place where RAM is cheap !