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

Make background compaction skip the initial checkpoint in compact

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.3.0, 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: Compaction
    • None
    • Storage Engines
    • 3
    • 2024-01-09 - I Grew Tired

      Compaction proceeds if the two criteria are met:

      • The file size is greater than 1MB
      • The number of available bytes is greater than the specified target

      However, before checking those two conditions, an initial system-wide checkpoint is taken. Even though this checkpoint may help to pass the aforementioned criteria, this can be overkill and lead to perf impacts, especially with background compaction that is reviewing each file periodically.

      What needs to be done:

      • Skip the initial checkpoint if the code is executed by the background compaction thread.
      • Update any relevant documentation in the file.
      • Make sure the existing background compaction tests are not impacted or update them if needed.

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: