Re: Speeding up swap

Kristian Koehntopp (kris@koehntopp.de)
Sun, 24 Oct 1999 09:01:34 +0200


On Sat, Oct 23, 1999 at 01:12:22PM -0700, David Schwartz wrote:
> How would the kernel know when you had accessed it 'once' without making
> some odd assumptions about such things as block size?
>
> So, the question really is, exactly what do you _really_ want?

I am looking for a mechanism that enables a user process to
advise the kernel on a per-fd basis not to keep more than say
two pages of a certain file any buffer cache based on the
promise that the user process will read that file only in a
sequentially-forward or even non-seeking manner. I exspect
performance improvements from such a mechanism because I
observed that unrelated user processes get paged out when a very
large file is passed thru a streaming application.

Kristian

-
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/