Journal rwa2's Journal: Using readahead to speed up disk loading times of any application
Here's a way to get a list of files read by any application, so you can use readahead to preload those files optimally from disk:
CMD=firefox
strace -fe open $CMD 2>&1 | sed 's/.*open("\(.*\)".*/\1/' > $CMD.preload
# you can sift through that $CMD.preload file to look for things that don't belong
readahead $CMD.preload # preloads all those files into cache
time $CMD # should now start quite a bit faster, without much disk activity
## to clear disk cache as root (useful for testing / benchmarking)
echo 3 >
If it works, you might want to append the contents of the
Using readahead to speed up disk loading times of any application More Login
Using readahead to speed up disk loading times of any application
Slashdot Top Deals