Re: memory handling in pre5/pre6

From: Rik van Riel (riel@conectiva.com.br)
Date: Fri Apr 21 2000 - 15:31:28 EST


On Fri, 21 Apr 2000, Andrea Arcangeli wrote:
> On Fri, 21 Apr 2000, Rik van Riel wrote:
>
> >Ahh, but you're forgetting that it is usually not
> >relevant to keep around unmapped pages from which
> >somebody did a read() because the data is copied
> >somewhere else now.
>
> This make no sense to me.

Having pages make _two_ passes through the second chance queue
in shrink_mmap() gives them a better chance to age. Not having
the referenced bit set for them will give them the "advantage"
of whatever random position in the queue they're in the moment
they are unmapped.

Remember that the queue isn't LRU but more like second chance
fifo...

regards,

Rik

--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies http://www.conectiva.com/ http://www.surriel.com/

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



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:19 EST