RFR: 8312116: GenShen: make instantaneous allocation rate triggers more timely [v2]

William Kemper wkemper at openjdk.org
Mon Jan 5 19:57:27 UTC 2026


On Mon, 5 Jan 2026 19:54:04 GMT, Kelvin Nilsen <kdnilsen at openjdk.org> wrote:

>> After studying large numbers of GC logs with degenerated cycles that have resulted from "late" triggers, we propose the following general improvements:
>> 
>> 1. Track trends in GC times rather than always using the average GC time plus standard deviation.  In many situations, GC times trend upward due to, for example, increasing amounts of live data that must be marked as a workload builds up its working set of memory.
>> 2. Sample allocation rates more frequently than once every 100 ms.
>> 3. Track trends in allocation rates.  In some situations, the allocation rate trends upwards due to, for example, the start of a new phase of execution or a spike in client workload.
>> 4. When we detect acceleration of allocation rate, predict consumption of memory based on accelerated allocation rates rather than assuming constant allocation rate.
>
> Kelvin Nilsen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   add another override

Can we remove the `KELVIN_*` macros? Perhaps fine tune some of the logging to `log_trace(gc, ergo)` or `log_debug(gc, ergo)` where appropriate?

-------------

Changes requested by wkemper (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29039#pullrequestreview-3628222792


More information about the hotspot-gc-dev mailing list