Replaying a list of blocks into the cache (BootCache)

From: Shaun Jackman
Date: Wed Jan 25 2006 - 11:54:52 EST


I'm attempting to speed up the boot of an embedded system. I've found
that forcing certain key shared libraries to cache early by copying
them from the file system to a tmpfs early in the boot made a big
difference -- on the order of twenty seconds. I'm not even accessing
these shared libraries from the tmpfs; I'm just using this trick to
make sure the libraries stay in memory. Seeing what a big difference
this simple trick made, I wanted to see what else I could accomplish
by making use of the file system cache.

This made me think of the OS X BootCache feature, which saves the list
of disk blocks accessed during the boot sequence and replays that
list on the next boot. Is there anything like this in Linux?

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