Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753451AbYKQGzU (ORCPT ); Mon, 17 Nov 2008 01:55:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751418AbYKQGzH (ORCPT ); Mon, 17 Nov 2008 01:55:07 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:47744 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbYKQGzG (ORCPT ); Mon, 17 Nov 2008 01:55:06 -0500 Date: Mon, 17 Nov 2008 15:54:17 +0900 From: KAMEZAWA Hiroyuki To: "KOSAKI Motohiro" Cc: "Andrew Morton" , "Rik van Riel" , "Linus Torvalds" , LKML , linux-mm , "Gene Heskett" Subject: Re: [PATCH] mm: evict streaming IO cache first Message-Id: <20081117155417.5cc63907.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <2f11576a0811162239w58555c6dq8a61ec184b22bd52@mail.gmail.com> 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> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 2.5.0 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1356 Lines: 46 On Mon, 17 Nov 2008 15:39:20 +0900 "KOSAKI Motohiro" wrote: > rewote by div to mul changing. > > > file recent scanned. > %file = IO_cost * ------------ * ------------- > anon + file recent rotated. > > Ah, sorry. > > But when "files are used by streaming or some touch once application", > > there is no rotation because they are in INACTIVE FILE at first add_to_lru(). > > But recent_rotated will not increase while recent_scanned goes bigger and bigger. > > Yup. > > > Then %file goes to 0 rapidly. > > I think reverse. > > The problem is, when streaming access started right after, recent > scanned isn't so much. > then %file don't reach 100%. > > then, few anon pages swaped out althouth memory pressure isn't so heavy. > "few" ? 85Mbytes of used swap while 1.2GBytes of free memory in Gene Heskett's report. Hmm.. 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) ? Thanks, -Kame -- 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/