|
|
|
|
|
by jkrejcha
14 days ago
|
|
> These days you can do oom score adjusting, which is not as strong as a pardon. Writing -1000 to /proc/<pid>/oom_score_adj will cause the OOM killer not to consider the process at all :) From the man page proc_pid_oom_score_adj(5) > The value of oom_score_adj is added to the badness score before it is used to determine which task to kill. Acceptable values range from -1000 (OOM_SCORE_ADJ_MIN) to +1000 (OOM_SCORE_ADJ_MAX). [...]. The lowest possible value, -1000, is equivalent to disabling OOM-killing entirely for that task, since it will always report a badness score of 0. |
|