Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8275

Streamline compact stats

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 5.2.0, 5.0.5
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 5
    • Storage - Ra 2021-11-01, Storage - Ra 2021-11-15

      I have noted some inconsistency in the stats from the compact changes. For example, csuite/test_wt8057_compact_stress output looks like this:

      Running Loop: 11
       - Compacted file size: 140MB (146870272B)
       - Available for reuse: 8MB (9261056B)
       - 6% space available in the file.
       - Pages reviewed: 32916
       - Pages selected for being rewritten: 61260
       - Pages actually rewritten: 8280 

      As observed in the logs above, the "pages rewritten" are greater than "pages reviewed". I looked at the code that manages the stat and looks like we are incorrectly collecting the stats, i.e., either not registering events when we should or double counting some events.

      The aim intends to do two things:

      • Fix compact stat accounting
      • Revisit the stats collected for compact and look for opportunities to streamline them. 

            Assignee:
            haseeb.bokhari@mongodb.com Haseeb Bokhari (Inactive)
            Reporter:
            ravi.giri@mongodb.com Ravi Giri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: