Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964934AbVKVMzF (ORCPT ); Tue, 22 Nov 2005 07:55:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964937AbVKVMzF (ORCPT ); Tue, 22 Nov 2005 07:55:05 -0500 Received: from silver.veritas.com ([143.127.12.111]:9345 "EHLO silver.veritas.com") by vger.kernel.org with ESMTP id S964934AbVKVMzD (ORCPT ); Tue, 22 Nov 2005 07:55:03 -0500 Date: Tue, 22 Nov 2005 12:55:02 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@goblin.wat.veritas.com To: Marcelo Tosatti cc: Wu Fengguang , akpm@osdl.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] properly account readahead file major faults In-Reply-To: <20051122062321.GA30413@logos.cnet> Message-ID: References: <20051121140038.GA27349@logos.cnet> <20051122042443.GA4588@mail.ustc.edu.cn> <20051122062321.GA30413@logos.cnet> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 22 Nov 2005 12:54:59.0101 (UTC) FILETIME=[F202FCD0:01C5EF63] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 723 Lines: 19 On Tue, 22 Nov 2005, Marcelo Tosatti wrote: > > Pages which hit the first time in cache due to readahead _have_ caused > IO, and as such they should be counted as major faults. Have caused IO, or have benefitted from IO which was done earlier? It sounds debatable, each will have their own idea of what's major. Maybe PageUptodate at the time the entry is found in the page cache should come into it? !PageUptodate implying that we'll be waiting for read to complete. Hugh - 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/