Hacker News new | ask | show | jobs
by draugadrotten 2508 days ago
Read the comment by idoubtit in the thread below to learn how to prioritize:

idoubtit 2 hours ago | unvote [-]

Point 3 is wrong. OOM killing is not random. Each process is given a score according to its memory usage, and the highest score is chosen by the kernel. The way to mark priority in killing is to adjust this score through /proc. All of this is documented in `man 5 proc` from `/proc/[pid]/oom_adj` to `/proc/[pid]/oom_score_adj`. http://man7.org/linux/man-pages/man5/proc.5.html