[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] swapin readahead and fixes
Rik van Riel wrote:
>
> On Mon, 7 Dec 1998, Billy Harvey wrote:
>
> > 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 do something a bit like this in 2.1.130+. Writing out all
> pages to swap will use far too much I/O bandwidth though, so
> we will never do that...
>
Rik,
That's my point though about not taking I/O time away from other tasks.
Only mirror pages to swap if there's nothing else blocked for I/O - put
any free time to work, and mirror pages if swap memory allows in
anticipation that it may be swapped out later. I suppose a
least-recently-used approach on the pages would have the highest
payback. I realize the CPU may be used a little more, but other than
rc5des it's idle a good bit of the time anyway - perhaps this could be
one step above an idle task.
Billy
--
Billy.Harvey@thrillseeker.net
--
This is a majordomo managed list. To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org