Skip to content

IoUring: Explicit set CQSIZE by default and use a much saner default … - #15477

Merged
normanmaurer merged 2 commits into
4.2from
cq_size
Jul 12, 2025
Merged

normanmaurer merged 2 commits into
4.2from
cq_size

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

…value for the submission ring

Motivation:

As default we used a size of 4096 for the submission ring which these days does not make a lot of sense anymore as you can size the submission queue and completion queue seperately. Generally speaking usually you see much more completions compared to submissions, especially as we enable multishot by default these days. Beside this you should also not batch too much in general before submission as this will affect latency. Because of this we should use a more sane default value for the submission queue which will also ensure we submit fast enough while still get some batching to reduce syscalls. Also we need to size the completion queue big enough to be able to receive enough completioms per batch.

Modifications:

  • Change the default submission queue size to 128
  • Change the default completion queue size to 4096

Result:

Better defaults

…value for the submission ring

Motivation:

As default we used a size of 4096 for the submission ring which these days does not make a lot of sense anymore as you can size the submission queue and completion queue seperately.
Generally speaking usually you see much more completions compared to submissions, especially as we enable multishot by default these days. Beside this you should also not batch too
much in general before submission as this will affect latency. Because of this we should use a more sane default value for the submission queue which will also ensure we submit fast enough
while still get some batching to reduce syscalls. Also we need to size the completion queue big enough to be able to receive enough completioms per batch.

Modifications:

- Change the default submission queue size to 128
- Change the default completion queue size to 4096

Result:

Better defaults
@normanmaurer
normanmaurer requested a review from chrisvest July 11, 2025 16:29
@normanmaurer normanmaurer added this to the 4.2.3.Final milestone Jul 11, 2025
@normanmaurer

Copy link
Copy Markdown
Member Author

/cc @dreamlike-ocean

@normanmaurer
normanmaurer requested a review from franz1981 July 11, 2025 16:29
Comment thread transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUring.java Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants