Re: [why oom_adj does not work] Re: Linux killed Kenny, bastard!

From: David Rientjes
Date: Wed Jan 14 2009 - 19:55:53 EST


On Wed, 14 Jan 2009, Evgeniy Polyakov wrote:

> This does not work if processes are short-living and are spawned by the
> parent on demand. If processes have different priority in regards to oom
> condition, this problem can not be solved with existing interfaces
> without changing the application. So effectively there is no solution.
>

Wrong, you can change how the application is forked. Either immediately
adjust /proc/$!/oom_adj or use the adjustment inheritance property and
change /proc/$$/oom_adj to the desired value prior to forking. Thanks.
--
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/