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

ZGC: Make SoftReference reclaimation more agressive

    XMLWordPrintable

    Details

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

      Description

      Testing done by [~huntch] suggests that it would be useful to reclaim SoftReferences a bit more aggressively. The SoftRefLRUPolicyMSPerMB parameter, which today defaults to 1000, seems to be tuned for STW collectors (no one really seems to know or remember how this value was picked). In concurrent collectors a lower value (like 200) seems be a better fit. This tends to result in SoftReferences being reclaimed more gradually as apposed to all-or-nothing, which can sometimes be observed. These observations can also be backed up by how JRockit did this. There concurrent collectors also defaulted to using a lower value (200) for SoftRefLRUPolicyMSPerMB. The proposal is to adjust the default value for SoftRefLRUPolicyMSPerMB to 200 for ZGC.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              pliden Per Liden (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: