Repository navigation
perf: optimize server I/O - #98
Merged
Merged
Conversation
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.
Summary
Port the complete measured native I/O chain onto current main:
Account for descriptor-ring locked memory, document the Linux 6.0 multishot-recvmsg floor, and add lifecycle/allocation/collision/model regression tests. Implementation and measurement limitations are in
docs/IO_OPTIMIZATIONS.md; incremental benchmark gains are not additive.No SINGLE_ISSUER/DEFER_TASKRUN, empty-submit skipping, CQE-clearing removal, or raw profiling archives are included.
Validation
With the released coapz v0.4.0 pin,
zig build testandzig build test -Doptimize=ReleaseSafeeach pass 214 tests. Normal and ReleaseFast builds pass.python3 bench/remote-smoke.pypasses IPv4/IPv6 UDP/DTLS integration with two server workers and concurrent client windows, plus capacity/lease/rejection and duplicate/MID-wrap checks.Released dependency
The follow-up dependency commit pins coapz v0.4.0, published after independent parser PR cvik/coapz#8 and release-preparation PR cvik/coapz#9 merged. The pin uses the release tag and Zig-verified package hash, not a temporary source commit.
The five I/O stages were measured with the original v0.3.0 dependency. Parser optimization gains are independent and are not attributed to those I/O changes.