Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760188Ab1D0XS6 (ORCPT ); Wed, 27 Apr 2011 19:18:58 -0400 Received: from mail-ww0-f42.google.com ([74.125.82.42]:64443 "EHLO mail-ww0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757166Ab1D0XS4 (ORCPT ); Wed, 27 Apr 2011 19:18:56 -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=suA0UXbl+5H4ASr61w8V9ywvcGYvJMrXlpeMozezZFIAvmIGNCVvEWf02wmJZ+OziF wgMOF++CGKekLwz+qc3B680FhWC+wjWksx5QIoc0OkPuW6pfEO8wab5C+50uaeXdgy8A iFDPQ9OUv6Dt3cr8Od2HBtL91Tv9Sam+MhDWs= MIME-Version: 1.0 In-Reply-To: <20110427170304.d31c1398.kamezawa.hiroyu@jp.fujitsu.com> References: <232562452317897b5acb1445803410d74233a923.1303833417.git.minchan.kim@gmail.com> <20110427170304.d31c1398.kamezawa.hiroyu@jp.fujitsu.com> Date: Thu, 28 Apr 2011 08:18:54 +0900 Message-ID: Subject: Re: [RFC 3/8] vmscan: make isolate_lru_page with filter aware From: Minchan Kim To: KAMEZAWA Hiroyuki Cc: Andrew Morton , linux-mm , LKML , Christoph Lameter , Johannes Weiner , KOSAKI Motohiro , Mel Gorman , Rik van Riel , Andrea Arcangeli Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1484 Lines: 41 On Wed, Apr 27, 2011 at 5:03 PM, KAMEZAWA Hiroyuki wrote: > On Wed, 27 Apr 2011 01:25:20 +0900 > Minchan Kim wrote: > >> In some __zone_reclaim case, we don't want to shrink mapped page. >> Nonetheless, we have isolated mapped page and re-add it into >> LRU's head. It's unnecessary CPU overhead and makes LRU churning. >> >> Of course, when we isolate the page, the page might be mapped but >> when we try to migrate the page, the page would be not mapped. >> So it could be migrated. But race is rare and although it happens, >> it's no big deal. >> >> Cc: Christoph Lameter >> Cc: KOSAKI Motohiro >> Cc: Mel Gorman >> Cc: Rik van Riel >> Cc: Andrea Arcangeli >> Signed-off-by: Minchan Kim > > > Hmm, it seems mm/memcontrol.c::mem_cgroup_isolate_pages() should be updated, too. > > But it's okay you start from global LRU. Yes. That's exactly what I want. :) I am supposed to consider memcg after concept is approved. > > Reviewed-by: KAMEZAWA Hiroyuki Thanks fore the review, Kame. -- Kind regards, Minchan Kim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/