Re: Swap

Ryan Cumming (bodnar42@phalynx.dhs.org)
Mon, 19 Nov 2001 19:33:47 -0800


On November 19, 2001 18:49, Eric W. Biederman wrote:
> That would probably do it. Though it is puzzling why after the file
> is munmaped it's pages aren't recycled.

Because they're part of the page cache now, and won't be recycled until newer
pages 'push' them out of memory. I for one would be very annoyed an mmap()'s
associated cache was dropped immediately on munmap, there are many instances
in which it would be reused immediately after (think running two GTK+ apps in
a row, and having to reload libgtk from disk each time).

-Ryan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/