Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptive GC policy and other improvements. #3589

Merged
merged 28 commits into from
Sep 11, 2021
Merged

Conversation

graalvmbot
Copy link
Collaborator

@graalvmbot graalvmbot commented Jul 15, 2021

At the core of this PR is a (partial) port of HotSpot's ParallelGC PSAdaptiveSizePolicy, which tries to meet a throughput goal while maintaining a low footprint by adjusting the space sizes and the tenuring threshold based on statistical information that it keeps.
The other changes in this PR are improvements and fixes to make our serial GC behave more like ParallelGC (without the parallel part). Most prominently, this means using survivor spaces during full GCs and for pinned objects and tenuring survivor objects during a collection once the young generation is full. The old GC policies and their behavior are retained.
In its current state, peak throughput can be significantly higher than with the previous GC policy, but typically at the price of a higher peak resident set size, as benchmarked with microservice workloads.

@graalvmbot graalvmbot force-pushed the github/ph/GR-32616 branch 3 times, most recently from d6e603a to eca580b Compare July 16, 2021 06:52
@peter-hofer peter-hofer changed the title GR-32616 GC improvements. Jul 16, 2021
@graalvmbot graalvmbot force-pushed the github/ph/GR-32616 branch from eca580b to 0615f42 Compare July 16, 2021 08:22
@peter-hofer peter-hofer marked this pull request as draft July 16, 2021 12:59
@peter-hofer peter-hofer self-assigned this Jul 16, 2021
@graalvmbot graalvmbot force-pushed the github/ph/GR-32616 branch 14 times, most recently from 25b4e29 to 575ebed Compare August 4, 2021 08:22
@graalvmbot graalvmbot force-pushed the github/ph/GR-32616 branch 4 times, most recently from 06f523a to a49118a Compare August 11, 2021 22:12
…generation; use young generation size for basic policies, too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants