4 ms·
> 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 w
by viraptor 4y ago
> 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.
- drewg123 4y agoTraditional *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.