Re: Thread implementations...

Stephen C. Tweedie (sct@dcs.ed.ac.uk)
Thu, 25 Jun 1998 12:35:02 +0100


Hi,

On 24 Jun 1998 23:56:28 -0500, ebiederm+eric@npwt.net (Eric
W. Biederman) said:

> mmap, madvise(SEQUENTIAL),write
> is easy to implement. The mmap layer already does readahead, all we
> do is tell it not to be so conservative.

Swap readhead is also now possible. However, madvise(SEQUENTIAL) needs
to do much more than this; it needs to aggressively track what region of
the vma is being actively used, and to unmap those areas no longer in
use. (They can remain in cache until the memory is needed for something
else, of course.) The madvise is only going to be important if the
whole file / vma does not fit into memory, so having advice that a piece
of memory not recently accessed is unlikely to be accessed again until
the next sequential pass is going to be very valuable. It will prevent
us from having to swap out more useful stuff.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu