Repository navigation
perf(dataplane): reduce IPv6 resident memory footprint in multi-shard mode - #261
Merged
Merged
Conversation
…ter non-transport protocols
vxfemboy
temporarily deployed
to
benchmark-approval
November 18, 2026 18:34 — with
GitHub Actions
Inactive
vxfemboy
temporarily deployed
to
benchmark-approval
November 18, 2026 18:34 — with
GitHub Actions
Inactive
vxfemboy
temporarily deployed
to
benchmark-approval
November 18, 2026 18:34 — with
GitHub Actions
Inactive
vxfemboy
temporarily deployed
to
benchmark-approval
November 18, 2026 18:34 — with
GitHub Actions
Inactive
vxfemboy
temporarily deployed
to
benchmark-approval
November 18, 2026 19:07 — with
GitHub Actions
Inactive
vxfemboy
temporarily deployed
to
benchmark-approval
November 18, 2026 19:07 — with
GitHub Actions
Inactive
…ry against mutants
vxfemboy
had a problem deploying
to
benchmark-approval
November 18, 2026 19:15 — with
GitHub Actions
Failure
vxfemboy
temporarily deployed
to
benchmark-approval
November 18, 2026 19:15 — with
GitHub Actions
Inactive
vxfemboy
temporarily deployed
to
benchmark-approval
November 18, 2026 19:46 — with
GitHub Actions
Inactive
This branch was previously deployed
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
Resolves #255.
Addresses the IPv6 multi-shard resident memory footprint disparity where resident set size (RSS) peaked at 335.8 MB during IPv6 testing compared to 171.4 MB during IPv4 testing under
shards=auto(8 worker threads).Root Cause
FecReassemblerinTransportpooled up to 256 in-flight objects and repair buffers across 3 flow classes per shard, holding up to ~393 MB across 8 worker shards once exercised.FlowTable::evict_expired, an active flow at the head ofself.orderbroke the eviction loop immediately, permanently starving and retaining expired background IPv6 discovery/multicast flows queued behind it.tun_drainedandtick_tun_drainedinDataPlanedynamically pushedVec<u8>buffers on bursts >32 packets without trimming back down during idle sweeps.Key Changes
FecReassemblercapacity incrates/yip-transport/src/lib.rsfrom 256 to 64 objects per class, slashing max pool retention across 8 shards from ~393 MB to ~98 MB.FlowTableinClassifier::newto 1,024 entries with 10s TTL.FlowTable::evict_expiredincrates/yip-transport/src/flow.rswithorder_mstracking to rotate active entries to the back of the queue, allowing expired flows queued behind them to be evicted.crates/yip-transport/src/classify.rsfor non-TCP/UDP control protocols (ICMPv4, ICMPv6, multicast), preventing background discovery traffic from churning the flow table.DataPlane::tick(bin/yipd/src/dataplane.rs), truncated and shrunktun_drainedandtick_tun_drainedback to 32 elements when grown after reorder bursts.Verification
cargo fmt --all -- --check: Passed cleanly.cargo clippy --workspace --all-targets -- -D warnings: Passed cleanly with zero warnings.cargo test --workspace: All unit, integration, and netns tests passed.cargo deny check: Passed.cargo shear: Passed.cargo mutants -p yip-transport --file crates/yip-transport/src/flow.rs --file crates/yip-transport/src/classify.rs: 77 mutants tested (75 caught, 2 unviable, 0 missed).