Project

General

Profile

Bug #6352

space map refcount mismatch

Added by Richard Kojedzinszky about 6 years ago. Updated about 6 years ago.

Status:
Closed: Behaves correctly
Priority:
No priority
Assignee:
Xin Li
Category:
-
Target version:
-
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

According to discussion of 'ZFS leaking pool free space', I've ran zdb -bb on one of our pool, and found at the end:

# zdb -bb main

Traversing all blocks to verify nothing leaked ...

8.27G completed (  84MB/s) estimated time remaining: 0hr 00min 00sec        
        No leaks (block sum matches space maps exactly)

        bp count:          292404
        ganged count:           0
        bp logical:    29640869888      avg: 101369
        bp physical:   8076853760      avg:  27622     compression:   3.67
        bp allocated:  8905535488      avg:  30456     compression:   3.33
        bp deduped:             0    ref>1:      0   deduplication:   1.00
        SPA allocated: 8905535488     used:  8.51%

        additional, non-pointer bps of type 0:        222
        Dittoed blocks on same vdev: 31679

Blocks  LSIZE   PSIZE   ASIZE     avg    comp   %Total  Type
     -      -       -       -       -       -        -  unallocated
     2    32K   4.50K   24.0K   12.0K    7.11     0.00  object directory
     2     1K     512   12.0K   6.00K    2.00     0.00  object array
     2    32K   1.50K   24.0K   12.0K   21.33     0.00  packed nvlist
     -      -       -       -       -       -        -  packed nvlist size
    24  2.56M    182K    720K   30.0K   14.42     0.01  bpobj
     -      -       -       -       -       -        -  bpobj header
     -      -       -       -       -       -        -  SPA space map header
   207  1.09M    474K   2.43M   12.0K    2.35     0.03  SPA space map
     3   144K    144K    144K   48.0K    1.00     0.00  ZIL intent log
 11.0K   177M   15.9M   89.0M   8.06K   11.08     1.05  DMU dnode
    11  22.0K   5.50K   92.0K   8.36K    4.00     0.00  DMU objset
     -      -       -       -       -       -        -  DSL directory
    11  5.50K      1K   24.0K   2.18K    5.50     0.00  DSL directory child map
     -      -       -       -       -       -        -  DSL dataset snap map
    12  37.0K      4K   24.0K      2K    9.25     0.00  DSL props
     -      -       -       -       -       -        -  DSL dataset
     -      -       -       -       -       -        -  ZFS znode
     -      -       -       -       -       -        -  ZFS V0 ACL
  273K  27.4G   7.50G   8.20G   30.7K    3.65    98.81  ZFS plain file
   759  11.0M   2.99M   8.06M   10.9K    3.69     0.09  ZFS directory
     8     8K      4K     64K      8K    2.00     0.00  ZFS master node
     -      -       -       -       -       -        -  ZFS delete queue
     -      -       -       -       -       -        -  zvol object
     -      -       -       -       -       -        -  zvol prop
     -      -       -       -       -       -        -  other uint8[]
     -      -       -       -       -       -        -  other uint64[]
     -      -       -       -       -       -        -  other ZAP
     -      -       -       -       -       -        -  persistent error log
     1   128K   3.50K   12.0K   12.0K   36.57     0.00  SPA history
     -      -       -       -       -       -        -  SPA history offsets
     -      -       -       -       -       -        -  Pool properties
     -      -       -       -       -       -        -  DSL permissions
     -      -       -       -       -       -        -  ZFS ACL
     -      -       -       -       -       -        -  ZFS SYSACL
     -      -       -       -       -       -        -  FUID table
     -      -       -       -       -       -        -  FUID table size
     2  1.50K     512   12.0K   6.00K    3.00     0.00  DSL dataset next clones
     -      -       -       -       -       -        -  scan work queue
     -      -       -       -       -       -        -  ZFS user/group used
     -      -       -       -       -       -        -  ZFS user/group quota
     -      -       -       -       -       -        -  snapshot refcount tags
     -      -       -       -       -       -        -  DDT ZAP algorithm
     -      -       -       -       -       -        -  DDT statistics
     -      -       -       -       -       -        -  System attributes
     -      -       -       -       -       -        -  SA master node
     8  12.0K      4K     64K      8K    3.00     0.00  SA attr registration
    16   256K     32K    128K      8K    8.00     0.00  SA attr layouts
     -      -       -       -       -       -        -  scan translations
     -      -       -       -       -       -        -  deduplicated block
     -      -       -       -       -       -        -  DSL deadlist map
     -      -       -       -       -       -        -  DSL deadlist map hdr
     2  1.50K     512   12.0K   6.00K    3.00     0.00  DSL dir clones
     -      -       -       -       -       -        -  bpobj subobj
     7  76.0K   11.0K   84.0K   12.0K    6.91     0.00  deferred free
     -      -       -       -       -       -        -  dedup ditto
     5  33.5K   6.00K   60.0K   12.0K    5.58     0.00  other
  286K  27.6G   7.52G   8.29G   29.7K    3.67   100.00  Total

space map refcount mismatch: expected 35 != actual 34

Should I worry about that?


Related issues

Related to FreeNAS - Bug #6353: zdb -bb shows leaked spaceClosed: Behaves correctly2014-10-16

History

