LWN.net Logo

Can swap-in be improved?

Can swap-in be improved?

Posted Jun 7, 2007 13:29 UTC (Thu) by anton (guest, #25547)
In reply to: Can swap-in be improved? by giraffedata
Parent article: On-demand readahead

Yes, fetching all the pages that were resident is certainly an approach for the problem that would work.

Using a history-based prefetcher might have the following advantages, though:

  • It could fetch fewer pages (e.g., not pages loaded on startup, but no longer needed, but that were still resident when the process was swapped out), which would be faster and less disruptive for other processes.
  • The prefetcher would also be useful in other situations, like on startup, or when a process enters a new phase (and therefore needs many new pages from executable or data files).
That being said, a well-balanced history-based prefetcher is certainly a much larger project than loading the once-resident pages.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds