-
Enhancement
-
Resolution: Fixed
-
P4
-
9
-
b89
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142710 | emb-9 | Thomas Schatzl | P4 | Resolved | Fixed | team |
At the end of collection the concurrent refinement thresholds are adjusted according to the recently processed number of buffers to make sure that in the next collection the gc can keep up with the allocated time for the Update RS phase.
However, this does not take the other part of the update rs phase, draining the hot card cache into account. (See G1CollectoryPolicy::adjust_concurrent_refinement()).
The hot card cache may contribute significantly to update RS time, containing 2^G1ConcRSLogCacheSize entries (10 by default). Since they also need to processed, and this may be a considerable amount, they may need to be taken into account here.
(The 2^10 entries correspond to "only" four full DCQ buffers, but they are almost guaranteed to be full, and not containing duplicates, so they may actually be more work than corresponding DCQ entry buffers)
However, this does not take the other part of the update rs phase, draining the hot card cache into account. (See G1CollectoryPolicy::adjust_concurrent_refinement()).
The hot card cache may contribute significantly to update RS time, containing 2^G1ConcRSLogCacheSize entries (10 by default). Since they also need to processed, and this may be a considerable amount, they may need to be taken into account here.
(The 2^10 entries correspond to "only" four full DCQ buffers, but they are almost guaranteed to be full, and not containing duplicates, so they may actually be more work than corresponding DCQ entry buffers)
- backported by
-
JDK-8142710 Adjustment of concurrent refinement thresholds does not take hot card cache into account
- Resolved
- duplicates
-
JDK-8135062 Hot Card Cache Scan time intermixed with costs per card during update RS for GC base time prediction
- Closed
- relates to
-
JDK-8137022 Concurrent refinement thread adjustment and (de-)activation suboptimal
- Resolved