this post was submitted on 04 Nov 2025
13 points (93.3% liked)
Ask
892 readers
84 users here now
Rules
- Be nice
- Posts must be legitimate questions (no rage bait or sea lioning)
- No spam
- NSFW allowed if tagged
- No politics
- For support questions, please go to !newtolemmy@lemmy.ca
founded 7 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
When I started dabbling with FreeBSD over 25 years ago the rule of thumb was to have swap space at least twice the size of your RAM. Then as time went in and I was no longer limited by 32MB, I made a habit of having the same swap space as RAM.
Nowadays it's kind of machine dependent for me. On my daily driver I have a swap partition of roughly half the amount of RAM I have, and the few times when that's not enough I can swapon some swap files on my root FS instead.
At work I stopped using a swap partition, as the 256GB of RAM I install as default won't run out any time soon. When oradb is having a stroke and starts eating up more than it should I add some swap files just to be safe.
That's probably what I should do. I have 16GB of RAM, 2GB of swap, the swap is constantly at full use.
Or maybe I should just add 16 GB of RAM ๐
I have 32GB of RAM which practically never runs out. I'm using a 16GB swap partition, but could've gotten away with much less. I think on the next install I'll just go with the same approach as I have at work servers: No swap partitions, swapon some files on the fly instead if I really need to.