Re: [PATCH] oom killer (Core)

From: tvrtko . ursulin
Date: Wed Dec 01 2004 - 05:26:05 EST


On 01/12/2004 09:49:03 linux-kernel-owner wrote:

>The oom killer has currently some strange effects when triggered.
>It gets invoked multiple times and the selection of the task to kill
>does not take processes into account which fork a lot of child processes.
>
>The patch solves this by
>- Preventing reentrancy
>- Checking for memory threshold before selection and kill.
>- Taking child processes into account when selecting the process to kill

Ah, again. :) Rusty Lynch and me tried something similar at leat twice but
with no avail.

We had a modular OOM killers infrastructure with two new killers. One
would just panic on OOM situation, and other did account for parents which
repeatedly spawned 'bad' children. Some people called it 'a bit right
winged'. :)

Take a look at http://linux.ursulin.net if you are interested. I did not
sync it with the latest kernel since nobody was interested. It worked for
me.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/