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

ZGC: Make SoftReference reclaimation more agressive

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 11, 12
    • hotspot
    • gc

      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.

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

              Created:
              Updated: