Re: Improving OOM killer

From: David Rientjes
Date: Tue Feb 09 2010 - 22:10:24 EST


On Fri, 5 Feb 2010, Oliver Neukum wrote:

> > That's what we're trying to do, we can look at the shear number of
> > children that the parent has forked and check for it to be over a certain
> > "forkbombing threshold" (which, yes, can be tuned from userspace), the
> > uptime of those children, their resident set size, etc., to attempt to
> > find a sane heuristic that penalizes them.
>
> Wouldn't it be saner to have a selection by user, so that users that
> are over the overcommit limit are targeted?
>

It's rather unnecessary for the forkbomb case because then it would
unfairly penalize any user that runs lots of tasks. The forkbomb handling
code is really to prevent either user error, bugs in the application, or
maliciousness. The goal isn't necessarily to kill anything that forks an
egregious amount of tasks (which is why we always prefer a child with a
seperate address space than a parent, anyway) but rather to try to make
sure the system is still usable and recoverable.
--
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/