Repository navigation
Simplify the prewarm drain budget and the sched-trace tool (#376, #377 follow-up) - #382
Merged
Merged
Conversation
…llow-up) The background prewarm drain now runs only when the live drain leaves at least BACKGROUND_MIN_US (1 ms) of the 2.5 ms budget, so a sliver does not buy a whole parked string; a host test covers the sliver and the empty-live-queue case. Stale "one string a frame" comments in text.rs and track_menu.rs describe the time-budgeted drain. tv-sched-trace.sh defaults to --secs 6 (the measured loss-free length) and its usage line now prints the usage. docs/player-submenus.md agrees on the default and records the measured effect of #376. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… pid; name the ring-sizing event rate Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What
A simplify pass over #376 and #377, plus the review follow-ups from #376.
Prewarm drain (
rust-modules/src/ui/panel_motion.rs)BACKGROUND_MIN_US(1 ms) of the 2.5 ms budget. Before, a live drain ending at 2.4 ms left a 100 µs remainder, and the at-least-one-string floor still charged a whole background string (1–3 ms on the television) to that frame.a_sliver_of_budget_left_by_the_live_queue_skips_the_background, seen failing first (the background took a string with 100 us left, left: 2, right: 1). It also checks that the parked queue still drains when nothing live is queued.track_menu.rs,text.rs) and "six-millisecond caller budget" (text.rs) now describe the time-budgeted drain.tools/tv-sched-trace.sh--secsdefaults to 6, the measured loss-free length on the 4.4.84 kernel (8 s overran CPU 0's ring).usage()printed the header's title and a blank line; it now prints the usage line.60000 * 64.tools/test_tv_sched_trace.py: one env builder, one clock constant, onepsper pid, one redundant assertion removed.docs/player-submenus.md: agrees on the 6 s default and records the measured effect of #376 (open framewarmdrain9.8/6.6 ms → 3.3/3.2 ms; one single-string 18.9 ms drain at about 1.1 s after playback start remains).Verification
make checkon the Rust commit:test result: ok. 5448 passed; 0 failed; 7 ignored,test result: ok. 102 passed; 0 failed,test result: ok. 5528 passed; 0 failed; 7 ignored.cargo check --lib --no-default-featuresexit 0. Both ran before the rebase onto CI: bound every job, apt refresh and download (no more multi-hour hangs) #375 (CI-only changes); CI here covers the rebased tree.make check-pythonon the tools commit: every suiteOK;bash -nandshellcheckclean on the script.🤖 Generated with Claude Code