Peter's mail about fsstat kstats inspired me to write up some thoughts
I have about fsstat.  I've been playing with it over the weekend and
some more today.

1. Thank God (or thank Rich) that we finally have something in this
   space.  It's a vast vast improvement.

2. I'd like to see many more ways to slice the data:

        fsstat -A       Show all mount points for all FS's
        fsstat -z       Skip zero'd entries (like iostat -xz)
        fsstat -a -F <fs>  Show all mount points for this FS type

        fsstat -a -l    Show only local filesystems (no NFS, etc).
        fsstat -a -s    Show only non-synthetic filesystems
                        (no lofs, mntfs, autofs)

        fsstat -Z       Aggregate each zone's FS activity
        fsstat -z       Watch a particular zone
                        (of course I'm proposing two -z's... we'll
                         need to work that out :p)

3. I find the output on the challeging side to visually grok:

    $ fsstat 1
     new  name   name  attr  attr lookup rddir  read read  write write
     file remov  chng   get   set    ops   ops   ops bytes   ops bytes
    2.15K   345   137  186K   806   799K 2.86K  188K  229M 7.24K 7.07M ufs
        0     0     0 2.58K     0  4.52K 1.02K 26.6K 18.5M 46.0K  380K proc
        0     0     0     0     0      0     0     0     0     0     0 nfs
        0     0     0     0     0      0     0     0     0     0     0 zfs
      153     0     0 67.2K   217   108K   605 25.7K 6.07M 24.5K  790K lofs
    12.8K 11.8K   696 83.3K   167  17.1K     0  166K  166M  177K  154M tmpfs
        0     0     0   280     0      0     0   197 32.5K     0     0 mntfs
        0     0     0    51     0     54    65     0     0     0     0 nfs3
       12     4     0 2.48K     0  3.42K   151 1.82K  299K 8.79K  118K nfs4
        0     0     0   363     0    318     0     0     0     0     0 autofs
        0     0     0     1     0      0     0     0     0     0     0 ufs
        0     0     0     0     0      0     0     0     0     0     0 proc
        0     0     0     0     0      0     0     0     0     0     0 nfs
        0     0     0     0     0      0     0     0     0     0     0 zfs
        0     0     0     0     0      0     0     0     0     0     0 lofs
        0     0     0     0     0      0     0     0     0     0     0 tmpfs
        0     0     0     0     0      0     0     0     0     0     0 mntfs
        0     0     0     0     0      0     0     0     0     0     0 nfs3
        0     0     0     0     0      0     0     0     0     0     0 nfs4
        0     0     0     0     0      0     0     0     0     0     0 autofs
        0     0     0     0     0      0     0     0     0     0     0 ufs
        0     0     0     0     0      0     0     0     0     0     0 proc
        0     0     0     0     0      0     0     0     0     0     0 nfs
        0     0     0     0     0      0     0     0     0     0     0 zfs
        0     0     0     0     0      0     0     0     0     0     0 lofs
        0     0     0     0     0      0     0     0     0     0     0 tmpfs
        0     0     0     0     0      0     0     0     0     0     0 mntfs
    
   Where does one second end and the next begin?  Some spacing or repeating
   the titles or something would help a lot.  mpstat and friends all do that;
   this code seems to do it on every third iteration, which I think isn't
   that useful.

4. I'm not sure that the default output is the one which most admins
   would want at a glance.  Just my $0.0002.

   I *think* I want the 'fsstat -a -s' output I propose above.
   Correlated with this is the problem that the rightmost column is too
   narrow; I'd consider sacrificing one or merging two columns to get
   some more room on the right for the mount point.  Put it together,
   I'd like something like this:

    new   name  attr  lookup rddir  read read  write write
    file   ops   ops     ops   ops   ops bytes   ops bytes
   2.15K   582  188K    801K 2.90K  189K  230M 7.25K 7.07M /
      30    37   124     129     0    15   436    16   852 /tmp
      53    12   471     806     0   176 43.7K    13 2.56K /var/run
       0     0     0       0     0     0     0     0     0 /mypool
       6     0   232     150    96 1.71K  168K 5.86K 78.8K /home/dp
       0     0     3       4     0     0     0     0     0 /home/kg
       0     0     4       3     2     0     0     0     0 /opt/SUNWspro.40
   2.95K 2.37K    14  3.88K      0 33.4K 33.4M 35.8K 30.9M /etc/svc/volatile

Thanks again for a very useful tool.

        -dp

-- 
Daniel Price - Solaris Kernel Engineering - dp at eng.sun.com - blogs.sun.com/dp

Reply via email to