zfs_blkstats

I tripped over this while looking at something else in mdb. My curious mind wondered what it was and might it be useful at some point in the future.

# zpool scrub pool
mdb -k
> ::help zfs_blkstats

NAME
  zfs_blkstats - given a spa_t, print block type stats from last scrub

SYNOPSIS
  addr ::zfs_blkstats [-v]

ATTRIBUTES

  Target: kvm
  Module: zfs
  Interface Stability: Unstable

> ::walk spa | ::zfs_blkstats -v
Dittoed blocks on same vdev: 2194

Blocks  LSIZE   PSIZE   ASIZE     avg    comp   %Total  Type
     1    512     512   1.50K   1.50K    1.00     0.00  object directory
     2     1K      1K   3.00K   1.50K    1.00     0.00  object array
     1    16K   1.50K   4.50K   4.50K   10.66     0.00  packed nvlist
     1    16K      1K   3.00K   3.00K   16.00     0.00  bplist
    20   128K   42.5K    128K   6.37K    3.01     0.00  SPA space map
    16    64K   38.5K    116K   7.21K    1.66     0.00    L0 SPA space map
     4    64K      4K   12.0K   3.00K   16.00     0.00    L1 SPA space map
    58   928K   60.0K    124K   2.13K   15.46     0.00  DMU dnode
    10   160K   12.0K   28.0K   2.79K   13.33     0.00    L0 DMU dnode
     8   128K      8K     16K      2K   16.00     0.00    L1 DMU dnode
     8   128K      8K     16K      2K   16.00     0.00    L2 DMU dnode
     8   128K      8K     16K      2K   16.00     0.00    L3 DMU dnode
     8   128K      8K     16K      2K   16.00     0.00    L4 DMU dnode
     8   128K      8K     16K      2K   16.00     0.00    L5 DMU dnode
     8   128K      8K     16K      2K   16.00     0.00    L6 DMU dnode
     9  9.00K   4.50K    9.5K   1.05K    2.00     0.00  DMU objset
     4     2K      2K   6.00K   1.50K    1.00     0.00  DSL directory child map
     3  1.50K   1.50K   4.50K   1.50K    1.00     0.00  DSL dataset snap map
     6  65.0K   8.50K   25.5K   4.25K    7.64     0.00  DSL props
     1    512     512      1K      1K    1.00     0.00  ZFS directory
     1    512     512      1K      1K    1.00     0.00  ZFS master node
     1    512     512      1K      1K    1.00     0.00  ZFS delete queue
  258K  2.03G   2.00G   2.00G   7.95K    1.01    99.98  zvol object
  256K  1.99G   1.99G   1.99G      8K    1.00    99.72    L0 zvol object
 2.00K  32.0M   2.52M   5.05M   2.52K   12.68     0.24    L1 zvol object
    22   352K    152K    303K   13.7K    2.32     0.01    L2 zvol object
     7   112K   10.5K   21.0K   3.00K   10.66     0.00    L3 zvol object
     1    512     512      1K      1K    1.00     0.00  zvol prop
     1   128K   6.00K   18.0K   18.0K   21.33     0.00  SPA history
     1    512     512   1.50K   1.50K    1.00     0.00  DSL dataset next clones
  258K  2.03G   2.00G   2.00G   7.95K    1.01    100.0  Total
  256K  2.00G   1.99G   2.00G   7.99K    1.00    99.73    L0 Total
 2.01K  32.2M   2.54M   5.08M   2.52K   12.70     0.24    L1 Total
    30   480K    160K    319K   10.6K    3.00     0.01    L2 Total
    15   240K   18.5K   37.0K   2.46K   12.97     0.00    L3 Total
     8   128K      8K     16K      2K   16.00     0.00    L4 Total
     8   128K      8K     16K      2K   16.00     0.00    L5 Total
     8   128K      8K     16K      2K   16.00     0.00    L6 Total
> 
Comments:

Post a Comment:
Comments are closed for this entry.
About

clive

Search

Categories
Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today