Repository navigation
[Fusion] Run the plan executor inline outside the thread pool with two socket engines per processor - #10890
Merged
Conversation
…he thread pool When a plan node completes on a thread that is not a thread pool thread, such as a socket engine thread with DOTNET_SYSTEM_NET_SOCKETS_INLINE_COMPLETIONS=1, the executor's wake-up signal now runs the executor continuation on that thread instead of queuing it to the thread pool's global queue. Completions on thread pool threads still queue it.
…r processor The executor wake-up now runs the continuation on a thread that is not a thread pool thread only when DOTNET_SYSTEM_NET_SOCKETS_THREAD_COUNT configures at least twice Environment.ProcessorCount socket engines. The value is read once at startup and parsed as the runtime's socket engine parses it. Otherwise the continuation is queued to the thread pool as before.
Contributor
Patch coverage100.0% of changed lines covered (28/28)
Project coverage: 59.8% (327059/546605 lines) |
This was referenced Nov 17, 2026
chore(deps): Bump HotChocolate.Subscriptions.InMemory from 16.7.5 to 16.7.7
Kuestenlogik/Bowire#1032
Merged
This was referenced Nov 23, 2026
fix(deps): Bump Basic.Reference.Assemblies.Net100 and 43 others
AdCodicem/AdCodicem.ValueObjects#274
Closed
This was referenced Nov 30, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With inline socket completions, which the official benchmark uses, subgraph responses complete on socket threads, and waking the plan executor through the thread pool cost about 1 ms per request on the critical path. The executor now continues directly on the socket thread that delivered the response, but only when
DOTNET_SYSTEM_NET_SOCKETS_THREAD_COUNTconfigures at least two socket threads per processor, so other connections do not queue behind it. Without that setting the executor is woken through the thread pool as before. To get the gain, the benchmark needsDOTNET_SYSTEM_NET_SOCKETS_THREAD_COUNT=8, which belongs in the benchmark configuration, not in this PR.Measured on the benchmark twin with the official 16.7.0 subgraphs and the official gateway settings (alias batching, inline scheduling and inline socket completions), before is #10852 on the main of that time (572aa98), after is this PR at the default engine count (gate off) and with 8 engines (gate on), means of 2-3 interleaved rounds with 40 s warm-up and 45 s measured, responses byte-identical.