~hruske Hruške, jabuke, jablane, čežane. » Blog Archive » Who’s afraid of OOM killer
Home Contact Sitemap

Hruške, jabuke, jablane, čežane.

Ste se gdaj vprašali, zakaj Najboljšega soseda nikoli ni doma, ko pridete na obisk?

Who’s afraid of OOM killer

Posted on April 2nd, 2008 in dovhcajt |

Debian still has this annoying feature, that service init script gets symlinked if you upgrade package, so disabling it manually via update-rc.d is still not enough. Trying to solve this and make sshd not run on my laptop with a hack by putting a line like ‘exit 1′ in /etc/default/ssh does settle this. However, I was a bit suprised to see a variable SSHD_OOM_ADJUST, meaning OOM kill priority can be adjusted or even disabled.

Corresponding excerpt from kernel documentation (proc.txt):

2.12 /proc/<pid>/oom_adj – Adjust the oom-killer score
This file can be used to adjust the score used to select which processes
should be killed in an out-of-memory situation. Giving it a high score will
increase the likelihood of this process being killed by the oom-killer. Valid
values are in the range -16 to +15, plus the special value -17, which disables
oom-killing altogether for this process.

This means it shouldn’t happen that your sshd gets shot by OOM killer on Debian … when lenny gets out.

Comments are closed.

Komentarji so izklopljeni