4 ms·
it seems the latest kernel doesn't use the more complex heuristics that it used to (preserving longer running tasks, for example) and just goes off the proporti
by rcxdude 16y ago
it seems the latest kernel doesn't use the more complex heuristics that it used to (preserving longer running tasks, for example) and just goes off the proportion of memory used by the process, with a 3% bonus for the superuser. However it does also adjust the score by the value in /proc/pid/oom_score_adj (which can completly disable or completely favour the process) and so you could probably write a userspace daemon which updated this value based on whatever heuristics you want (although you'd have to do it before the OOM condition).