Yet more "preloading"

Michael Matz matz at kde.org
Fri Mar 19 16:12:39 CET 2004


Hi,

On Fri, 19 Mar 2004, Lubos Lunak wrote:

> I'll give the fdboot sources a try (I need kernel recompile :-/). Could
> you please explain in short what it does (or, to be more precise, how we
> could/should use it)?

Andrew had explained it in the message.  A kernel module will dump 
information about which blocks of which files are currently loaded in the 
page cache.

You can then interpret this information, order the blocks sequentially and
them mmap the files in order, and touch pages in order to reproduce
exactly the same (well, similar) pagecache, but faster due to no
unnecessary seeks.  When thinking about this in the past this solution
never occured to me (but then, I'm not kernel hacker ;) ).  I usually
thought about some mean to dump the pages as they are read in from the
disk (somehow with file information).  Simply dumping the filled pagecache
looks more elegant ;-)


Ciao,
Michael.


More information about the Kde-optimize mailing list