From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id DBC54600337 for ; Thu, 8 Apr 2010 13:15:18 -0400 (EDT) Date: Thu, 8 Apr 2010 19:14:58 +0200 From: Andrea Arcangeli Subject: Re: [PATCH 56 of 67] Memory compaction core Message-ID: <20100408171458.GS5749@random.random> References: <20100408161814.GC28964@cmpxchg.org> <20100408164630.GL5749@random.random> <20100408170948.GQ5749@random.random> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100408170948.GQ5749@random.random> Sender: owner-linux-mm@kvack.org To: Johannes Weiner Cc: linux-mm@kvack.org, Andrew Morton , Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Mel Gorman , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, KOSAKI Motohiro , Balbir Singh , Arnd Bergmann , "Michael S. Tsirkin" , Peter Zijlstra , Daisuke Nishimura , Chris Mason List-ID: On Thu, Apr 08, 2010 at 07:09:48PM +0200, Andrea Arcangeli wrote: > + if (PageTransCompound(page)) { > + low_pfn += (1 << page_order(page)) - 1; > + continue; > + } Thinking again the low_pfn += I'll have to remove it even from the hugepage case, because this could be a compound page that doesn't belong to transparent hugepage support, so it could go away from under us and make the order-reading invalid despite we hold the lru_lock. Unless we mark the transparent hugepages with a special bit in the page->flags we can't retain this optimization. This would have been safe if we used compound_order and we knew it was owned by transparent hugepage support. Given how short we are in page->flags (I already had to remove the PG_buddy) it's unlikely we can mark it specially and retain this. -- 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