Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754015AbYKQQW5 (ORCPT ); Mon, 17 Nov 2008 11:22:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752531AbYKQQWh (ORCPT ); Mon, 17 Nov 2008 11:22:37 -0500 Received: from mx2.redhat.com ([66.187.237.31]:39843 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752483AbYKQQWg (ORCPT ); Mon, 17 Nov 2008 11:22:36 -0500 Message-ID: <49219A3E.1080100@redhat.com> Date: Mon, 17 Nov 2008 11:22:22 -0500 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Thunderbird 2.0.0.17 (X11/20080915) MIME-Version: 1.0 To: KAMEZAWA Hiroyuki CC: KOSAKI Motohiro , Andrew Morton , Linus Torvalds , LKML , linux-mm , Gene Heskett Subject: Re: [PATCH] mm: evict streaming IO cache first References: <20081115181748.3410.KOSAKI.MOTOHIRO@jp.fujitsu.com> <20081115210039.537f59f5.akpm@linux-foundation.org> <49208E9A.5080801@redhat.com> <20081116204720.1b8cbe18.akpm@linux-foundation.org> <20081117153012.51ece88f.kamezawa.hiroyu@jp.fujitsu.com> <2f11576a0811162239w58555c6dq8a61ec184b22bd52@mail.gmail.com> <20081117155417.5cc63907.kamezawa.hiroyu@jp.fujitsu.com> <2f11576a0811162303t51609098o6cd765c04d791581@mail.gmail.com> <20081117172202.343e1b35.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20081117172202.343e1b35.kamezawa.hiroyu@jp.fujitsu.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 46 KAMEZAWA Hiroyuki wrote: > On Mon, 17 Nov 2008 16:03:48 +0900 > "KOSAKI Motohiro" wrote: >>> How about resetting zone->recent_scanned/rotated to be some value calculated from >>> INACTIVE_ANON/INACTIVE_FILE at some time (when the system is enough idle) ? >> in get_scan_ratio() >> > But active/inactive ratio (and mapped_ratio) is not handled there. > > Follwoing 2 will return the same scan ratio. get_scan_ratio does not look at the sizes of the lists, but at the ratio between "pages scanned" and "pages rotated". A page that is moved from the inactive to the active list is always counted as rotated. A page that is moved from the active to the inactive list is counted as rotated if it was mapped and referenced. > ==case 1== > active_anon = 480M > inactive_anon = 32M > active_file = 2M > inactive_file = 510M > > ==case 2== > active_anon = 480M > inactive_anon = 32M > active_file = 480M > inactive_file = 32M > == > > > > -Kame > -- All rights reversed. -- 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/