Thread (31 messages) 31 messages, 4 authors, 2012-07-31

Re: [PATCH 04/10] memcg: skip memcg kmem allocations in specified code regions

From: Kirill A. Shutemov <hidden>
Date: 2012-07-30 12:49:03
Also in: linux-mm, lkml

On Wed, Jul 25, 2012 at 06:38:15PM +0400, 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.
Why not a GFP_* flag?

-- 
 Kirill A. Shutemov

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help