On Wed, Jan 31, 2001 at 01:05:02AM -0200, Marcelo Tosatti wrote:
>
> However, the pages which are contiguous on swap are not necessarily
> contiguous in the virtual memory area where the fault happened. That means
> the swapin readahead code may read pages which are not related to the
> process which suffered a page fault.
>
Yes, but reading extra sectors is cheap, and throwing the pages out of
memory again if they turn out not to be needed is also cheap. The
on-disk swapped pages are likely to have been swapped out at roughly
the same time, which is at least a modest indicator of being of the
same age and likely to have been in use at the same time in the past.
I'd like to see at lest some basic performance numbers on this,
though.
Cheers,
Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/