3 ms·
I always disabled swap on Linux (back when I was using HDDs) because it was completely useless anyway. As soon as you ran out of RAM and it started using swap t
by IshKebab 6y ago
I always disabled swap on Linux (back when I was using HDDs) because it was completely useless anyway. As soon as you ran out of RAM and it started using swap the entire system would grind to a halt and you'd basically have no choice but to restart it, killing all processes rather than just random ones.
There doesn't seem to have been any effort by Linux developers to fix that (e.g. provide a kernel level GUI to let you pick which processes to kill when out of RAM).
- ynik 6y agoUnfortunately disabling swap doesn't really fix the problem you're talking about -- Linux will just grind to a halt trashing the page cache instead.
- vetinari 6y ago> There doesn't seem to have been any effort by Linux developers to fix that (e.g. provide a kernel level GUI to let you pick which processes to kill when out of RAM). There is no and will be no GUI for that, especially considering that many linux devices do not have any. However, that does not mean there is no effort to improve the situation. The main player here is, surprisingly, Facebook. Their effort is going to be integrated into systemd in the form of systemd-oomd and Fedora 34 is going to ship it enabled out of the box (see https://fedoraproject.org/wiki/Changes/EnableSystemdOomd https://fedoraproject.org/wiki/Changes/EnableSystemdOomd).
- IshKebab 6y ago> especially considering that many linux devices do not have any Why not? Many Linux devices don't have keyboards but it supports those perfectly well. I hadn't heard of systemd-oomd, sounds interesting!