Re: [PATCH] properly account readahead file major faults

From: Hugh Dickins
Date: Tue Nov 22 2005 - 07:55:37 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/