System Administration Guide: Devices and File Systems

ProcedureHow to View CacheFS Statistics

View the statistics with the cachefsstat command. You can view the statistics at any time. For example, you do not have to set up logging in order to view the statistics.

  1. View CacheFS statistics.


    $ cachefsstat /mount-point
    

    where /mount-point specifies the CacheFS 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.


Example 20–16 Viewing CacheFS Statistics

This example shows how to view statistics on the cached file system, /home/sam.


$ cachefsstat /home/sam
	    cache hit rate: 73% (1234 hits, 450 misses)
	consistency checks: 700 (650 pass, 50 fail)
	          modifies: 321
garbage collection:  0