I/Oとキャッシュの有無
[1]meg{edrx}% excludes='/CVS/|/.svn/|/RCS/|/_darcs/|default/Cache|/core$|\.sta$|/GRTAGS|public_html/post|mthesaur.txt' [1]meg{edrx}% nice -19 find /home/rubikitch | noca egrep -v $excludes > /tmp/rubikitch.files 2007年 8月 26日 日曜日 17:09:05 JST 2007年 8月 26日 日曜日 17:09:52 JST [1]meg{edrx}% cat /tmp/rubikitch.files | rfind 'file? && exist?' | xargs cat > /dev/null 2>&1 2007年 8月 26日 日曜日 17:10:23 JST zsh: done cat /tmp/rubikitch.files | rfind 'file? && exist?' | zsh: exit 123 xargs cat > /dev/null 2>&1 2007年 8月 26日 日曜日 17:12:29 JST [1]meg{edrx}% cat /tmp/rubikitch.files | rfind 'file? && exist?' | xargs cat > /dev/null 2>&1 2007年 8月 26日 日曜日 17:12:33 JST zsh: done cat /tmp/rubikitch.files | rfind 'file? && exist?' | zsh: exit 123 xargs cat > /dev/null 2>&1 2007年 8月 26日 日曜日 17:12:38 JST [1]meg{edrx}% nice -19 find /home/rubikitch | noca egrep -v $excludes > /tmp/rubikitch.files 2007年 8月 26日 日曜日 17:12:46 JST 2007年 8月 26日 日曜日 17:12:46 JST
ホームディレクトリの主要なファイルをリストするのにキャッシュなしで47秒、キャッシュありで0.4秒。
主要なファイルの内容を流すのにキャッシュなしで126秒、キャッシュありで5秒。
ちなみにrfindはファイルリストから条件をみたすファイルのみを抜き出すフィルタ。