Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5058

Improve GC estimation strategy based on both absolute size and relative percentage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.5.12
    • None
    • segment-tar
    • None

    Description

      A better way of deciding whether GC should run or not might be by looking at the numbers computed in SizeDeltaGcEstimation from both an absolute size and relative percentage point of view. For example it would make sense to run compaction only if at least one criterion is met: "run if there is > 50% increase or more than 10GB".

      Since the absolute threshold is already implemented (see SegmentGCOptions.SIZE_DELTA_ESTIMATION_DEFAULT), it would be nice to add also something like SegmentGCOptions.SIZE_PERCENTAGE_ESTIMATION_DEFAULT and use it in making the decision.

      Attachments

        1. OAK-5058-01.patch
          12 kB
          Andrei Dulceanu

        Issue Links

          Activity

            People

              adulceanu Andrei Dulceanu
              adulceanu Andrei Dulceanu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: