[Devel] Re: [PATCH v4 17/25] skip memcg kmem allocations in specified code regions

Kamezawa Hiroyuki kamezawa.hiroyu at jp.fujitsu.com
Mon Jun 18 05:19:49 PDT 2012


(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 at parallels.com>
> CC: Christoph Lameter<cl at linux.com>
> CC: Pekka Enberg<penberg at cs.helsinki.fi>
> CC: Michal Hocko<mhocko at suse.cz>
> CC: Kamezawa Hiroyuki<kamezawa.hiroyu at jp.fujitsu.com>
> CC: Johannes Weiner<hannes at cmpxchg.org>
> CC: Suleiman Souhlal<suleiman at google.com>

I'm ok with this approach.

Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>





More information about the Devel mailing list