Skip to content

Override IOQueueCount via env vars - #51964

Closed
EgorBo wants to merge 1 commit into
dotnet:mainfrom
EgorBo:env-var-ioqueuecount
Closed

Override IOQueueCount via env vars#51964
EgorBo wants to merge 1 commit into
dotnet:mainfrom
EgorBo:env-var-ioqueuecount

Conversation

@EgorBo

@EgorBo EgorBo commented Nov 9, 2023

Copy link
Copy Markdown
Member

This PR adds ability to change default value for Socket.IOQueueCount in Kestrel - this will allow us to easily experiment with the default value on various many-cores system (or with different affinity settings) before we propose a better default here.

E.g. Current RPS on a many-cores arm64 CPU affinitized to 16 cores: 1.2M RPS (Windows)
Same setup with ASPNETCORE_IOQUEUECOUNT=10: 1.8M RPS.

cc @sebastienros

@ghost ghost added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Nov 9, 2023
@davidfowl

Copy link
Copy Markdown
Member

This should use our configuration system, not direct environment variables

@EgorBo

EgorBo commented Nov 9, 2023

Copy link
Copy Markdown
Member Author

This should use our configuration system, not direct environment variables

Can you please point me to an example?

@BrennanConroy

Copy link
Copy Markdown
Member

It's also configurable via UseSockets

@amcasey

amcasey commented Nov 15, 2023

Copy link
Copy Markdown
Member

It's not perfectly analogous, but here's an example of consuming new env vars: #44194

@ghost

ghost commented Nov 23, 2023

Copy link
Copy Markdown

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.
To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an /azp run comment here (requires commit rights), or by simply closing and reopening.

@ghost ghost added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Nov 23, 2023
@EgorBo

EgorBo commented Nov 27, 2023

Copy link
Copy Markdown
Member Author

Thanks! will configure with code

@EgorBo EgorBo closed this Nov 27, 2023
@ghost

ghost commented Nov 27, 2023

Copy link
Copy Markdown

Hi @EgorBo. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

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

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun

4 participants