Skip to content

Commit

Permalink
Remove no longer needed UseAESCTRIntrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Oct 31, 2023
1 parent ccdff82 commit efd3154
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 19 deletions.
4 changes: 1 addition & 3 deletions core/docker/default/etc/jvm.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
-XX:PerBytecodeRecompilationCutoff=10000
-Djdk.attach.allowAttachSelf=true
-Djdk.nio.maxCachedBufferSize=2000000
# Improve AES performance for S3, etc. on ARM64 (JDK-8271567)
-XX:+UnlockDiagnosticVMOptions
-XX:+UseAESCTRIntrinsics
# Reduce starvation of threads by GClocker, recommend to set about the number of cpu cores (JDK-8192647)
-XX:+UnlockDiagnosticVMOptions
-XX:GCLockerRetryAllocationCount=32
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
-XX:PerBytecodeRecompilationCutoff=10000
-Djdk.attach.allowAttachSelf=true
-Djdk.nio.maxCachedBufferSize=2000000
# Improve AES performance for S3, etc. on ARM64 (JDK-8271567)
-XX:+UnlockDiagnosticVMOptions
-XX:+UseAESCTRIntrinsics
# Reduce starvation of threads by GClocker, recommend to set about the number of cpu cores (JDK-8192647)
-XX:+UnlockDiagnosticVMOptions
-XX:GCLockerRetryAllocationCount=32
4 changes: 1 addition & 3 deletions docs/src/main/sphinx/installation/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,9 @@ The following provides a good starting point for creating `etc/jvm.config`:
-XX:PerBytecodeRecompilationCutoff=10000
-Djdk.attach.allowAttachSelf=true
-Djdk.nio.maxCachedBufferSize=2000000
-XX:+UnlockDiagnosticVMOptions
-XX:+UseAESCTRIntrinsics
-Dfile.encoding=UTF-8
# Reduce starvation of threads by GClocker, recommend to set about the number of cpu cores (JDK-8192647)
-XX:+UnlockDiagnosticVMOptions
-XX:GCLockerRetryAllocationCount=32
```

Expand Down Expand Up @@ -173,7 +172,6 @@ prevents Trino from starting. You can workaround this by overriding the
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 set GCLocker retry allocation count (`-XX:GCLockerRetryAllocationCount=32`) to avoid OOM too early (see [JDK-8192647](https://bugs.openjdk.org/browse/JDK-8192647))

(config-properties)=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@
-DHADOOP_USER_NAME=hive
-Duser.timezone=Asia/Kathmandu
-XX:ErrorFile=/docker/logs/product-tests-presto-jvm-error-file.log
-XX:+UnlockDiagnosticVMOptions
-XX:+UseAESCTRIntrinsics
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@
-DHADOOP_USER_NAME=hive
-Duser.timezone=Asia/Kathmandu
-XX:ErrorFile=/docker/logs/product-tests-presto-jvm-error-file.log
-XX:+UnlockDiagnosticVMOptions
-XX:+UseAESCTRIntrinsics
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@
-DHADOOP_USER_NAME=hive
-Duser.timezone=Asia/Kathmandu
-XX:ErrorFile=/docker/logs/product-tests-presto-jvm-error-file.log
-XX:+UnlockDiagnosticVMOptions
-XX:+UseAESCTRIntrinsics
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@
-DHADOOP_USER_NAME=hive
-Duser.timezone=Asia/Kathmandu
-XX:ErrorFile=/docker/logs/product-tests-presto-jvm-error-file.log
-XX:+UnlockDiagnosticVMOptions
-XX:+UseAESCTRIntrinsics
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@
-DHADOOP_USER_NAME=hive
-Duser.timezone=Asia/Kathmandu
-XX:ErrorFile=/docker/logs/product-tests-presto-jvm-error-file.log
-XX:+UnlockDiagnosticVMOptions
-XX:+UseAESCTRIntrinsics

0 comments on commit efd3154

Please sign in to comment.