From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id D7A716B01B1 for ; Tue, 23 Mar 2010 21:47:42 -0400 (EDT) Received: by pxi32 with SMTP id 32so2123241pxi.1 for ; Tue, 23 Mar 2010 18:47:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20100324100334.8d6f0739.kamezawa.hiroyu@jp.fujitsu.com> References: <1269347146-7461-1-git-send-email-mel@csn.ul.ie> <1269347146-7461-8-git-send-email-mel@csn.ul.ie> <20100324100334.8d6f0739.kamezawa.hiroyu@jp.fujitsu.com> Date: Wed, 24 Mar 2010 10:47:41 +0900 Message-ID: <28c262361003231847q1e4b7c7agdf82c4b2e920ada4@mail.gmail.com> Subject: Re: [PATCH 07/11] Memory compaction core From: Minchan Kim Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org To: KAMEZAWA Hiroyuki Cc: Mel Gorman , Andrew Morton , Andrea Arcangeli , Christoph Lameter , Adam Litke , Avi Kivity , David Rientjes , KOSAKI Motohiro , Rik van Riel , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On Wed, Mar 24, 2010 at 10:03 AM, KAMEZAWA Hiroyuki wrote: > On Tue, 23 Mar 2010 12:25:42 +0000 > Mel Gorman wrote: > >> This patch is the core of a mechanism which compacts memory in a zone by >> relocating movable pages towards the end of the zone. >> >> A single compaction run involves a migration scanner and a free scanner. >> Both scanners operate on pageblock-sized areas in the zone. The migration >> scanner starts at the bottom of the zone and searches for all movable pages >> within each area, isolating them onto a private list called migratelist. >> The free scanner starts at the top of the zone and searches for suitable >> areas and consumes the free pages within making them available for the >> migration scanner. The pages isolated for migration are then migrated to >> the newly isolated free pages. >> >> Signed-off-by: Mel Gorman >> Acked-by: Rik van Riel >> Reviewed-by: Minchan Kim > > I think lru_add_drain() or lru_add_drain_all() should be called somewhere > when we do __isolate_lru_page(). But it's (_all is) slow.... > migrate_prep does it. -- Kind regards, Minchan Kim -- 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