From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751776AbZGTFkW (ORCPT ); Mon, 20 Jul 2009 01:40:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751119AbZGTFkV (ORCPT ); Mon, 20 Jul 2009 01:40:21 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:55481 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027AbZGTFkU (ORCPT ); Mon, 20 Jul 2009 01:40:20 -0400 Date: Mon, 20 Jul 2009 14:39:45 +0900 (JST) X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Christoph Lameter Subject: Re: [PATCH 3/3] add isolate pages vmstat Cc: kosaki.motohiro@jp.fujitsu.com, LKML , linux-mm , Andrew Morton , Wu Fengguang , Rik van Riel , Minchan Kim In-Reply-To: References: <20090717085821.A900.A69D9226@jp.fujitsu.com> Message-Id: <20090720143838.7481.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Fri, 17 Jul 2009, KOSAKI Motohiro wrote: > > > > Why do a separate pass over all the migrates pages? Can you add the > > > _inc_xx somewhere after the page was isolated from the lru by calling > > > try_to_unmap()? > > > > calling try_to_unmap()? the pages are isolated before calling migrate_pages(). > > migrate_pages() have multiple caller. then I put this __inc_xx into top of > > migrate_pages(). > > Then put the inc_xxx's where the pages are isolated. Is there any benefit? Why do we need sprinkle __inc_xx to many place?