While optimising my PHP opcode caches, I tried alternating the stat setting ( = the opcode cache checks, whether a file was modified via
stat(), before using the cached results). But I did not see any difference in my application benchmarks. The filesystem in use is
ext4, mounted with
Is it correct to assume, that the metadata used by stat(), is kept in memory, or is there always some kind of harddisk interaction when
stat() is used?