lkml.org 
[lkml]   [2009]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch -mm v2] mm: introduce oom_adj_child
On Mon, 3 Aug 2009, KAMEZAWA Hiroyuki wrote:

> > You can't recalculate it if all the remaining threads have a different
> > oom_adj value than the effective oom_adj value from the thread that is now
> > exited.
>
> Then, crazy google apps pass different oom_adjs to each thread ?
> And, threads other than thread-group-leader modifies its oom_adj.
>

Nope, but I'm afraid you've just made my point for me: it shows that
oom_adj really isn't sanely used as a per-thread attribute and actually
only represents a preference on oom killing a quantity of memory in all
other cases other than vfork() -> change /proc/pid-of-child/oom_adj ->
exec() for which we now appropriately have /proc/pid/oom_adj_child for.

Thanks.


\
 
 \ /
  Last update: 2009-08-03 10:11    [W:0.050 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site