In <[EMAIL PROTECTED]> on 27 Feb 2004, Mark Maunder <[EMAIL PROTECTED]> wrote: > Anyone know if the linux filesystem cache caches directory > information. I.e., does a stat by apache guarantee disk access?
This is almost certainly filesystem dependent; but for the usual filesystems (ext2, ext3, reiserfs, . . .) and options, yes, stat uses the cache. This is easily verified by doing perl -e 'for (;;) { stat("filename"); };' and using 'vmstat 1' or other tools to monitor the resultant disk activity. -ccwf -- Charles C. Fu Founder Web i18n, LLC www.web-i18n.net -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html