lkml.org 
[lkml]   [2012]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: v3.4-rc2 out-of-memory problems (was Re: 3.4-rc1 sticks-and-crashs)
On Mon, 9 Apr 2012, Colin Cross wrote:

> The point of the lowmem_deathpending patch was to avoid a stutter
> where the cpu would spend its time looping through the tasks due to
> repeated calls to lowmem_shrink instead of processing the kill signal
> to the selected thread.

What did you do to avoid this without CONFIG_PROFILING?

> With this patch, it will still loop through
> tasks until it finds the one that was previously killed and then
> abort. It's possible that the improvements Anton made to the task
> loop reduce the performance impact enough that this whole mess could
> just be dropped (by reverting 1eda516, e5d7965, and 4755b72).
>

I don't understand how calling shrink_slab() from direct reclaim or using
drop_caches manually taking slightly longer because it has to iterate the
tasklist to the point of the killed thread will significantly stall the
thread from exiting.

Much more likely is the killed thread cannot exit because you've killed it
in a lowmem situation without giving it access to memory reserves so that
it may exit quickly as my patch does. That has a higher liklihood of
stalling the exit than doing for_each_process().


\
 
 \ /
  Last update: 2012-04-10 02:35    [from the cache]
©2003-2011 Jasper Spaans