NFS Services Administrator's Guide (B.11.31.03) August 2008

An output similar to the following is displayed:
/home/smh
cache hit rate: 20% (2543 hits, 9774 misses)
consistency checks: 47842 (47825 pass, 17 fail)
modifies: 85727
garbage collection: 0
You can run the cachefsstat command with the -z option to reinitialize CacheFS
statistics. You must be a superuser to use the -z option.
NOTE: If you do not specify the CacheFS mount-point, statistics for all CacheFS
mount-points are displayed.
For more information about the cachefsstat command, see cachefsstat(1M).
Viewing the Working Set (Cache) Size
In the following example, /cfs_mnt1 is the CacheFS mount-point and /tmp/logfile
refers to the logfile created when you enable logging. To view the memory usage, enter
the following command:
cachefswssize /tmp/logfile
An output similar to the following is displayed:
/cfs_mnt1
end size: 40k
high water size: 40k
total for cache
Initial size: 640k
end size: 40k
To view the operations performed in ASCII format, enter the following command:
cachefswssize -a /tmp/logfile
An output similar to the following is displayed:
1/0 0:00 0 Mount e000000245e31080 411 65536 256
/cfs_mnt1 (cachefs1:_cache_exp:_cfs_mnt1)
1/0 0:00 0 Mdcreate e000000245e31080 <fid> 517500609495040 1
1/0 0:00 0 Filldir e000000245e31080 <fid> 517500609495040 8192
1/0 0:00 0 Nocache e000000245e31080 <fid> 517500609495040
1/0 0:00 0 Mkdir e000000245e31080 <fid> 517264386293760 0
Where:
_cfs_mnt1 Specifies the CacheFS mount-point
cachefs1 Specifies the server name
_cache_exp
Specifies the mounted directory which is displayed as /cache_exp
Using CacheFS 125