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

[GR-58624] Support -XX:+AlwaysPreTouch in native image with EpsilonGC #9789

Open
kostya-sh opened this issue Sep 30, 2024 · 0 comments
Open

Comments

@kostya-sh
Copy link

Feature request

Please include the following information:

Is your feature request related to a problem? Please describe.
EpsilonGC is suited quite well for use cases when low latency is required. Page faults introduce unnecessary jitter and pre-initializing memory at startup helps to avoid them. Oracle JVM supports AlwaysPreTouch VM option for this:

Pre-touch the Java heap during JVM initialization. Every page of the heap is thus demand-zeroed during initialization rather than incrementally during application execution.

If EpsilonGC is used in Oracle JVM a suggestion to enable AlwaysPreTouch is logged. See https://bugs.openjdk.org/browse/JDK-8232051.

Describe the solution you'd like.
Add support for AlwaysPreTouch to EpsilonGC.

Describe who do you think will benefit the most.
GraalVM users using native image to achieve predictable low latency.

Describe alternatives you've considered.
-R:±AlwaysPreTouch is supported by G1 GC in native image. Unfortunately G1 GC is not suitable for the low latency applications as it is stop-the-world GC with multi-ms pauses.

Express whether you'd like to help contributing this feature
If you'd like to contribute, please read the contribution guide.

@kostya-sh kostya-sh changed the title Support -XX:+AlwaysPreTouch (useful for EpsilonGC) Support -XX:+AlwaysPreTouch in native image with EpsilonGC Sep 30, 2024
@oubidar-Abderrahim oubidar-Abderrahim self-assigned this Oct 1, 2024
@oubidar-Abderrahim oubidar-Abderrahim changed the title Support -XX:+AlwaysPreTouch in native image with EpsilonGC [GR-58624] Support -XX:+AlwaysPreTouch in native image with EpsilonGC Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants