Repository navigation
Conversation
Contributor
Author
|
Deferred: reserved-worker experiment improves synthetic small-request latency but slows batch throughput ~52%; Nick's #283 addresses observed request wake-up latency independently. Revisit only if contention remains measured. Closing this draft to make the review queue manageable, per the maintainer's request. The branch and history remain intact at |
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.
Problem
All live compiler workers can be occupied by large cold DXC compiles, leaving a small request waiting behind them. That may increase latency while a title is running.
Experiment
Opt-in TUXBOX_RUNTIME_FAST_LANE=1 reserves one worker when there are at least two. Classify cold work using generated HLSL >=256 KiB (the existing large-pixel threshold, not a proven cost predictor). Defer large requests without a failure marker and resume them in publication order when capacity is available. Warm cache hits bypass admission; source validation, compiler flags, timeouts, worker ceiling and launch-time preparation are unchanged.
Measurements
Two live workers, three large requests (same generated 506,834-byte HLSL fixture) followed by a small 5,873-byte request. Real DXC and DXV; synthetic translator stub; separate cold caches with content reuse disabled to isolate scheduling. Three runs per mode, median:
These are synthetic latency/throughput measurements, not retail FPS or RAM measurements. Deferring a large request retranslates it once. Small expensive shaders can still block the reserved worker. Mixed workloads and memory pressure may benefit, while large-only batches may slow down. Keep disabled by default.
Validation
Draft pending full GPU suite, AMD and actual title profiling. Independent of #239; combined effects are not measured.