[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1002161833360.20350@chino.kir.corp.google.com>
Date: Tue, 16 Feb 2010 18:37:33 -0800 (PST)
From: David Rientjes <rientjes@...gle.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
cc: Andrew Morton <akpm@...ux-foundation.org>,
Rik van Riel <riel@...hat.com>,
Nick Piggin <npiggin@...e.de>,
Andrea Arcangeli <aarcange@...hat.com>,
Balbir Singh <balbir@...ux.vnet.ibm.com>,
Lubos Lunak <l.lunak@...e.cz>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [patch -mm 4/9 v2] oom: remove compulsory panic_on_oom mode
On Wed, 17 Feb 2010, KAMEZAWA Hiroyuki wrote:
> And basically. memcg's oom means "the usage over the limits!!" and does
> never means "resouce is exhausted!!".
>
> Then, marking OOM to zones sounds strange. You can cause oom in 64MB memcg
> in 64GB system.
>
ZONE_OOM_LOCKED is taken system-wide because the result of a memcg oom is
that a task will get killed and free memory, so VM_FAULT_OOM doesn't
require any additional killing if we're oom, it should just retry after
the task has exited. If we remove the zone locking for memcg, it is
possible that pagefaults will race with setting TIF_MEMDIE and two tasks
get killed instead. I guess that's acceptable considering its just as
likely that the memcg will reallocate to the same limit again and cause
VM_FAULT_OOM to rekill.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists