Re: virtual disk system (swap enhancement idea too)

*Vic* P. Franck (vic@kcs.de)
Mon, 23 Feb 1998 06:41:10 +0100


linker@nightshade.ml.org wrote:
>
> On Sun, 22 Feb 1998, Pavel Machek wrote:
> > > <OFFTOPIC>As an aside, it would be neat if the kernel would pre-write
> > > pages to disk so that when it came time to swap to disk, there would
> > > already be some pages written. Of course this should only happen when
> > > there isn't alot of disk accesses going on.</OFFTOPIC>
> > Power saving people will not like this idea, as it causes disk traffic
> > even if one is not needed.
> > Pavel
>
> Then they dont need to turn it on.. This would be a GREAT feature..
> Computer sits at home all day with nothing going on .. You come home and
> startup netscape and it doesn't have to actually swap at all... This is
> nice.. and would not likely be hard to impliment.. Just make it sysctl
> controlable.. :)

Q: Is there a "swapped page dirty tag" already?

reason: if a page in mem had already been swapped out and is going
to be swapped out again and it has not been written to, the page
could just be deleted from mem. Is this a rare case?
Can we make it less rare? We could fill up swap with pages
which are unlikely to change and "remeber" them
there until swapspace is needed for new ones.
if we don't need to write to disk for a swap-out, it should be
a performance gain.
So, if we have a large swap space and we have at some time written
all pages to that space which are not subject to change regularly
(mostly program code I think), we can always free some page instantly
instead writing it to disk - because it's already there.

(maybe again this is just nonsense for some reason)

A. Newbie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu