GeezerVison is showing github.com — Performance degradation with IO_Uring and auto-read disabled · Issue #15510 · netty/netty
Performance degradation with IO_Uring and auto-read disabled #15510DescriptionWhen testing IO_Uring with auto-read disabled, a performance degradation is observed in comparison to Epoll and IO_Uring incubator where the performance is as expected.
Test case: https://github.com/violetagg/GH-3833
Test environment:
- Netty
4.2.3.Final
- IO_Uring incubator
0.0.26.Final
- Ubuntu 22.04 (
Linux 9041b058e122 6.10.14-linuxkit #1 SMP Sat May 17 08:28:57 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux)
- Java 21
openjdk version "21.0.7" 2025-04-15 LTS
OpenJDK Runtime Environment Temurin-21.0.7+6 (build 21.0.7+6-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.7+6 (build 21.0.7+6-LTS, mixed mode, sharing)
How to build and run the test case:
./mvnw clean install
cd netty/target/
java -jar netty-1.0-SNAPSHOT-jar-with-dependencies.jar
wrk -c200 -t2 -d10s http://127.0.0.1:8080/
Original report reactor/reactor-netty#3833 Activityfranz1981 commented on Jul 24, 2025 Hi @violetagg can you reproduce it by disabling auto read and doing it in a netty only example? violetagg commented on Jul 24, 2025 @franz1981 Yes, the Netty example disables the auto-read and it is reproducible. Even with 4.2.4.Final-SNAPSHOT I'm seeing the one below in addition to the performance degradation.
Jul 24, 2025 9:00:24 AM io.netty.channel.uring.IoUringIoHandler processCompletionsAndHandleOverflow
WARNING: CompletionQueue overflow detected, consider increasing size: 4096
franz1981 commented on Jul 24, 2025 What happen if you increase the size of CQEs as suggested? If most of the features are enabled we should observe a much bigger number of CQEs vs submissions franz1981 commented on Jul 24, 2025 I cannot work on it since I am on PTO/holiday, @dreamlike-ocean maybe some missing code path when auto read is false? Or due to the builder changes? violetagg commented on Jul 24, 2025 With java -Dio.netty.iouring.cqSize=8192 -jar netty-1.0-SNAPSHOT-jar-with-dependencies.jar I'm not seeing the warning anymore however the performance is still bad. normanmaurer commented on Jul 24, 2025 I am currently on PTO so if nobody beats me I will have a look once back normanmaurer commented on Aug 7, 2025 @violetagg so just to ensure I have all the details.. This is only an issue with auto-read false, correct ? violetagg commented on Aug 8, 2025 yes, IMO it is related to auto-read=false
На пт, 8.08.2025 г. в 1:31 Norman Maurer ***@***.***> написа:
…normanmaurer commented on Aug 8, 2025 @violetagg ok I can reproduce it and as you already said it only happens without auto-read. Will investigate and fix. normanmaurer commented on Aug 11, 2025 Reacted by Violeta Georgieva violetagg commented on Aug 12, 2025 @normanmaurer I confirm that I'm not seeing the issue with 4.2.4.Final-SNAPSHOT normanmaurer commented on Aug 13, 2025
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|