Repository navigation
Conversation
…th g15_max_inflight On the T6031 (J516C) a browser submits one render per job. With only two prefixes in flight and ~612 us of host/firmware turnaround per flight while the GPU work per render is ~88 us (asahi-g15/stats span vs busy), the engine held publication on the in-flight cap ~3 times per job (stats hold[0]) and the GPU idled ~85% of every flight: at 120 Hz Chrome's ~2.7k renders/s hit the ~3.3k/s ceiling and frames queued up as stutter. Power (17-24 W) and a resolution-scaling test (1322 -> 1276 fps for 4x pixels) showed the GPU was starved, not busy; pstate was already 8/8. Raise FLIGHTS and MAX_INFLIGHT to 8 and add g15_max_inflight (0: tuned value, 1..8) so it can be lowered without a rebuild. Later flights still have to be of the same VM; pass slots (16) and CT buffers bound the rest, and publish_prefix_into already backs off with EAGAIN when they are held. Generated-by: LLM Signed-off-by: Samuel Carreño <[email protected]>
samucarre
requested review from
chriskearney,
maralcbr and
scottjones
as code owners
October 28, 2026 10:55
This was referenced Oct 30, 2026
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.
On the T6031 (J516C) a browser submits one render per job. With two prefixes in flight and ~612 µs of host/firmware turnaround per flight while the GPU work per render is ~88 µs (
asahi-g15/statsspan vs busy), the engine held publication on the in-flight cap ~3 times per job (hold[0]) and the GPU idled ~85% of every flight: at 120 Hz Chrome's ~2.7k renders/s hit the ~3.3k/s ceiling and frames queued up as stutter. Power (17–24 W) and a resolution-scaling test (1322 → 1276 fps for 4× pixels) showed the GPU was starved, not busy; pstate was already 8/8.Change. Raise
FLIGHTSandMAX_INFLIGHTto 8 and add the module parameterg15_max_inflight(0: tuned value, 1..8) so it can be lowered without a rebuild. Later flights still have to be of the same VM; pass slots (16) and CT buffers bound the rest, andpublish_prefix_intoalready backs off withEAGAINwhen they are held.Checked on a J516C (M3 Max, 64 GB) since 26 October, with the desktop (Hyprland) and Chrome:
hold[0]8,731/s → 0/s, starved 85% → 1%, glmark2 1322/1276 → 1589/1572 fps. Builds cleanly on 30a6518 together with my three other PRs of today, which touch other files.Not checked. T6030 (M3 Pro); whether you prefer to keep 2 as the default and leave 8 to the parameter — happy to change it.
🤖 Generated with Claude Code