Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8244664

Improve heuristic to select minimum old cset regions

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 15
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      Currently G1 determines a minimum amount of old gen regions every mixed based on the total number of collection set candidates and the G1MixedGCCountTarget by splitting the former evenly over the latter.

      A potentially better strategy would be to determine this minimum number based on actual bytes reclaimed per region and the allocation rate between gcs. I.e. given an allocation rate of the mutator between (mixed) gc X and the allocation rate in old gen, the minimum regions could be those N regions that free that amount of space (+ some buffer to actually get back to below IHOP level in finite amount of time). The rest of the available time could be distributed to eden regions to better space out mixed gcs.

      At least that would remove the need for the G1MixedGCCountTarget variable which is somewhat hard to tune.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tschatzl Thomas Schatzl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: