2 ms·
Why is Linux not meant to be ran without swap? In 2021? I've never heard of this. I've operated massive clusters of thousands of hosts with no swap enabled with
by xyzzy_plugh 6y ago
Why is Linux not meant to be ran without swap? In 2021? I've never heard of this. I've operated massive clusters of thousands of hosts with no swap enabled with zero hiccups.
Swap comes with a lot of caveats -- when a performance-critical process begins swapping it can on occasion be more useful to just let it OOM instead.
My personal desktop has 64GB of memory, with no swap enabled. Why would I want swap it I don't need more than that?
- axaxs 6y agoYou don't need it. Linux works fine without swap, given ample memory. In my experience, even with ample swap, when Linux gets memory starved it goes haywire anyways. I'm an ex linux sysadmin, and haven't run swap on my personal systems in years.