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

Streamline compact stats

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.1, 5.2.0, 5.0.5
    • None
    • None
    • 5
    • Storage - Ra 2021-11-01, Storage - Ra 2021-11-15

    Description

      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. 

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: