[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201002042331.34086.elendil@planet.nl>
Date: Thu, 4 Feb 2010 23:31:31 +0100
From: Frans Pop <elendil@...net.nl>
To: David Rientjes <rientjes@...gle.com>
Cc: riel@...hat.com, l.lunak@...e.cz, balbir@...ux.vnet.ibm.com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org, kosaki.motohiro@...fujitsu.com,
npiggin@...e.de, jkosina@...e.cz
Subject: Re: Improving OOM killer
David Rientjes wrote:
> It's clear that the forkbomb threshold would need to be definable from
> userspace and probably default to something high such as 1000.
>
> Keep in mind that we're in the oom killer here, though. So we're out of
> memory and we need to kill something; should Apache, Oracle, and postgres
> not be penalized for their cost of running by factoring in something like
> this?
>
> (lowest rss size of children) * (# of first-generation children) /
> (forkbomb threshold)
Shouldn't fork bomb detection take into account the age of children?
After all, long running processes with a lot of long running children are
rather unlikely to be runaway fork _bombs_.
Children for desktop environments are more likely to be long running than
e.g. a server process that's being DOSed.
The goal of the OOM killer is IIUC trying to identify the process thats
causing the immediate problem so in this example it should prefer latter.
Cheers,
FJP
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists