This is not really a problem, I don't think.
A simple heuristic *could* be: when X pages have been
accessed in the cluster in increasing order (or
even just mostly increaing order, or decreasing order,
etc...)
>Using `read' is like giving an implicit `madvise(SEQUENTIAL)' since it's rarely
>used for random (or even stride) access. `mmap' has to be more careful.
If madvise() was used, then mmap() would not have to be more careful. Even
then why can't the same heuristic be used for mmap(). But then we
are talking about kepping a fault history to determine what to guess is
next and I don't think that anybody is against that.
> Stefan
-jay
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/