You might want to view certain information about a specific cached file system. The following table explains the terminology displayed in the statistics output.
Table 37-4 Statistics Output Terminology
Output Term |
Description |
---|---|
hit rate |
The rate of cache hits versus cache misses, followed by the actual number of hits and misses. A cache hit occurs when the user wants to perform an operation on a file or files, and the file or files are actually in the cache. A cache miss occurs when the file was not in the cache. The load on the server is the sum of cache misses, consistency checks, and modifications (modifies). |
checks |
The number of consistency checks performed, followed by the number that passed, and the number that failed. |
modifies |
The number of modify operations; for example, writes or creates. |
View the statistics with the cachefsstat(1M) command. You can do this at any time. For example, you do not have to set up logging in order to view the statistics.
$ cachefsstat mount-point |
mount-point |
Specifies the cached file system for which you want to view the statistics. |
If you do not specify the mount point, statistics for all mounted CacheFS file systems will be displayed.
$ cachefsstat /home/sam cache hit rate: 73% (1234 hits, 450 misses) consistency checks: 700 (650 pass, 50 fail) modifies: 321 garbage collection: 0 |