Re: Improving OOM killer

Oliver Neukum
2010-02-07T22:58:07Z

Am Donnerstag, 4. Februar 2010 22:39:08 schrieb David Rientjes:
> > If we really want kernel to detect forkbombs (*), we'd have to establish
> > completely separate infrastructure for that (with its own knobs for tuning
> > and possibilities of disabling it completely).
> >
>
> 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?

Regards
Oliver