Messages in this thread | | | Date | Wed, 14 Jan 2009 16:54:09 -0800 (PST) | From | David Rientjes <> | Subject | Re: [why oom_adj does not work] Re: Linux killed Kenny, bastard! |
| |
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.
| |