4 ms·
This problem is there even if you have no swap at all, so I don't see different devices or zswap helping.
by thraway123412 6y ago
This problem is there even if you have no swap at all, so I don't see different devices or zswap helping.
- raffraffraff 6y ago> This problem Which problem? Yes, there's always disk contention. But if you don't have swap enabled then you won't have pathological swap activity dominating the disk. There are several bad things that happen when you run out of memory. One of them is pathological swapping. Another is loss of disk caches. Another is (eventual) oom. The one that has the most detrimental effect, and typically results in the system having to be reset, is swap activity saturating disk io. Even when you've got fast SSDs, because they're still orders of magnitude slower than memory.
- mrob 6y agoYou still have pathological disk io even with swap disabled because Linux will evict file-backed pages. More aggressive OOM killing is currently the only solution, which is not ideal, but losing one process beats losing all of them. I use earlyoom, and I assume systemd-oomd is something similar.
- thraway123412 6y ago> Which problem? Thrashing and becoming unusable for a long time.