From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [PATCH 05/11] Add a __GFP_KMEMCG flag Date: Tue, 26 Jun 2012 11:08:32 +0400 Message-ID: <4FE95FF0.3000300@parallels.com> References: <1340633728-12785-1-git-send-email-glommer@parallels.com> <1340633728-12785-6-git-send-email-glommer@parallels.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: David Rientjes Cc: cgroups@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org, Frederic Weisbecker , Pekka Enberg , Michal Hocko , Johannes Weiner , Christoph Lameter , devel@openvz.org, kamezawa.hiroyu@jp.fujitsu.com, Tejun Heo , Pekka Enberg , Suleiman Souhlal On 06/26/2012 08:25 AM, David Rientjes wrote: > On Mon, 25 Jun 2012, Glauber Costa wrote: > >> >This flag is used to indicate to the callees that this allocation will be >> >serviced to the kernel. It is not supposed to be passed by the callers >> >of kmem_cache_alloc, but rather by the cache core itself. >> > > Not sure what "serviced to the kernel" means, does this mean that the > memory will not be accounted for to the root memcg? > In this context, it means that is a kernel allocation, not a userspace one (but in process context, of course), *and* it is to be accounted a specific memcg. -- 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: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757513Ab2FZHLZ (ORCPT ); Tue, 26 Jun 2012 03:11:25 -0400 Received: from mx2.parallels.com ([64.131.90.16]:42220 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753375Ab2FZHLY (ORCPT ); Tue, 26 Jun 2012 03:11:24 -0400 Message-ID: <4FE95FF0.3000300@parallels.com> Date: Tue, 26 Jun 2012 11:08:32 +0400 From: Glauber Costa User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: David Rientjes CC: , , Andrew Morton , , Frederic Weisbecker , Pekka Enberg , Michal Hocko , Johannes Weiner , Christoph Lameter , , , Tejun Heo , Pekka Enberg , Suleiman Souhlal Subject: Re: [PATCH 05/11] Add a __GFP_KMEMCG flag References: <1340633728-12785-1-git-send-email-glommer@parallels.com> <1340633728-12785-6-git-send-email-glommer@parallels.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [109.173.9.3] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/26/2012 08:25 AM, David Rientjes wrote: > On Mon, 25 Jun 2012, Glauber Costa wrote: > >> >This flag is used to indicate to the callees that this allocation will be >> >serviced to the kernel. It is not supposed to be passed by the callers >> >of kmem_cache_alloc, but rather by the cache core itself. >> > > Not sure what "serviced to the kernel" means, does this mean that the > memory will not be accounted for to the root memcg? > In this context, it means that is a kernel allocation, not a userspace one (but in process context, of course), *and* it is to be accounted a specific memcg.