Re: [patch -mm v2 04/10] oom: remove special handling for pagefault ooms

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

 



On Wed, 3 Mar 2010, KAMEZAWA Hiroyuki wrote:

> memory_cgroup_out_of_memory() kills a task. and return VM_FAULT_OOM then,
> page_fault_out_of_memory() kills another task.
> and cause panic if panic_on_oom=1.
> 

If mem_cgroup_out_of_memory() has returned, then it has already killed a 
task that will have TIF_MEMDIE set and therefore make the VM_FAULT_OOM oom 
a no-op.  If the oom killed task subsequently returns VM_FAULT_OOM, we 
better panic because we've fully depleted memory reserves and no future 
memory freeing is guaranteed.

--
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/ .
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]