From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756544AbZELRlt (ORCPT ); Tue, 12 May 2009 13:41:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753021AbZELRlk (ORCPT ); Tue, 12 May 2009 13:41:40 -0400 Received: from mx2.redhat.com ([66.187.237.31]:42670 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318AbZELRlj (ORCPT ); Tue, 12 May 2009 13:41:39 -0400 Message-ID: <4A09B46D.9010705@redhat.com> Date: Tue, 12 May 2009 13:39:57 -0400 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Thunderbird 2.0.0.17 (X11/20080915) MIME-Version: 1.0 To: Christoph Lameter CC: KOSAKI Motohiro , Wu Fengguang , Andrew Morton , "hannes@cmpxchg.org" , "peterz@infradead.org" , "linux-kernel@vger.kernel.org" , "tytso@mit.edu" , "linux-mm@kvack.org" , "elladan@eskimo.com" , "npiggin@suse.de" , "minchan.kim@gmail.com" Subject: Re: [PATCH -mm] vmscan: protect a fraction of file backed mapped pages from reclaim References: <20090508125859.210a2a25.akpm@linux-foundation.org> <20090512025246.GC7518@localhost> <20090512120002.D616.A69D9226@jp.fujitsu.com> <4A09AC91.4060506@redhat.com> In-Reply-To: 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 Christoph Lameter wrote: > On Tue, 12 May 2009, Rik van Riel wrote: > >> The patch that only allows active file pages to be deactivated >> if the active file LRU is larger than the inactive file LRU should >> protect the working set from being evicted due to streaming IO. > > Streaming I/O means access once? Yeah, "used-once pages" would be a better criteria, since you could go through a gigantic set of used-once pages without doing linear IO. I expect that some databases might do that. > What exactly are the criteria for a page > to be part of streaming I/O? AFAICT the definition is more dependent on > the software running than on a certain usage pattern discernible to the > VM. Software may after all perform multiple scans over a stream of data or > go back to prior locations in the file. -- All rights reversed.