JDK-8290738 : Improve predictions for preventive GC
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 20
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2022-07-20
  • Updated: 2022-12-14
  • Resolved: 2022-12-14
Related Reports
Blocks :  
Relates :  
Description
Currently preventive gc prediction for regions needed for the GC is fairly inaccurate or too pessimistic.

Reasons include:
* the used waste percentage for estimating survivors from eden is way too pessimistic and too large. While the use of TargetPLABWastePct is reasonable, in practice particularly on larger heaps the waste is far smaller.
That applies to survivors from eden/survivor and old regions.

* survivor regions survivor estimation just takes the amount of memory survived into last gc into account. This does not take into account that the next gc may have a much less survivors. I.e. that value needs to be averaged out somehow.

These problems can cause lots of unnecessary premature (preventive) collections.
Comments
Won't fix because we are removing the feature altogether.
14-12-2022