-
What are the design considerations for From the code, I observed that in "max throughput" mode, a separate thread is created for each worker, and "soft-affinity" is set to an ideal processor. Could you clarify under what circumstances the thread owned by the worker is executed? It seems that the Additionally, how does this approach enhance throughput in "max throughput" mode compared to the "low latency" option? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Max throughput, as you point out, creates an additional thread just for the QUIC layer to execute on. This allows for parallel execution of the QUIC (encryption) and UDP layers, which, for low connection count scenarios, can see up to a 2x throughput improvement. But if you have LOTS of connections, you will likely only see contention, resulting in worse performance. This is why the default is low latency. So, unless you know you have a low connection count (CPU count > connection count), I recommend low latency mode. |
Beta Was this translation helpful? Give feedback.
Max throughput, as you point out, creates an additional thread just for the QUIC layer to execute on. This allows for parallel execution of the QUIC (encryption) and UDP layers, which, for low connection count scenarios, can see up to a 2x throughput improvement. But if you have LOTS of connections, you will likely only see contention, resulting in worse performance. This is why the default is low latency. So, unless you know you have a low connection count (CPU count > connection count), I recommend low latency mode.