Skip to content

Commit 907770c

Browse files
authored
Increase io.netty.iouring.ringSize for some Vert.x benchmarks that use io_uring (#10384)
I see the following warnings when running these benchmarks on my device: ``` io.netty.channel.uring.IoUringIoHandler processCompletionsAndHandleOverflow vertx: WARNING: CompletionQueue overflow detected, consider increasing size: 4096 ```
1 parent 975a93d commit 907770c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

frameworks/Java/vertx/vertx-postgres.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ CMD export DBIP=`getent hosts tfb-database | awk '{ print $1 }'` && \
3030
-Dio.netty.noUnsafe=false \
3131
-Dio.netty.buffer.checkBounds=false \
3232
-Dio.netty.buffer.checkAccessible=false \
33+
-Dio.netty.iouring.ringSize=16384 \
3334
-jar \
3435
target/vertx.benchmark-0.0.1-SNAPSHOT-fat.jar \
3536
src/main/conf/config.json

frameworks/Java/vertx/vertx.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ RUN mvn package -q
66

77
EXPOSE 8080
88

9-
CMD ["java", "--enable-native-access=ALL-UNNAMED", "--sun-misc-unsafe-memory-access=allow", "--add-opens=java.base/java.lang=ALL-UNNAMED", "-Xms2G", "-Xmx2G", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-XX:+UnlockDiagnosticVMOptions", "-XX:+DebugNonSafepoints", "-Djava.lang.Integer.IntegerCache.high=10000", "-Dvertx.disableMetrics=true", "-Dvertx.disableWebsockets=true", "-Dvertx.disableContextTimings=true", "-Dvertx.disableHttpHeadersValidation=true", "-Dvertx.cacheImmutableHttpResponseHeaders=true", "-Dvertx.internCommonHttpRequestHeadersToLowerCase=true", "-Dio.netty.noUnsafe=false", "-Dio.netty.buffer.checkBounds=false", "-Dio.netty.buffer.checkAccessible=false", "-jar", "target/vertx.benchmark-0.0.1-SNAPSHOT-fat.jar", "src/main/conf/config.json"]
9+
CMD ["java", "--enable-native-access=ALL-UNNAMED", "--sun-misc-unsafe-memory-access=allow", "--add-opens=java.base/java.lang=ALL-UNNAMED", "-Xms2G", "-Xmx2G", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-XX:+UnlockDiagnosticVMOptions", "-XX:+DebugNonSafepoints", "-Djava.lang.Integer.IntegerCache.high=10000", "-Dvertx.disableMetrics=true", "-Dvertx.disableWebsockets=true", "-Dvertx.disableContextTimings=true", "-Dvertx.disableHttpHeadersValidation=true", "-Dvertx.cacheImmutableHttpResponseHeaders=true", "-Dvertx.internCommonHttpRequestHeadersToLowerCase=true", "-Dio.netty.noUnsafe=false", "-Dio.netty.buffer.checkBounds=false", "-Dio.netty.buffer.checkAccessible=false", "-Dio.netty.iouring.ringSize=16384", "-jar", "target/vertx.benchmark-0.0.1-SNAPSHOT-fat.jar", "src/main/conf/config.json"]

frameworks/Kotlin/vertx-web-kotlin-dsljson/vertx-web-kotlin-dsljson-postgresql.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ CMD java \
5151
-Dio.netty.buffer.checkAccessible=false \
5252
-Dio.netty.leakDetection.level=disabled \
5353
-Dio.netty.iouring.ringSize=4096 \
54-
-Dio.netty.iouring.cqSize=8192 \
54+
-Dio.netty.iouring.ringSize=16384 \
5555
-Dtfb.type=postgres \
5656
-jar /app/vertx-web-kotlin-dsljson.jar

frameworks/Kotlin/vertx-web-kotlin-dsljson/vertx-web-kotlin-dsljson.dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ CMD java \
5050
-Dio.netty.buffer.checkBounds=false \
5151
-Dio.netty.buffer.checkAccessible=false \
5252
-Dio.netty.leakDetection.level=disabled \
53-
-Dio.netty.iouring.ringSize=4096 \
54-
-Dio.netty.iouring.cqSize=8192 \
53+
-Dio.netty.iouring.ringSize=16384 \
5554
-Dtfb.type=basic \
5655
-jar /app/vertx-web-kotlin-dsljson.jar

0 commit comments

Comments
 (0)