GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #15510

New issue
Copy link
New issue
Copy link
Closed
#15541
Closed
Performance degradation with IO_Uring and auto-read disabled#15510
#15541
Copy link
Assignees
normanmaurer
Milestone
4.2.4.Final

Description

@violetagg
violetagg
opened on Jul 24, 2025
Issue body actions

When 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

Activity

  1. franz1981 commented on Jul 24, 2025

    @franz1981
    franz1981
    on Jul 24, 2025
    Contributor
    More actions

    Hi @violetagg can you reproduce it by disabling auto read and doing it in a netty only example?

  2. violetagg commented on Jul 24, 2025

    @violetagg
    violetagg
    on Jul 24, 2025
    MemberAuthor
    More actions

    @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 
    
  3. franz1981 commented on Jul 24, 2025

    @franz1981
    franz1981
    on Jul 24, 2025
    Contributor
    More actions

    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

  4. franz1981 commented on Jul 24, 2025

    @franz1981
    franz1981
    on Jul 24, 2025
    Contributor
    More actions

    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?

  5. violetagg commented on Jul 24, 2025

    @violetagg
    violetagg
    on Jul 24, 2025
    MemberAuthor
    More actions

    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.

  6. normanmaurer commented on Jul 24, 2025

    @normanmaurer
    normanmaurer
    on Jul 24, 2025
    Member
    More actions

    I am currently on PTO so if nobody beats me I will have a look once back

  7. normanmaurer commented on Aug 7, 2025

    @normanmaurer
    normanmaurer
    on Aug 7, 2025
    Member
    More actions

    @violetagg so just to ensure I have all the details.. This is only an issue with auto-read false, correct ?

  8. violetagg commented on Aug 8, 2025

    @violetagg
    violetagg
    on Aug 8, 2025 via email
    MemberAuthor
    More actions
    yes, IMO it is related to auto-read=false На пт, 8.08.2025 г. в 1:31 Norman Maurer ***@***.***> написа:
    …
    *normanmaurer* left a comment (netty/netty#15510) <#15510 (comment)> @violetagg <https://github.com/violetagg> so just to ensure I have all the details.. This is only an issue with auto-read false, correct ? — Reply to this email directly, view it on GitHub <#15510 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFKCVPCC3V5MB2UGZTXYZL3MPHU7AVCNFSM6AAAAACCH7G5YKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCNRWGAZTANJSGM> . You are receiving this because you were mentioned.Message ID: ***@***.***>
  9. normanmaurer commented on Aug 8, 2025

    @normanmaurer
    normanmaurer
    on Aug 8, 2025
    Member
    More actions

    @violetagg ok I can reproduce it and as you already said it only happens without auto-read. Will investigate and fix.

  10. normanmaurer
    added this to the 4.2.4.Final milestone on Aug 8, 2025
  11. normanmaurer
    self-assigned this
    on Aug 11, 2025
  12. normanmaurer
    added a commit that references this issue on Aug 11, 2025

    IoUring: Correctly handle channel.config().setAutoRead(false)

    0bf923c
  13. normanmaurer commented on Aug 11, 2025

    @normanmaurer
    normanmaurer
    on Aug 11, 2025
    Member
    More actions

    @violetagg should be fixed by #15541

    Reacted by Violeta Georgieva
  14. normanmaurer
    closed this as completedin #15541on Aug 11, 2025
  15. pull
    added a commit that references this issue on Aug 11, 2025

    IoUring: Correctly handle channel.config().setAutoRead(false) (netty#…

    32a6a4c
  16. violetagg commented on Aug 12, 2025

    @violetagg
    violetagg
    on Aug 12, 2025
    MemberAuthor
    More actions

    @normanmaurer I confirm that I'm not seeing the issue with 4.2.4.Final-SNAPSHOT

    Reacted by Jonas Konrad
  17. normanmaurer commented on Aug 13, 2025

    @normanmaurer
    normanmaurer
    on Aug 13, 2025
    Member
    More actions

    @violetagg thanks for confirmation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @normanmaurer
    normanmaurer

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    • 4.2.4.Final

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.