From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id AD6516B004D for ; Fri, 14 Aug 2009 09:20:20 -0400 (EDT) Message-ID: <4A856467.6050102@redhat.com> Date: Fri, 14 Aug 2009 09:19:35 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [RFC] respect the referenced bit of KVM guest pages? References: <20090812074820.GA29631@localhost> <4A82D24D.6020402@redhat.com> <20090813010356.GA7619@localhost> <4A843565.3010104@redhat.com> <4A843B72.6030204@redhat.com> <4A843EAE.6070200@redhat.com> <4A846581.2020304@redhat.com> <20090813211626.GA28274@cmpxchg.org> <4A850F4A.9020507@redhat.com> <20090814091055.GA29338@cmpxchg.org> <20090814095106.GA3345@localhost> In-Reply-To: <20090814095106.GA3345@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Wu Fengguang Cc: Johannes Weiner , Avi Kivity , KOSAKI Motohiro , Andrea Arcangeli , "Dike, Jeffrey G" , "Yu, Wilfred" , "Kleen, Andi" , Hugh Dickins , Andrew Morton , Christoph Lameter , Mel Gorman , LKML , linux-mm List-ID: Wu Fengguang wrote: > On Fri, Aug 14, 2009 at 05:10:55PM +0800, Johannes Weiner wrote: >> So even with the active list being a FIFO, we keep usage information >> gathered from the inactive list. If we deactivate pages in arbitrary >> list intervals, we throw this away. > > We do have the danger of FIFO, if inactive list is small enough, so > that (unconditionally) deactivated pages quickly get reclaimed and > their life window in inactive list is too small to be useful. This one of the reasons why we unconditionally deactivate the active anon pages, and do background scanning of the active anon list when reclaiming page cache pages. We want to always move some pages to the inactive anon list, so it does not get too small. -- All rights reversed. -- 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