Solaris Express Developer Edition What's New

File System Monitoring Tool (fsstat)

A new file system monitoring tool, fsstat, is available to report file system operations. Activity can be reported by mount point or by file system type.

The following fsstat example shows how to display all ZFS file system operations.


$ fsstat zfs
 new  name   name  attr  attr lookup rddir  read read  write write
 file remov  chng   get   set    ops   ops   ops bytes   ops bytes
8.26K  240K 6.34K 4.03M 6.33K  12.6M  482K  204K 1.24G 13.4K  363M zfs

The following fsstat example shows how to display file system operations for the /export/home mount point.


$ fsstat /export/home
 new  name   name  attr  attr lookup rddir  read read  write write
 file remov  chng   get   set    ops   ops   ops bytes   ops bytes
    0     0     0   972     0    224    22     0     0     0     0 /export/home

The following fsstat example illustrates how to display file system operations for all file system types.


$ fsstat -F
 new  name   name  attr  attr lookup rddir  read read  write write
 file remov  chng   get   set    ops   ops   ops bytes   ops bytes
1.71K 1.16K    37  371K   562  1.90M 1.04K  151K  142M 21.9K 55.3M ufs
    0     0     0 1.60K     0  2.93K   344 1.30K  761K     0     0 proc
    0     0     0     0     0      0     0     0     0     0     0 nfs
8.31K  240K 6.37K 4.04M 6.48K  12.6M  482K  204K 1.25G 13.7K  365M zfs
   29    12    12 37.4K     8  22.5K    28 1.04K 2.34M   120 76.1K lofs
10.8K 4.72K 5.43K 54.6K    49  19.8K    28  173K  610M  513K  487M tmpfs
    0     0     0   338     0      0     0    44 12.2K     0     0 mntfs
    1     1     1   429     1  14.3K   115 1.34K 1002K     0     0 nfs3
   12     6     9   150     0    442    30    91 3.32M    12 69.2K nfs4
    1     0     1 20.8K     0  20.5K     0     0     0     0     0 autofs

For more information, see the fsstat(1M) man page.