[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] swapin readahead and fixes



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
--
This is a majordomo managed list.  To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org