From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753953Ab0CXBrn (ORCPT ); Tue, 23 Mar 2010 21:47:43 -0400 Received: from mail-px0-f184.google.com ([209.85.216.184]:45429 "EHLO mail-px0-f184.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751505Ab0CXBrm (ORCPT ); Tue, 23 Mar 2010 21:47:42 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Vj+uFGHSHW39vW+6BVQ2dsW3Pk7Aw5r/Ux9v30LTRv6kL//EQcwHlnrcLSxGCvsEJe yZzYpsljJqIcivN4rQzJBAf6VUwXSMtlZNLojgEtvpePIuD7eZhcTcywFlgBU/u0/p// yJ67NKRz08QGnpMrr5++oM0tf37SJE6/xaWhY= 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 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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