Repository navigation
Pacer: app-limited samples, egress cap, tunable rates, stats staleness docs - #11
Merged
Merged
Conversation
…or/burst, stats staleness docs - App-limited delivery samples (budget not hit, nothing waiting on SCTP cwnd, no queue) only enter the max filter when they raise it (BBR-style), so quiet periods don't ratchet the rate down. stats().appLimited exposes it. - egressRate: server-wide token bucket over all peers; unreliable needs tokens, reliable always goes. stats().egressDrops counts its drops. - pacerStartRate, pacerMinRate, pacerBurstMs options (defaults unchanged). - Document which stats fields are live vs 50 ms / per-sample snapshots. - accept(): localPort is the bound port again, not the advertise port (the bench shaper forwarded to itself and never connected).
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.
Fixes review items 14, 16, 17, 18.
stats().appLimited.egressRate(B/s, off by default) is one token bucket shared by all peers. Unreliable sends need tokens from it, and reliable/exempt sends always go. It isn't fair across peers: whoever sends first in a tick gets the budget. Newstats().egressDrops.pacerStartRate(65536),pacerMinRate(8192),pacerBurstMs(100). Defaults are unchanged.accept()returned the advertise port aslocalPort, so the bench shaper forwarded to itself and never connected. It now returns the bound port.Tests
Bench A/B vs main (Chrome, 200 ms RTT, rtc+rack+pace, seeds 4-7, 30 s)
The first version made reliable p95 about 130 ms worse under loss. Loss-recovery samples were being counted as app-limited. Fixed with the cwnd-limited check, and now on par with main:
These scenarios have no idle periods, so the app-limited gain only shows in the sims.