4 ms·
Same here. I've been using a desktop with 4GB RAM (considered low-end these days, many phones have that), but no swap. Doing so for years. No big issues other
by RetroTechie 3y ago
Same here. I've been using a desktop with 4GB RAM (considered low-end these days, many phones have that), but no swap.
Doing so for years. No big issues other than the occasional website (scripts, use of top-heavy web frameworks or whatever) causing runaway RAM usage. Local apps (including some older games, electronics design stuff) run fine.
Most sensible argument for using swap I've seen is a memory leak on server hardware, where having swap keeps the server at least running, buying the admin time to figure out what's going on.
On my PC, if an app leaks memory, I want to see free RAM going down to the point where something will crash - asap (no swap). Giving me a good sense which app (or website) was the culprit.
Not (with swap), the whole system getting slower & slower, but with a delayed fuse & much fuzzier clues about which app caused the problem.
Pick workflow + OS + apps such that working set fits RAM in the machine, and be happy. If needed, change OS / apps / workflow, or add more RAM.
Not: take app that needs 16 GB to run acceptable, run it on 4 GB machine, and use swap to somehow make it work while the user experience makes you cry.
So, imho: no need for swap on modern machines. Unless (maybe!) it concerns an internet facing server & uptime is critical.
- fernvenue 3y agoWow, so clear instructions and conclusions, thanks!