-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Disable preventive GC #15380
Disable preventive GC #15380
Conversation
I think that we should add this to the default jvm.config files. cc @trinodb/maintainers |
Is it enabled by default? |
Yes, so a pr was created to disable it by default. However, it is only applied to java 20 and not 17. |
02665cb
to
c0fcec9
Compare
Please update the RPM config and product tests too. |
c0fcec9
to
1a1c034
Compare
1a1c034
to
985c135
Compare
@@ -156,6 +158,7 @@ temporary directory by adding ``-Djava.io.tmpdir=/path/to/other/tmpdir`` to the | |||
list of JVM options. | |||
|
|||
We enable ``-XX:+UnlockDiagnosticVMOptions`` and ``-XX:+UseAESCTRIntrinsics`` to improve AES performance for S3, etc. on ARM64 (`JDK-8271567 <https://bugs.openjdk.java.net/browse/JDK-8271567>`_) | |||
We disable prevent GC (``-XX:-G1UsePreventiveGC``) for performance reasons (see `JDK-8293861 <https://bugs.openjdk.org/browse/JDK-8293861>`_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: prevent -> preventive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also change
# Prevent GC for performance reasons (JDK-8293861)
to
# Disable Preventive GC for performance reasons (JDK-8293861)
everywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @losipiuk for correcting my mistakes (#15380 (comment))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % nits
985c135
to
d57e2d8
Compare
@Chaho12 v350 is running on JDK11 |
f6f94e2
to
ef53984
Compare
Oh i see. I removed |
Thank you, @Chaho12, for contributing this! |
Description
Preventive GC was added in 17, but has issues so JDK 20 disables it by default (plans to completely remove it in JDK 21)
Users should be aware that until Trino uses java 20+, they should not use preventive GC as it could lead to unexpected OOM
Additional context and related issues
Release notes
(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text: