Thanks for this Charles. I've never heard of vmstat, and after playing
with it for a few mins am amazed at my ignorance and its usefulness.
On Fri, 2004-02-27 at 21:07, Charles C. Fu wrote:
> 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