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 80032600337 for ; Thu, 8 Apr 2010 12:03:14 -0400 (EDT) Date: Thu, 8 Apr 2010 18:02:40 +0200 From: Andrea Arcangeli Subject: Re: [PATCH 00 of 67] Transparent Hugepage Support #18 Message-ID: <20100408160240.GG5749@random.random> References: <4BBDA43F.5030309@redhat.com> <4BBDC181.5040205@redhat.com> <20100408152302.GA5749@random.random> <4BBDF5CA.5050907@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BBDF5CA.5050907@redhat.com> Sender: owner-linux-mm@kvack.org To: Avi Kivity Cc: linux-mm@kvack.org, Andrew Morton , Marcelo Tosatti , Adam Litke , 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 , "Michael S. Tsirkin" , Peter Zijlstra , Johannes Weiner , Daisuke Nishimura , Chris Mason , Linus Torvalds List-ID: On Thu, Apr 08, 2010 at 06:27:06PM +0300, Avi Kivity wrote: > On 04/08/2010 06:23 PM, Andrea Arcangeli wrote: > > On Thu, Apr 08, 2010 at 02:44:01PM +0300, Avi Kivity wrote: > > > >> Results here are less than stellar. While khugepaged is pulling pages > >> together, something is breaking them apart. Even after memory pressure > >> is removed, this behaviour continues. Can it be that compaction is > >> tearing down huge pages? > >> > > migrate will split hugepages, but memory compaction shouldn't migrate > > hugepages... If it does I agree it needs fixing. > > > > > > Well, khugepaged was certainly fighting with something. Perhaps ftrace > will point the finger. It's likely splitting and migrating hugepages really, like you just said. > It ran stably for me FWIW. It's not easily reproducible (the tiny race in memcg prepare_migration also was hard to reproduce but that one was easy to fix by reproducing it just once). I suspect something's wrong with isolate_migratepages, I don't see where it skips tail pages, and it should skip all compound pages to avoid migrating them which would also solve your issue. something like that... ;). I think migration splits the hugepages good enough and while migration has a pin on the page (to keep khugepaged away). -- 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