Re: Speeding up swap

Kristian Koehntopp (kris@koehntopp.de)
Sat, 23 Oct 1999 19:34:24 +0200


In netuse.lists.linux-kernel Alan Cox writes:
>> 3. Are there any system calls available which can be utilized to
>> advise the system that a certain area of memory will always
>> be accessed as a contigous chunk of memory that should be
>> grouped contigously in a swap area if possible and to advise
>> the system that all memory accesses to this area will be

>BSD has madvise() but Linux doesnt yet have this facility.

Into the same direction goes the following question: How would I
advise the system that I am going to scan the following
multi-megabyte file only once, and that the contents of this
file need not enter any disk cache, because that would be
useless? Imagine a numerical algorithm sequentially scanning a
very large file for transformation or a video player streaming
from disk or something like that.

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/