Re: [PATCH] properly account readahead file major faults

Hugh Dickins
2005-11-22T12:55:02Z

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