#1 Updated by Xin Li about 6 years ago

  • Related to Bug #6353: zdb -bb shows leaked space added

#2 Updated by Xin Li about 6 years ago

  • Status changed from Unscreened to Closed: Behaves correctly

Richard Kojedzinszky wrote:

According to discussion of 'ZFS leaking pool free space', I've ran zdb -bb on one of our pool, and found at the end:

[...]

Should I worry about that?

No.

#3 Updated by Richard Kojedzinszky about 6 years ago

I actually exported the pool, after it I still have space map refcount mismatch:

# zdb -bb -e main

Traversing all blocks to verify nothing leaked ...

8.25G completed ( 205MB/s) estimated time remaining: 0hr 00min 00sec        
    No leaks (block sum matches space maps exactly)

    bp count:          292418
    ganged count:           0
    bp logical:    29641150464      avg: 101365
    bp physical:   8076870144      avg:  27620     compression:   3.67
    bp allocated:  8905695232      avg:  30455     compression:   3.33
    bp deduped:             0    ref>1:      0   deduplication:   1.00
    SPA allocated: 8905695232     used:  8.51%

    additional, non-pointer bps of type 0:        222
    Dittoed blocks on same vdev: 31692

Blocks    LSIZE    PSIZE    ASIZE      avg     comp    %Total    Type
     -        -        -        -        -        -         -    unallocated
     2      32K    4.50K    24.0K    12.0K     7.11      0.00    object directory
     2       1K      512    12.0K    6.00K     2.00      0.00    object array
     2      32K    1.50K    24.0K    12.0K    21.33      0.00    packed nvlist
     -        -        -        -        -        -         -    packed nvlist size
    24    2.56M     182K     720K    30.0K    14.42      0.01    bpobj
     -        -        -        -        -        -         -    bpobj header
     -        -        -        -        -        -         -    SPA space map header
   209    1.10M     478K    2.45M    12.0K     2.35      0.03    SPA space map
     3     144K     144K     144K    48.0K     1.00      0.00    ZIL intent log
 11.0K     177M    15.9M    89.0M    8.06K    11.08      1.05    DMU dnode
    11    22.0K    5.50K    92.0K    8.36K     4.00      0.00    DMU objset
     -        -        -        -        -        -         -    DSL directory
    11    5.50K       1K    24.0K    2.18K     5.50      0.00    DSL directory child map
     -        -        -        -        -        -         -    DSL dataset snap map
    12    37.0K       4K    24.0K       2K     9.25      0.00    DSL props
     -        -        -        -        -        -         -    DSL dataset
     -        -        -        -        -        -         -    ZFS znode
     -        -        -        -        -        -         -    ZFS V0 ACL
  273K    27.4G    7.50G    8.20G    30.7K     3.65     98.81    ZFS plain file
   759    11.0M    2.99M    8.06M    10.9K     3.69      0.09    ZFS directory
     8       8K       4K      64K       8K     2.00      0.00    ZFS master node
     -        -        -        -        -        -         -    ZFS delete queue
     -        -        -        -        -        -         -    zvol object
     -        -        -        -        -        -         -    zvol prop
     -        -        -        -        -        -         -    other uint8[]
     -        -        -        -        -        -         -    other uint64[]
     -        -        -        -        -        -         -    other ZAP
     -        -        -        -        -        -         -    persistent error log
     1     128K    3.50K    12.0K    12.0K    36.57      0.00    SPA history
     -        -        -        -        -        -         -    SPA history offsets
     -        -        -        -        -        -         -    Pool properties
     -        -        -        -        -        -         -    DSL permissions
     -        -        -        -        -        -         -    ZFS ACL
     -        -        -        -        -        -         -    ZFS SYSACL
     -        -        -        -        -        -         -    FUID table
     -        -        -        -        -        -         -    FUID table size
     2    1.50K      512    12.0K    6.00K     3.00      0.00    DSL dataset next clones
     -        -        -        -        -        -         -    scan work queue
     -        -        -        -        -        -         -    ZFS user/group used
     -        -        -        -        -        -         -    ZFS user/group quota
     -        -        -        -        -        -         -    snapshot refcount tags
     -        -        -        -        -        -         -    DDT ZAP algorithm
     -        -        -        -        -        -         -    DDT statistics
     -        -        -        -        -        -         -    System attributes
     -        -        -        -        -        -         -    SA master node
     8    12.0K       4K      64K       8K     3.00      0.00    SA attr registration
    16     256K      32K     128K       8K     8.00      0.00    SA attr layouts
     -        -        -        -        -        -         -    scan translations
     -        -        -        -        -        -         -    deduplicated block
     -        -        -        -        -        -         -    DSL deadlist map
     -        -        -        -        -        -         -    DSL deadlist map hdr
     2    1.50K      512    12.0K    6.00K     3.00      0.00    DSL dir clones
     -        -        -        -        -        -         -    bpobj subobj
    18     328K    25.0K     216K    12.0K    13.12      0.00    deferred free
     -        -        -        -        -        -         -    dedup ditto
     5    33.5K    6.00K    60.0K    12.0K     5.58      0.00    other
  286K    27.6G    7.52G    8.29G    29.7K     3.67    100.00    Total

space map refcount mismatch: expected 35 != actual 34

Should I still be not worried?

Also available in: Atom PDF