Re: [PATCH] android, lmk: Send SIGKILL before setting TIF_MEMDIE.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed 09-09-15 14:55:59, David Rientjes wrote:
> On Sun, 6 Sep 2015, Tetsuo Handa wrote:
> 
> > It was observed that setting TIF_MEMDIE before sending SIGKILL at
> > oom_kill_process() allows memory reserves to be depleted by allocations
> > which are not needed for terminating the OOM victim.
> > 
> 
> I don't understand what you are trying to fix.  Sending a SIGKILL first 
> does not guarantee that it is handling that signal before accessing memory 
> reserves. 

Yes it doesn't guarantee that but it kicks the task from userspace so
that it cannot deplete the memory reserves from the _userspace_ under
its controll. It still can consume some amount of memory from the kernel
but that shouldn't be under control of the task.
-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]