lkml.org 
[lkml]   [2009]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.


\
 
 \ /
  Last update: 2009-01-15 01:59    [W:0.380 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site