Re:We're moving away from swap partitions on our Linux servers
by viraptor on Saturday October 15, 2022 @03:41PM
(#33217933)
> The "old rules" for swap were never relevant.
They did make sense in some contexts. Specifically for laptops expected to hibernate you need to preserve the whole ram. Then you need the extra size for whatever your swap was already using. For small ram systems, 2x the memory size was a good rule of thumb.
It stopped making sense when we stopped using swap and filing memory in normal situations.
Re:We're moving away from swap partitions on our Linux servers
by drewg123 on Saturday October 15, 2022 @04:05PM
(#33218132)
Traditional *nix and BSD systems use swap partitions for crashdumps, so giant swap partitions made sense before those systems supported mini dumps. Admins that grew up with those systems are used to the "2xram" rule of thumb.
I just yesterday had to re-partition a FreeBSD kernel test box with 256GB of RAM and a 2GB swap partition because I desperately needed a crashdump and the mini dump would have been 7GB.
Re:We're moving away from swap partitions on our Linux servers
by wlonkly on Saturday October 15, 2022 @06:30PM
(#33219254)
> Why on earth you'd backup swap?
The quotes around "has to", and especially the virus scan, makes me think there's a blanket corporate policy that applies to all files, regardless of file type.
Why on earth you'd backup swap?
Also encrypted swap is pretty easy to setup, then again most distros don't give that option on install.
We have tiny swap, like 1GB, working basically as "early warning" of "hey, this server probably could use few GBs more of RAM". There is very little use for any more swap than that
>I don't think non-cloudy admins realize there are cloudy admins out there with forests of little systems with like 8 GB of ram and 16 GB of storage, so the "old" rules from the 1980s about provision twice your ram as swap would increase the disk required from 16 GB to 32 GB doubling my costs for, essentially, nothing.
The "old rules" for swap were never relevant. But dumb myths die hard.