Cachefsstat wierdness
I've just set up my Solaris 10 work system so that it mounts a directory from a Solaris 10 x86 box and to try to improve the performance, implemented a cached file system:
# cfsadmin -c /export/cache # mount -F cachefs -obackfstype=nfs,cachedir=/export/cache,actimeo=300 xyzzy:/export/docs /docsNow, I can reference the files in /docs just fine, and a quick snoop of the network shows that after the first read of a file from that directory, susequent reads appear to be fulfilled from the local cache (ie there is no NFS read at the time of the access). However, cachefsstat insists that I have a 100% miss rate:
# cachefsstat /docs
/docs
cache hit rate: 0% (0 hits, 18729 misses)
consistency checks: 25717 (25717 pass, 0 fail)
modifies: 0
garbage collection: 0
I can't find anything in SunSolve which helps, and although this seems to be a reporting issue rather than a genuine 100% cache miss, I'd still like to understand why the reporting is incorrect. Any ideas are welcome !