From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758902Ab0BYDTG (ORCPT ); Wed, 24 Feb 2010 22:19:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:13895 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758829Ab0BYDTC (ORCPT ); Wed, 24 Feb 2010 22:19:02 -0500 Message-ID: <4B85EBD5.2050006@redhat.com> Date: Wed, 24 Feb 2010 22:17:41 -0500 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1 MIME-Version: 1.0 To: Wu Fengguang CC: Andrew Morton , Jens Axboe , Chris Frost , Steve VanDeBogart , KAMEZAWA Hiroyuki , Chris Mason , Peter Zijlstra , Clemens Ladisch , Olivier Galibert , Vivek Goyal , Christian Ehrhardt , Matt Mackall , Nick Piggin , Linux Memory Management List , linux-fsdevel@vger.kernel.org, LKML Subject: Re: [PATCH 02/15] readahead: retain inactive lru pages to be accessed soon References: <20100224031001.026464755@intel.com> <20100224031053.886603916@intel.com> In-Reply-To: <20100224031053.886603916@intel.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 On 02/23/2010 10:10 PM, Wu Fengguang wrote: > From: Chris Frost > > Ensure that cached pages in the inactive list are not prematurely evicted; > move such pages to lru head when they are covered by > - in-kernel heuristic readahead > - an posix_fadvise(POSIX_FADV_WILLNEED) hint from an application > Signed-off-by: Chris Frost > Signed-off-by: Steve VanDeBogart > Signed-off-by: KAMEZAWA Hiroyuki > Signed-off-by: Wu Fengguang Acked-by: Rik van Riel When we get into the situation where readahead thrashing would occur, we will end up evicting other stuff more quickly from the inactive file list. However, that will be the case either with or without this code...