[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2.1.130 mem usage. (fwd)
On Tue, 1 Dec 1998, Andrea Arcangeli wrote:
> - free_page_and_swap_cache(page);
> + free_page(page);
>
> Doing this we are not swapping out really I think, because the page
> now is also on the hd, but it' s still in memory and so
> shrink_mmap() will have the double of the work to do.
This is the whole idea. Having shrink_mmap() do the freeing
gives us something like page aging, but at a much much lower
cost.
> I' ll try to reverse these patches right now in my own tree.
The only thing I'll tell you is that performance will be
far worse. The rest you can probably figure out yourself:)
Btw, the 'unused' entry in the page struct is there so we
can do math on page_structs without having to divide by
strange numbers (an order of magnitude slower on most
CPUs).
regards,
Rik -- now completely used to dvorak kbd layout...
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+
--
This is a majordomo managed list. To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org