Re: [PATCH] oom killer (Core)

From: Andrea Arcangeli
Date: Sun Dec 05 2004 - 10:24:00 EST


On Sun, Dec 05, 2004 at 02:38:22PM +0100, Thomas Gleixner wrote:
> Andrea provided a quite good fix for the invokation problem. I'm just
> tracking down a different problem which was revieled by his changes.
>
> The selection mechanism is currently taking a couple of things into
> account:
>
> - VM size
> - nice value
> - CPU time
> - owner == root ?
> - CAP_SYS_RAWIO
>
> I found out, that it is neccecary to take the child processes into
> account to detect processes which fork a lot of childs.
>
> The current mechanism rather kills sshd or portmap as they happen to
> have a bigger VM size than the process which forked a lot of childs.

Taking childs into account looks fine to 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/