4 ms·
Stop making swap partitions–use swap files instead
- avadodin 4mo agoThank 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.
- eqvinox 4mo agoAnything that does create file chmod 0600 file should be umask 077 create file
- SeriousM 4mo agoFoe 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.
- gucci-on-fleek 4mo agoProbably not a great idea if you're using btrfs [0]. [0]: https://btrfs.readthedocs.io/en/latest/Swapfile.html#:~:text=This%20is%20especially%20discouraged%20for%20root%20filesystem https://btrfs.readthedocs.io/en/latest/Swapfile.html#:~:text...
- eqvinox 4mo agoI wonder if it works [reliably] on ZFS…
- _davide_ 4mo agojust buy more RAM, it's cheap enough...
- malkocoglu 4mo agoWhere do you live ? Must be some magical place where RAM is cheap !