Solaris fsstat command


I came across a reference to the fsstat command on the opensolaris observability list, and decided to BFU to build 36 to check it out. This nifty utility will print file operations per file system, which is incredibly useful:

$ fsstat -n -F 5

lookup creat remov link renam mkdir rmdir rddir symlnk rdlnk
95.4K 173 31 0 1 0 0 230 3 2.30K ufs
646 0 0 0 0 0 0 126 0 133 proc
0 0 0 0 0 0 0 0 0 0 zfs
2.37K 1.96K 1.75K 1 72 4 0 0 0 0 tmpfs
0 0 0 0 0 0 0 0 0 0 mntfs

$ fsstat -i -F 5

read read write write rddir rddir rwlock rwulock
ops bytes ops bytes ops bytes ops ops
32.7K 59.0M 1.48K 2.89M 230 294K 34.4K 34.4K ufs
1.33K 59.4K 0 0 128 36.4K 1.45K 1.45K proc
0 0 0 0 0 0 0 0 zfs
23.4K 23.4M 26.1K 22.6M 0 0 49.5K 49.5K tmpfs
21 2.39K 0 0 0 0 21 21 mntfs

The formatting is kinda funky, but it looks like some additional work is being done to improve fsstat. This is a super useful utility, and I hope it makes Solaris 10 Update 2!!!

This article was posted by Matty on 2006-04-01 12:40:00 -0400 -0400