Skip to content

Conversation

@Mark-Simulacrum
Copy link
Collaborator

Release Summary:

  • opt(s2n-quic-dc): clamp TCP server concurrency

Resolved issues:

n/a

Description of changes:

The lock contention referenced in the comment is a significant problem as the number of cores increases. In the future we can consider other mitigations for it (e.g., io_uring's fixed fd pool), but that's not possible until we can raise our minimal kernel baseline and is a much larger effort.

Call-outs:

n/a

Testing:

Testing the # of spawns is pretty annoying. I don't think I have any off-by-one logic here but in the worst case 4 becomes 5 or 3, and either is fine too; 4 is not some specially chosen magic number, just "not too high".

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The lock contention referenced in the comment is a significant problem
as the number of cores increases. In the future we can consider other
mitigations for it (e.g., io_uring's fixed fd pool), but that's not
possible until we can raise our minimal kernel baseline and is a much
larger effort.
@Mark-Simulacrum Mark-Simulacrum marked this pull request as ready for review September 24, 2025 16:55
@boquan-fang boquan-fang self-requested a review September 24, 2025 17:17
@Mark-Simulacrum Mark-Simulacrum merged commit afb6ecf into aws:main Sep 24, 2025
121 checks passed
@Mark-Simulacrum Mark-Simulacrum deleted the dc-server-conc branch September 24, 2025 18:58
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