[lkml]   [2012]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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<>
> CC: Christoph Lameter<>
> CC: Pekka Enberg<>
> CC: Michal Hocko<>
> CC: Kamezawa Hiroyuki<>
> CC: Johannes Weiner<>
> CC: Suleiman Souhlal<>

I'm ok with this approach.

Reviewed-by: KAMEZAWA Hiroyuki <>

 \ /
  Last update: 2012-06-18 15:01    [W:0.289 / U:0.768 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site