From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with SMTP id 9BE3B6B007D for ; Thu, 21 Jan 2010 10:44:58 -0500 (EST) Date: Thu, 21 Jan 2010 16:44:08 +0100 From: Andrea Arcangeli Subject: Re: [PATCH 27 of 30] memcg compound Message-ID: <20100121154408.GA5598@random.random> References: <2f3ecb53039bd9ae8c7a.1264054851@v2.random> <20100121160759.3dcad6ae.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100121160759.3dcad6ae.kamezawa.hiroyu@jp.fujitsu.com> Sender: owner-linux-mm@kvack.org To: KAMEZAWA Hiroyuki Cc: linux-mm@kvack.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Mel Gorman , Andi Kleen , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , Christoph Lameter , Chris Wright , Andrew Morton List-ID: On Thu, Jan 21, 2010 at 04:07:59PM +0900, KAMEZAWA Hiroyuki wrote: > On Thu, 21 Jan 2010 07:20:51 +0100 > Andrea Arcangeli wrote: > > > From: Andrea Arcangeli > > > > Teach memcg to charge/uncharge compound pages. > > > > Signed-off-by: Andrea Arcangeli > > I'm sorry but I'm glad if you don't touch fast path. > > if (likely(page_size == PAGE_SIZE)) > if (consume_stock(mem)) > goto charged; > > is my recommendation. Ok updated. But I didn't touch this code since last submit, because I didn't merge the other patch (not yet in mainline) that you said would complicate things. So I assume most if it will need to be rewritten. I also though you wanted to remove the hpage size from the batch logic. -- 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