Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise iosqeAsyncThreshold #8252

Merged
merged 1 commit into from
Jun 12, 2023
Merged

Conversation

franz1981
Copy link
Contributor

@franz1981 franz1981 commented Jun 10, 2023

plaintext benchmark can cause Netty io_uring to use ASYNC SQEs that are not nicely handled at OS level (creating TONS of kernel threads ie ring size per event loop -> 4096 * 28 ).
Some more info on this behaviour at axboe/liburing#420 and https://blog.cloudflare.com/missing-manuals-io_uring-worker-pool/ as well.

In our case, plaintext could use 16384 connections partitioned in 28 event loops = 582 connections per event loop
which exceed the 25 default ones and can cause ASYNC SQEs to be used

This PR fix this behaviour and force SYNC SQEs: see netty/netty-incubator-transport-io_uring#152 (comment) for more info

plaintext benchmark can cause Netty io_uring to use ASYNC SQEs that are not nicely handled at OS level (creating TONS of kernel threads) ie 16384 connections / 28 event loops = 582 connections per event loop which can use SYNC SEQs, which exceed the 25 default ones.
  
This PR fix this behaviour and force SYNC SQEs: see netty/netty-incubator-transport-io_uring#152 (comment) for more info
@NateBrady23 NateBrady23 merged commit 752ea2d into TechEmpower:master Jun 12, 2023
franz1981 added a commit to franz1981/FrameworkBenchmarks that referenced this pull request Jun 23, 2023
plaintext benchmark can cause Netty io_uring to use ASYNC SQEs that are not nicely handled at OS level (creating TONS of kernel threads) ie 16384 connections / 28 event loops = 582 connections per event loop which can use SYNC SEQs, which exceed the 25 default ones.
  
This PR fix this behaviour and force SYNC SQEs: see netty/netty-incubator-transport-io_uring#152 (comment) for more info
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