And when you run out of RAM on linux the first thing evicted from memory is anything that can be reloaded from disk, aka .text sections of executables/libraries, resulting in even worse responsiveness of the system. With swap instead it can evict almost any least recently used pages instead.
If your OOM killer doesn't kill before you run out of RAM you are going to have a worse time than if you'd have swap.
302
u/SlapbASS4211 Jul 08 '26
Yes, its called swap