Skip to content

Instantly share code, notes, and snippets.

@tonyhutter
Created April 10, 2024 20:33
Show Gist options
  • Save tonyhutter/ab3f0ee1c0c0e9a132cb802a766862ec to your computer and use it in GitHub Desktop.
Save tonyhutter/ab3f0ee1c0c0e9a132cb802a766862ec to your computer and use it in GitHub Desktop.
special_block_stats_fedora_38
Fedora 38 root directory contents ('/') copied to zfs pool with one special device, all default pool settings, /home and /dev excluded:
$ zdb -PLbbbs tank
Blocks LSIZE PSIZE ASIZE avg comp %Total Type
- - - - - - - unallocated
2 32768 4608 13824 6912 7.11 0.00 object directory
2 1024 512 1536 768 2.00 0.00 object array
1 16384 1024 3072 3072 16.00 0.00 packed nvlist
- - - - - - - packed nvlist size
- - - - - - - bpobj
- - - - - - - bpobj header
- - - - - - - SPA space map header
61 7995392 97280 291840 4784 82.19 0.00 SPA space map
- - - - - - - ZIL intent log
32553 537591808 61126144 122265600 3755 8.79 1.21 DMU dnode
2 8192 1024 2560 1280 8.00 0.00 DMU objset
- - - - - - - DSL directory
- - - - - - - DSL directory child map
- - - - - - - DSL dataset snap map
- - - - - - - DSL props
- - - - - - - DSL dataset
- - - - - - - ZFS znode
- - - - - - - ZFS V0 ACL
381269 264630784 12225536 24451072 64 21.65 0.24 ZFS directory
1 512 512 1024 1024 1.00 0.00 ZFS master node
- - - - - - - ZFS delete queue
- - - - - - - zvol object
- - - - - - - zvol prop
- - - - - - - other uint8[]
- - - - - - - other uint64[]
- - - - - - - other ZAP
- - - - - - - persistent error log
1 131072 2048 6144 6144 64.00 0.00 SPA history
- - - - - - - SPA history offsets
- - - - - - - Pool properties
- - - - - - - DSL permissions
- - - - - - - ZFS ACL
- - - - - - - ZFS SYSACL
- - - - - - - FUID table
- - - - - - - FUID table size
- - - - - - - DSL dataset next clones
- - - - - - - scan work queue
3 7680 1536 3072 1024 5.00 0.00 ZFS user/group/project used
- - - - - - - ZFS user/group/project quota
- - - - - - - snapshot refcount tags
- - - - - - - DDT ZAP algorithm
- - - - - - - DDT statistics
3565 1825280 1825280 3650560 1024 1.00 0.04 System attributes
- - - - - - - SA master node
1 1536 512 1024 1024 3.00 0.00 SA attr registration
2 32768 4096 8192 4096 8.00 0.00 SA attr layouts
- - - - - - - scan translations
- - - - - - - deduplicated block
- - - - - - - DSL deadlist map
- - - - - - - DSL deadlist map hdr
- - - - - - - DSL dir clones
- - - - - - - bpobj subobj
- - - - - - - deferred free
- - - - - - - dedup ditto
16 338432 15872 47616 2976 21.32 0.00 other
1 131072 1024 2048 2048 128.00 0.00 L5 Total
1 131072 1024 2048 2048 128.00 0.00 L4 Total
1 131072 1024 2048 2048 128.00 0.00 L3 Total
8 1048576 9728 19456 2432 107.79 0.00 L2 Total
14863 1948123136 20012032 40025600 2692 97.35 0.39 L1 Total
[hutter@fedora38 zfs]$ cat ~/kpool_metadata_output.txt
Traversing all blocks ...
bp count: 1132772
ganged count: 0
bp logical: 20992134144 avg: 18531
bp physical: 10042183680 avg: 8865 compression: 2.09
bp allocated: 10135813632 avg: 8947 compression: 2.07
bp deduped: 0 ref>1: 0 deduplication: 1.00
bp cloned: 0 count: 0
Normal class: 9553894400 used: 45.63%
Special class 173833216 used: 17.27%
Embedded log class 0 used: -nan%
additional, non-pointer bps of type 0: 726278
number of (compressed) bytes: number of bps
17: 138 *
18: 445 *
19: 6 *
20: 58 *
21: 21 *
22: 52 *
23: 17 *
24: 922 *
25: 20 *
26: 33 *
27: 24 *
28: 995 *
29: 1212 *
30: 9 *
31: 21 *
32: 5 *
33: 7 *
34: 14 *
35: 14 *
36: 16 *
37: 15 *
38: 17 *
39: 57 *
40: 79 *
41: 33 *
42: 66 *
43: 33 *
44: 51 *
45: 55 *
46: 51 *
47: 60 *
48: 69 *
49: 138 *
50: 415 *
51: 581 *
52: 635 *
53: 347532 ****************************************
54: 647 *
55: 2774 *
56: 2566 *
57: 610 *
58: 648 *
59: 1113 *
60: 752 *
61: 12528 **
62: 31543 ****
63: 11731 **
64: 119771 **************
65: 172684 ********************
66: 414 *
67: 353 *
68: 297 *
69: 262 *
70: 223 *
71: 374 *
72: 376 *
73: 1982 *
74: 2593 *
75: 446 *
76: 361 *
77: 248 *
78: 191 *
79: 160 *
80: 208 *
81: 266 *
82: 256 *
83: 191 *
84: 258 *
85: 143 *
86: 212 *
87: 250 *
88: 241 *
89: 184 *
90: 279 *
91: 206 *
92: 214 *
93: 264 *
94: 219 *
95: 216 *
96: 175 *
97: 214 *
98: 163 *
99: 205 *
100: 213 *
101: 155 *
102: 185 *
103: 216 *
104: 193 *
105: 146 *
106: 169 *
107: 190 *
108: 178 *
109: 158 *
110: 162 *
111: 163 *
112: 223 *
Dittoed blocks on same vdev: 61332
Blocks LSIZE PSIZE ASIZE avg comp %Total Type
- - - - - - - unallocated
2 32768 4608 13824 6912 7.11 0.00 object directory
2 1024 512 1536 768 2.00 0.00 object array
1 16384 1024 3072 3072 16.00 0.00 packed nvlist
- - - - - - - packed nvlist size
- - - - - - - bpobj
- - - - - - - bpobj header
- - - - - - - SPA space map header
61 7995392 97280 291840 4784 82.19 0.00 SPA space map
- - - - - - - ZIL intent log
1 131072 1024 2048 2048 128.00 0.00 L5 DMU dnode
1 131072 1024 2048 2048 128.00 0.00 L4 DMU dnode
1 131072 1024 2048 2048 128.00 0.00 L3 DMU dnode
1 131072 2560 5120 5120 51.20 0.00 L2 DMU dnode
33 4325376 1500160 3001856 90965 2.88 0.03 L1 DMU dnode
32516 532742144 59620352 119252480 3667 8.94 1.18 L0 DMU dnode
32553 537591808 61126144 122265600 3755 8.79 1.21 DMU dnode
2 8192 1024 2560 1280 8.00 0.00 DMU objset
- - - - - - - DSL directory
- - - - - - - DSL directory child map
- - - - - - - DSL dataset snap map
- - - - - - - DSL props
- - - - - - - DSL dataset
- - - - - - - ZFS znode
- - - - - - - ZFS V0 ACL
7 917504 7168 14336 2048 128.00 0.00 L2 ZFS plain file
14522 1903427584 18181632 36363264 2504 104.69 0.36 L1 ZFS plain file
700747 18275166720 9948688896 9948688896 14197 1.84 98.15 L0 ZFS plain file
715276 20179511808 9966877696 9985066496 13959 2.02 98.51 ZFS plain file
308 40370176 330240 660480 2144 122.24 0.01 L1 ZFS directory
380961 224260608 11895296 23790592 62 18.85 0.23 L0 ZFS directory
381269 264630784 12225536 24451072 64 21.65 0.24 ZFS directory
1 512 512 1024 1024 1.00 0.00 ZFS master node
- - - - - - - ZFS delete queue
- - - - - - - zvol object
- - - - - - - zvol prop
- - - - - - - other uint8[]
- - - - - - - other uint64[]
- - - - - - - other ZAP
- - - - - - - persistent error log
1 131072 2048 6144 6144 64.00 0.00 SPA history
- - - - - - - SPA history offsets
- - - - - - - Pool properties
- - - - - - - DSL permissions
- - - - - - - ZFS ACL
- - - - - - - ZFS SYSACL
- - - - - - - FUID table
- - - - - - - FUID table size
- - - - - - - DSL dataset next clones
- - - - - - - scan work queue
3 7680 1536 3072 1024 5.00 0.00 ZFS user/group/project used
- - - - - - - ZFS user/group/project quota
- - - - - - - snapshot refcount tags
- - - - - - - DDT ZAP algorithm
- - - - - - - DDT statistics
3565 1825280 1825280 3650560 1024 1.00 0.04 System attributes
- - - - - - - SA master node
1 1536 512 1024 1024 3.00 0.00 SA attr registration
2 32768 4096 8192 4096 8.00 0.00 SA attr layouts
- - - - - - - scan translations
- - - - - - - deduplicated block
- - - - - - - DSL deadlist map
- - - - - - - DSL deadlist map hdr
- - - - - - - DSL dir clones
- - - - - - - bpobj subobj
- - - - - - - deferred free
- - - - - - - dedup ditto
16 338432 15872 47616 2976 21.32 0.00 other
1 131072 1024 2048 2048 128.00 0.00 L5 Total
1 131072 1024 2048 2048 128.00 0.00 L4 Total
1 131072 1024 2048 2048 128.00 0.00 L3 Total
8 1048576 9728 19456 2432 107.79 0.00 L2 Total
14863 1948123136 20012032 40025600 2692 97.35 0.39 L1 Total
1117898 19042569216 10022158848 10095762432 9031 1.90 99.60 L0 Total
1132772 20992134144 10042183680 10135813632 8947 2.09 100.00 Total
431992 2716620288 93478912 187077120 433 29.06 1.85 Metadata Total
Block Size Histogram
block psize lsize asize
size Count Size Cum. Count Size Cum. Count Size Cum.
512 45308 23197696 23197696 30237 15481344 15481344 34155 17487360 17487360
1024 92639 114555904 137753600 49373 60582912 76064256 75936 91912704 109400064
2048 77449 192834560 330588160 52289 142360064 218424320 83940 216045056 325445120
4096 36924 206192640 536780800 39017 213813760 432238080 57505 291284480 616729600
8192 26854 303467520 840248320 26765 304900096 737138176 27516 312001024 928730624
16384 21128 487713280 1327961600 54869 1030507008 1767645184 21231 489634304 1418364928
32768 31282 1505313280 2833274880 12014 539901952 2307547136 31250 1503897088 2922262016
65536 64659 5865289728 8698564608 7079 637518848 2945065984 64710 5869932544 8792194560
131072 10251 1343619072 10042183680 134851 17675190272 20620256256 10251 1343619072 10135813632
262144 0 0 10042183680 0 0 20620256256 0 0 10135813632
524288 0 0 10042183680 0 0 20620256256 0 0 10135813632
1048576 0 0 10042183680 0 0 20620256256 0 0 10135813632
2097152 0 0 10042183680 0 0 20620256256 0 0 10135813632
4194304 0 0 10042183680 0 0 20620256256 0 0 10135813632
8388608 0 0 10042183680 0 0 20620256256 0 0 10135813632
16777216 0 0 10042183680 0 0 20620256256 0 0 10135813632
capacity operations bandwidth ---- errors ----
description used avail read write read write read write cksum
tank 9.06G 11.4G 46.2K 0 77.2M 0 0 0 0
/dev/vdb1 8.90G 10.6G 7 0 472K 0 0 0 0
/dev/vdc1 (special) 166M 794M 46.1K 0 76.8M 0 0 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment