2 ms·
Maybe now but back when we used HDDs having no swap was much better than having swap on desktop Linux. No swap, and the OOM kicks in and (sometimes) kills the o
by IshKebab 4y ago
Maybe now but back when we used HDDs having no swap was much better than having swap on desktop Linux. No swap, and the OOM kicks in and (sometimes) kills the offending program. Enable swap and when you run out of memory your computer just grinds to a complete halt requiring a hard reset.
I actually have been forced to go back to desktop Linux again recently after almost 20 years of avoiding it. It's pretty disappointing to see that Linux's OOM handling behaviour is still completely broken (at least on desktop). Windows and Mac behave much more sanely when you run out of memory, gradually slowing down rather than suddenly freezing for like a minute while it figures out what to kill.
I did eventually find a Reddit thread that suggested enabling zram (compressed ram swap disk) which does appear to have helped but why isn't that the default? Also I now get a kernel panic about once a week but that could be unrelated.