[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4FDF1CE5.90803@jp.fujitsu.com>
Date: Mon, 18 Jun 2012 21:19:49 +0900
From: Kamezawa Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To: Glauber Costa <glommer@...allels.com>
CC: linux-mm@...ck.org, Pekka Enberg <penberg@...nel.org>,
Cristoph Lameter <cl@...ux.com>,
David Rientjes <rientjes@...gle.com>, cgroups@...r.kernel.org,
devel@...nvz.org, linux-kernel@...r.kernel.org,
Frederic Weisbecker <fweisbec@...il.com>,
Suleiman Souhlal <suleiman@...gle.com>,
Pekka Enberg <penberg@...helsinki.fi>,
Michal Hocko <mhocko@...e.cz>,
Johannes Weiner <hannes@...xchg.org>
Subject: Re: [PATCH v4 17/25] skip memcg kmem allocations in specified code
regions
(2012/06/18 19:28), Glauber Costa wrote:
> This patch creates a mechanism that skip memcg allocations during
> certain pieces of our core code. It basically works in the same way
> as preempt_disable()/preempt_enable(): By marking a region under
> which all allocations will be accounted to the root memcg.
>
> We need this to prevent races in early cache creation, when we
> allocate data using caches that are not necessarily created already.
>
> Signed-off-by: Glauber Costa<glommer@...allels.com>
> CC: Christoph Lameter<cl@...ux.com>
> CC: Pekka Enberg<penberg@...helsinki.fi>
> CC: Michal Hocko<mhocko@...e.cz>
> CC: Kamezawa Hiroyuki<kamezawa.hiroyu@...fujitsu.com>
> CC: Johannes Weiner<hannes@...xchg.org>
> CC: Suleiman Souhlal<suleiman@...gle.com>
I'm ok with this approach.
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
--
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