From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751267Ab2JASsY (ORCPT ); Mon, 1 Oct 2012 14:48:24 -0400 Received: from zene.cmpxchg.org ([85.214.230.12]:58578 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750708Ab2JASsW (ORCPT ); Mon, 1 Oct 2012 14:48:22 -0400 Date: Mon, 1 Oct 2012 14:48:12 -0400 From: Johannes Weiner To: Glauber Costa Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, kamezawa.hiroyu@jp.fujitsu.com, devel@openvz.org, Tejun Heo , linux-mm@kvack.org, Suleiman Souhlal , Frederic Weisbecker , Mel Gorman , David Rientjes Subject: Re: [PATCH v3 01/13] memcg: Make it possible to use the stock for more than one page. Message-ID: <20121001184812.GB23734@cmpxchg.org> References: <1347977050-29476-1-git-send-email-glommer@parallels.com> <1347977050-29476-2-git-send-email-glommer@parallels.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1347977050-29476-2-git-send-email-glommer@parallels.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 18, 2012 at 06:03:58PM +0400, Glauber Costa wrote: > From: Suleiman Souhlal > > We currently have a percpu stock cache scheme that charges one page at a > time from memcg->res, the user counter. When the kernel memory > controller comes into play, we'll need to charge more than that. > > This is because kernel memory allocations will also draw from the user > counter, and can be bigger than a single page, as it is the case with > the stack (usually 2 pages) or some higher order slabs. > > [ glommer@parallels.com: added a changelog ] > > Signed-off-by: Suleiman Souhlal > Signed-off-by: Glauber Costa > Acked-by: David Rientjes > Acked-by: Kamezawa Hiroyuki > Acked-by: Michal Hocko Independent of how the per-subtree enable-through-setting-limit discussion pans out, we're going to need the charge cache, so: Acked-by: Johannes Weiner