3 ms·
> how to balance between maintaining the "fail fast" of swap-off and the ability to swap out never used paged with swap-some A monitoring process, like earlyoo
by zzzcpan 7y ago
> how to balance between maintaining the "fail fast" of swap-off and the ability to swap out never used paged with swap-some
A monitoring process, like earlyoom, can do this for you. Also features like cgroups, setrlimit(), prlimit() can help. Last one can even be used to dynamically adjust memory limits per each process and avoid kernel's weird OOM behavior. This is all in accordance with fail fast, which requires monitoring processes that actually deal with all the failings.