forced pre-caching

Christopher Browne cbbrowne-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Mar 17 21:35:27 UTC 2005


On Thu, 17 Mar 2005 16:27:50 -0500, Jing Su <gargamel.su-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
> Is there a way to force Linux to pre-cache certain files?  Not just
> executables, but also arbitrary data files.

Put a script into the "initialization stuff" that does...

for file in `cat /etc/precache-list-of-files`; do
   dd if=$file of=/dev/null bs=1M
done
-- 
http://www3.sympatico.ca/cbbrowne/linux.html
"The true  measure of a  man is how he treats  someone who can  do him
absolutely no good." -- Samuel Johnson, lexicographer (1709-1784)
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list