Re: [patch] oom: prevent unnecessary oom kills or kernel panics

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

 



On Thu, 10 Mar 2011, Oleg Nesterov wrote:

> > That leader may exit and leave behind several other
> > threads
> 
> No, it can't.
> 
> More precisely, it can, and it can even exit _before_ this process starts
> to use a lot of memory, then later this process can be oom-killed.
> 
> But, until all threads disappear, the leader can't go away and
> for_each_process() must see it.
> 

for_each_process() sees the parent, but it is filtered because we no 
longer consider threads without an ->mm.  We only want to pass threads 
with valid ->mm pointers to oom_badness(), otherwise it ignores the thread 
anyway.  Please note that Andrey's patch to filter !p->mm is nothing new, 
it's more of a cleanup.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
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]