Re: [PATCH] swapin readahead and fixes

Stephen C. Tweedie (sct@redhat.com)
Tue, 8 Dec 1998 12:21:04 GMT


Hi,

On Mon, 07 Dec 1998 20:34:12 -0500, Billy Harvey
<Billy.Harvey@thrillseeker.net> said:

> Has anyone ever looked at the following concept? In addition to a
> swap-in read-ahead, have a swap-out write-ahead. The idea is to use all
> the avaialble swap space as a mirror of memory.

We already do that. That's what the swap cache is. When kswapd swaps
stuff out, it does so asynchronously, but leaves the data in the swap
cache where it can be picked up again if another process wants the
swap entry back. Most importantly, it lets us do the writing to swap
very rapidly, as we can efficiently stream the updates to disk.

--Stephen

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