Messages in this thread | | | Date | Mon, 07 Apr 2003 10:19:25 -0400 | From | Chris Friesen <> | Subject | Re: An idea for prefetching swapped memory... |
| |
Helge Hafting wrote: > Thomas Schlichter wrote: > >> What I wanted to say is that if there is free memory it should be >> filled with >> the pages that were in use before the memory got rare. And these are >> the pages >> swapped out last.
> "What we're going to need soon" is the best. It isn't always predictable, > but sometimes. "The block following the last we read from some > file/fs-structure" > is often a good one though.
With the current setup though, the memory is wasted. It makes sense that we should fill the memory up with *something* that is likely to be useful.
If I have mozilla open, start a kernel compile, and then come back half an hour later, I would like to see the mozilla pages speculatively loaded back into memory.
Since the system is otherwise idle, it doesn't cost anything to do this. I think its obvious that it is beneficial to swap in something, the only trick is getting a decent heuristic as to what it should be.
Chris
-- Chris Friesen | MailStop: 043/33/F10 Nortel Networks | work: (613) 765-0557 3500 Carling Avenue | fax: (613) 765-2986 Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
- 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/
| |