lkml.org 
[lkml]   [1998]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

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

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:1.701 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site