perf(agc): keep the readable mappings a Linux maps scan passes #14473

Open
msbutt1 wants to merge 1 commit from upstream-pr/14473 into main
msbutt1 commented 2026-11-01 14:52:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by msbutt1 on 2026-11-01T14:52:44Z.


What

On Linux without PROCMAP_QUERY (kernels before 6.11, such as the 6.8 kernel of Ubuntu 22.04 and 24.04), describePages answers a page-cache miss by reading /proc/self/maps from the top until it reaches the queried address, and keeps only the run it was asked about. Every mapping the scan passed on the way is parsed and thrown away. A title that maps thousands of ranges pays a full scan for almost every miss.

This keeps every readable mapping the scan passes in the page-state cache. It goes through PageStates::record with the generation and access snapshot already taken before the file is opened, the same check that guards the queried run, so a registry mutation or access change during the scan forgets these entries as it forgets that one. Inaccessible mappings and gaps the scan passes are not recorded and stay unknown: a title's reserved ranges are inaccessible mappings of hundreds of GiB (Sifu reserves 0x1000000000 + 0x7fc0000000), and recording them would rewrite one cache byte per 4 KiB page of them on every scan. A version that also recorded them made each scan about four times slower.

Sifu (PPSA03001) during loading, measured with a local probe in the fallback that is not part of this PR: 14,336 fallback scans in the first ~55 s, about 2.5 ms and 5,200 lines each, 36 s in total; 92% of them queried an address inside the cached arena or image span, and each scan passed about 4,700 mappings inside a cached span before reaching its own. /proc/self/maps reached 21,214 lines.

RunPassedMappingTests (Linux, agc_driver_graphics and agc_driver_graphics_maps_fallback) maps writable, read-only and inaccessible pages and an unmapped gap below a queried page, then checks that the readable ones are answered from the cache after a scan, that the inaccessible one and the gap are not recorded, and that GuestAllocationsInvalidate and a registry Protect forget what was recorded. It returns early when PROCMAP_QUERY is available, since the ioctl path records only the queried run.

Tested

Ubuntu 22.04.5, Linux 6.8.0-138-generic (no PROCMAP_QUERY), i7-11800H, NVIDIA GeForce RTX 3080 Laptop GPU with driver 580.178.04, AC power. Built with GCC 13.4 and the 6.8 kernel UAPI headers.

  • agc_driver_graphics and agc_driver_graphics_maps_fallback pass (13.5 s each). Without the change in GuestMemory.cpp, agc_driver_graphics_maps_fallback fails with a writable mapping the maps scan passed was queried again instead of read from the page table.
  • Full ctest -j 8 on this commit over e67cc81869: 3,140 tests, 5 failures, none from this change. agc_driver_htile_mask_lifetime, guest_standard_streams and guest_runtime_lifecycle fail the same way on main on this machine. agc_driver_dcc_keys_first_write fails with resident snapshot size mismatch with or without the GuestMemory.cpp change on this base, and passed on 26fa1212b8. build_eligibility fails because its harness uses ??, which this machine's Node 12 does not parse.
  • Vulkan validation, on main and on this change from the same machine and GPU: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R '^(agc_driver_graphics|agc_driver_graphics_maps_fallback|agc_driver_guest_memory_lifetime.*)$' -V. Both runs pass 9 of 9, neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS, and both report the same VUID- lines (108 VUID-VkDeviceCreateInfo-pNext-pNext, 54 VUID-VkPhysicalDeviceProperties2-pNext-pNext, from the 1.3.204 layer not knowing newer structures); the change adds none.
  • Performance: Sifu (PPSA03001, 01.007.000), from start-up through loading, APS5_TRACE_SECONDS=0:45, warm caches (one run before the captures), captured A, B, A, B in one session, each in a terminal without a redirected log or other APS5_TRACE_*/APS5_PROFILE_* switches. Converted with --to-intel; the dump has no PlayGo metadata, so APS5_PLAYGO_UNLISTED_CHUNKS=absent as docs/user/USAGE.md lists for this title. Both sides include #9915, because main alone stops this scene at about 30 s with vertex fetch exceeds descriptor record count: A is main 26fa1212b8 with #9915 (bc4a8fcd8f), B is A with this commit (30629f3870). The commit was then rebased onto e67cc81869 without conflicts; the change since then in GuestMemory.cpp adds a macOS branch ahead of the fallback.
Capture Commit Presents Window (ms) frame p50 p90 p99 max (ms)
A bc4a8fcd8f9c 1172 57938 16.70 33.10 84.40 30633
B 30629f3870c4 1073 46970 16.71 40.16 108.44 17110
A bc4a8fcd8f9c 1185 58222 16.70 33.64 72.99 30806
B 30629f3870c4 1107 49137 16.71 36.37 65.92 17395

The loading stall, the longest interval between presents, goes from 30.6 s and 30.8 s to 17.1 s and 17.4 s, and the 45 s window closes about 10 s earlier. In that frame Driver.Packet.memory_wait on queue worker 0x20 drops from 21,440 and 21,099 ms to 13,620 and 13,191 ms (trace_digest.py, slowest frames). The median frame is unchanged. p90 and p99 move in both directions across the two pairs; B's window ends sooner, so it holds a smaller share of the fast loading-screen frames, and gpu_busy_ms_per_present rises for the same reason. performance_compare.py --require-matching-context reports frame_ms.max −44.1% and −43.5% and mean_frame_ms −11.5% and −9.7%. Summary lines, traces and digests are attached.

Summary lines (aps5-summary.jsonl)

{"commit":"bc4a8fcd8f9c","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":57938.426},"presents":1172,"frame_ms":{"p50":16.704,"p90":33.097,"p99":84.398,"max":30633.052},"gpu_busy_ms_per_present":3.730,"worker_busy_pct":{"queue worker 0x0":80.740,"queue worker 0x20":38.832},"top_phases_ms_per_frame":{"Driver.Packet":59.101,"Graphics.Draw":21.333,"Driver.Packet.memory_wait":18.575,"Driver.Packet.draw":18.308,"Driver.Draw":18.299,"VideoOut.Flip":15.570,"Driver.Draw.draw_enqueued":14.289,"Graphics.Draw.draw_and_resource_release":12.583},"trace_dropped":false,"trace":"aps5-trace-bc4a8fcd8f9c-278752.json.gz"}
{"commit":"30629f3870c4","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":46969.617},"presents":1073,"frame_ms":{"p50":16.707,"p90":40.155,"p99":108.442,"max":17110.149},"gpu_busy_ms_per_present":5.924,"worker_busy_pct":{"queue worker 0x0":78.664,"queue worker 0x20":30.734},"top_phases_ms_per_frame":{"Driver.Packet":47.873,"VideoOut.Flip":15.850,"Driver.Packet.memory_wait":13.287,"Graphics.Draw":11.116,"Driver.Packet.draw":10.480,"Driver.Draw":10.469,"Driver.Packet.pipeline_drain":9.360,"VideoOut.Flip.notify_game":7.326},"trace_dropped":false,"trace":"aps5-trace-30629f3870c4-280109.json.gz"}
{"commit":"bc4a8fcd8f9c","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":58221.684},"presents":1185,"frame_ms":{"p50":16.703,"p90":33.642,"p99":72.985,"max":30806.105},"gpu_busy_ms_per_present":3.657,"worker_busy_pct":{"queue worker 0x0":79.579,"queue worker 0x20":37.596},"top_phases_ms_per_frame":{"Driver.Packet":57.554,"Graphics.Draw":21.072,"Driver.Packet.memory_wait":17.871,"Driver.Packet.draw":17.518,"Driver.Draw":17.509,"VideoOut.Flip":15.700,"Driver.Draw.draw_enqueued":13.685,"Graphics.Draw.draw_and_resource_release":11.984},"trace_dropped":false,"trace":"aps5-trace-bc4a8fcd8f9c-281453.json.gz"}
{"commit":"30629f3870c4","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":49137.173},"presents":1107,"frame_ms":{"p50":16.707,"p90":36.369,"p99":65.920,"max":17395.130},"gpu_busy_ms_per_present":6.054,"worker_busy_pct":{"queue worker 0x0":78.356,"queue worker 0x20":28.678},"top_phases_ms_per_frame":{"Driver.Packet":47.493,"VideoOut.Flip":15.594,"Driver.Packet.memory_wait":12.623,"Driver.Packet.draw":11.373,"Driver.Draw":11.362,"Graphics.Draw":10.794,"Driver.Packet.pipeline_drain":9.526,"VideoOut.Flip.notify_game":7.121},"trace_dropped":false,"trace":"aps5-trace-30629f3870c4-282897.json.gz"}

Traces: aps5-trace-bc4a8fcd8f9c-278752.json.gz and aps5-trace-bc4a8fcd8f9c-281453.json.gz (main + #9915), aps5-trace-30629f3870c4-280109.json.gz and aps5-trace-30629f3870c4-282897.json.gz (this change), attached in a comment.

Digest (python3 tools/trace_digest.py <trace>)

main + #9915 (A), capture 1

seconds 0:45 from present 0: 1172 presents, frame p50 16.7 / p90 33.1 / p99 84.4 / max 30633.1 ms, GPU busy 3.7 ms per present
NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 580.178.04, Linux 6.8.0-138-generic, 3840x2160, commit bc4a8fcd8f9c, dropped: no

{"commit":"bc4a8fcd8f9c","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":57938.426},"presents":1172,"frame_ms":{"p50":16.704,"p90":33.097,"p99":84.398,"max":30633.052},"gpu_busy_ms_per_present":3.73,"worker_busy_pct":{"queue worker 0x0":80.74,"queue worker 0x20":38.832},"top_phases_ms_per_frame":{"Driver.Packet":59.101,"Graphics.Draw":21.333,"Driver.Packet.memory_wait":18.575,"Driver.Packet.draw":18.308,"Driver.Draw":18.299,"VideoOut.Flip":15.57,"Driver.Draw.draw_enqueued":14.289,"Graphics.Draw.draw_and_resource_release":12.583},"trace_dropped":false,"trace":"aps5-trace-bc4a8fcd8f9c-278752.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 1171: 30633.1 ms at 27305 ms: Driver.Packet (queue worker 0x0) 27557.3, Driver.Packet (queue worker 0x20) 22164.4, Driver.Packet.memory_wait (queue worker 0x20) 21439.9, Driver.Packet.draw (queue worker 0x0) 20684.3
  • present 0: 784.0 ms at 0 ms: Driver.Packet (queue worker 0x0) 30.2, Driver.Packet.pipeline_drain (queue worker 0x0) 27.3, Graphics.Draw (draw committer) 22.7, Driver.Present (presenter) 16.0
  • present 455: 736.5 ms at 9327 ms: Driver.Packet (queue worker 0x0) 669.4, Driver.Packet.dispatch (queue worker 0x0) 630.7, Driver.Dispatch (queue worker 0x0) 595.9, batch (gpu) 381.5
  • present 753: 491.0 ms at 16574 ms: Driver.WorkerWait (queue worker 0x20) 491.0, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 491.0, Driver.WorkerWait (queue worker 0x0) 457.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 457.9
  • present 144: 325.9 ms at 3316 ms: Driver.WorkerWait (queue worker 0x0) 324.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 324.4, GpuMutex.wait.other (title) 209.4, Graphics.Wait (queue worker 0x0) 151.2

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 33.2 (67 %) 13.3 (27 %) 2.9 0.4 Driver.Packet 39.4, VideoOut.Readiness 0.1
draw committer 21.3 (43 %) 0.1 (0 %) 28.1 0.1 Graphics.Draw 21.2, Recorder.Submit 0.1
title 0.0 (0 %) 0.4 (1 %) 49.0 0.0
presenter 8.8 (18 %) 6.8 (14 %) 33.9 0.1 VideoOut.Flip 15.6, Driver.Present 0.0
title 0.4 (1 %) 0.0 (0 %) 49.0 0.0 Shader.ResolveAbi 0.4, Shader.ResolveGraphicsStagesAbi 0.1
title 0.3 (1 %) 0.0 (0 %) 49.1 0.0 Shader.ResolveAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.4 0.0 Shader.Register 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 49.2 0.0 Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 49.2 0.0 Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 49.2 0.0 Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.3 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.3 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x20 0.1 (0 %) 37.4 (76 %) 12.0 0.0 Driver.Packet 19.2, Recorder.Submit 0.0
title 0.3 (1 %) 0.0 (0 %) 49.1 0.0 Shader.Register 0.3
title 0.3 (1 %) 0.0 (0 %) 49.1 0.0 Shader.Register 0.3
title 0.5 (1 %) 0.0 (0 %) 49.0 0.0 Shader.Register 0.5
title 0.3 (1 %) 0.0 (0 %) 49.2 0.0 Shader.Register 0.3
title 0.2 (0 %) 0.0 (0 %) 49.2 0.0 Shader.Register 0.2
title 0.3 (1 %) 0.0 (0 %) 49.2 0.0 Shader.Register 0.3
title 0.2 (0 %) 0.0 (0 %) 49.2 0.0 Shader.Register 0.2
title 0.0 (0 %) 0.0 (0 %) 49.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0
gpu 7.0 (14 %) 0.0 (0 %) 42.5 0.0 batch 7.0

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 58.6, Driver.WorkerWait 25.3, Driver.WorkerWait.idle_and_completion_poll 25.3, Graphics.Draw 21.2, Driver.Packet.memory_wait 18.6, Driver.Packet.draw 18.2, Driver.Draw 18.2, VideoOut.Flip 15.6, Driver.Draw.draw_enqueued 14.2, Graphics.Draw.draw_and_resource_release 12.4

Longest waits

  • Driver.WorkerWait (queue worker 0x20) 20791.0 ms at 9813 ms, present 455
  • Driver.Packet.memory_wait (queue worker 0x20) 9392.1 ms at 38093 ms, present 1171
  • Driver.Packet.memory_wait (queue worker 0x20) 7083.9 ms at 30981 ms, present 1171
  • Driver.Packet.memory_wait (queue worker 0x20) 4938.7 ms at 48124 ms, present 1171
  • Driver.WorkerWait (queue worker 0x0) 2273.1 ms at 27306 ms, present 1171
  • Driver.WorkerWait (queue worker 0x20) 528.8 ms at 47596 ms, present 1171
  • Driver.WorkerWait (queue worker 0x0) 457.9 ms at 16574 ms, present 753
  • GpuMutex.wait.flush (queue worker 0x20) 377.7 ms at 30604 ms, present 1171
  • Driver.WorkerWait (queue worker 0x0) 349.9 ms at 3291 ms, present 142
  • Driver.Packet.memory_wait (queue worker 0x20) 318.1 ms at 9483 ms, present 455

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 4650: 2114.5 ms at 53406 ms, present 1171: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.validate (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Resources.Prepare (draw committer) 0.1
  • batch 1373: 179.0 ms at 9607 ms, present 455: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 74.5, Driver.Packet.dispatch (queue worker 0x0) 71.6, Driver.Dispatch (queue worker 0x0) 55.5, Vulkan.Dispatch (queue worker 0x0) 37.7
  • batch 1372: 173.8 ms at 9434 ms, present 455: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 29.0, Driver.Packet.dispatch (queue worker 0x0) 29.0, Driver.Dispatch (queue worker 0x0) 28.9, Vulkan.Dispatch (queue worker 0x0) 21.6
  • batch 3955: 44.5 ms at 47278 ms, present 1171: GPU no ranges; recorded by Graphics.Draw (draw committer) 20.9, Graphics.Draw.draw_and_resource_release (draw committer) 18.1, Resources.Complete (draw committer) 4.6, Resources.Prepare (draw committer) 3.8
  • batch 3620: 44.0 ms at 37105 ms, present 1171: GPU no ranges; recorded by Graphics.Draw (draw committer) 111.0, Graphics.Draw.draw_and_resource_release (draw committer) 109.2, Resources.Complete (draw committer) 95.9, Resources.Prepare (draw committer) 8.1
this change (B), capture 2

seconds 0:45 from present 0: 1073 presents, frame p50 16.7 / p90 40.2 / p99 108.4 / max 17110.1 ms, GPU busy 5.9 ms per present
NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 580.178.04, Linux 6.8.0-138-generic, 3840x2160, commit 30629f3870c4, dropped: no

{"commit":"30629f3870c4","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":46969.617},"presents":1073,"frame_ms":{"p50":16.707,"p90":40.155,"p99":108.442,"max":17110.149},"gpu_busy_ms_per_present":5.924,"worker_busy_pct":{"queue worker 0x0":78.664,"queue worker 0x20":30.734},"top_phases_ms_per_frame":{"Driver.Packet":47.873,"VideoOut.Flip":15.85,"Driver.Packet.memory_wait":13.287,"Graphics.Draw":11.116,"Driver.Packet.draw":10.48,"Driver.Draw":10.469,"Driver.Packet.pipeline_drain":9.36,"VideoOut.Flip.notify_game":7.326},"trace_dropped":false,"trace":"aps5-trace-30629f3870c4-280109.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 1071: 17110.1 ms at 27158 ms: Driver.Packet (queue worker 0x0) 14106.7, Driver.Packet (queue worker 0x20) 13741.0, Driver.Packet.memory_wait (queue worker 0x20) 13619.8, Driver.Packet.draw (queue worker 0x0) 7790.4
  • present 1072: 2701.2 ms at 44268 ms: Driver.Packet (queue worker 0x0) 2510.9, batch (gpu) 2372.9, Driver.Packet.draw (queue worker 0x0) 2333.2, Driver.Draw (queue worker 0x0) 2331.7
  • present 453: 696.0 ms at 8962 ms: Driver.Packet (queue worker 0x0) 653.4, batch (gpu) 388.6, Driver.Packet (queue worker 0x20) 353.8, Driver.Packet.memory_wait (queue worker 0x20) 342.3
  • present 772: 613.3 ms at 16921 ms: Driver.WorkerWait (queue worker 0x20) 613.3, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 613.3, Driver.WorkerWait (queue worker 0x0) 605.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 605.9
  • present 0: 426.7 ms at 0 ms: Driver.Packet (queue worker 0x0) 26.4, Graphics.Draw (draw committer) 25.1, Driver.Packet.pipeline_drain (queue worker 0x0) 24.5, Driver.Present (presenter) 18.4

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.3 (1 %) 0.0 (0 %) 43.5 0.0 Recorder.Sync 0.3
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 26.7 (61 %) 13.7 (31 %) 3.3 2.3 Driver.Packet 33.7, VideoOut.Readiness 0.1
draw committer 11.0 (25 %) 0.0 (0 %) 32.8 0.5 Graphics.Draw 10.9, Recorder.Submit 0.1
title 0.0 (0 %) 0.4 (1 %) 43.3 0.0
presenter 9.1 (21 %) 6.8 (15 %) 27.9 0.1 VideoOut.Flip 15.8, Driver.Present 0.0
title 0.3 (1 %) 0.0 (0 %) 43.4 0.0 Shader.ResolveAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.0
title 0.4 (1 %) 0.0 (0 %) 43.3 0.0 Shader.ResolveAbi 0.4, Shader.ResolveGraphicsStagesAbi 0.1
title 0.1 (0 %) 0.0 (0 %) 43.7 0.0 Shader.Register 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 43.6 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 43.7 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (1 %) 0.0 (0 %) 43.5 0.0 Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 43.6 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 43.6 0.0 Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x20 0.1 (0 %) 33.0 (75 %) 10.7 0.0 Driver.Packet 13.5, Driver.EndSubmission 0.0
title 0.3 (1 %) 0.0 (0 %) 43.5 0.0 Shader.Register 0.3
title 0.6 (1 %) 0.0 (0 %) 43.1 0.0 Shader.Register 0.6
title 0.4 (1 %) 0.0 (0 %) 43.4 0.0 Shader.Register 0.4
title 0.3 (1 %) 0.0 (0 %) 43.5 0.0 Shader.Register 0.3
title 0.4 (1 %) 0.0 (0 %) 43.4 0.0 Shader.Register 0.4
title 0.3 (1 %) 0.0 (0 %) 43.5 0.0 Shader.Register 0.3
title 0.3 (1 %) 0.0 (0 %) 43.5 0.0 Shader.Register 0.3
title 0.0 (0 %) 0.0 (0 %) 43.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0
gpu 8.9 (20 %) 0.0 (0 %) 34.9 0.0 batch 8.9

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 47.2, Driver.WorkerWait 26.2, Driver.WorkerWait.idle_and_completion_poll 26.2, VideoOut.Flip 15.8, Driver.Packet.memory_wait 13.3, Graphics.Draw 10.9, Driver.Packet.draw 10.3, Driver.Draw 10.3, Driver.Packet.pipeline_drain 9.1, batch 8.9

Longest waits

  • Driver.WorkerWait (queue worker 0x20) 20338.3 ms at 9473 ms, present 453
  • Driver.Packet.memory_wait (queue worker 0x20) 5012.5 ms at 34641 ms, present 1071
  • Driver.Packet.memory_wait (queue worker 0x20) 4820.4 ms at 39731 ms, present 1071
  • Driver.Packet.memory_wait (queue worker 0x20) 2814.7 ms at 31077 ms, present 1071
  • Driver.WorkerWait (queue worker 0x0) 2227.4 ms at 27161 ms, present 1071
  • Driver.Packet.memory_wait (queue worker 0x20) 1230.2 ms at 29812 ms, present 1071
  • Driver.WorkerWait (queue worker 0x20) 636.9 ms at 33998 ms, present 1071
  • Driver.WorkerWait (queue worker 0x0) 605.9 ms at 16921 ms, present 771
  • Driver.WorkerWait (queue worker 0x0) 342.4 ms at 2933 ms, present 142
  • Driver.Packet.memory_wait (queue worker 0x20) 342.3 ms at 9119 ms, present 453

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 4719: 2115.0 ms at 44673 ms, present 1072: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2311.5, Driver.Packet.draw (queue worker 0x0) 2306.7, Driver.Draw (queue worker 0x0) 2305.5, Driver.Draw.draw_enqueued (queue worker 0x0) 2105.3
  • batch 4362: 2106.2 ms at 39757 ms, present 1071: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.validate (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Resources.Prepare (draw committer) 0.0
  • batch 1363: 184.1 ms at 9226 ms, present 453: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 71.3, Driver.Packet.dispatch (queue worker 0x0) 71.3, Driver.Dispatch (queue worker 0x0) 57.7, Vulkan.Dispatch (queue worker 0x0) 37.4
  • batch 1362: 175.8 ms at 9050 ms, present 453: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 38.3, Driver.Packet.dispatch (queue worker 0x0) 38.3, Driver.Dispatch (queue worker 0x0) 29.7, Vulkan.Dispatch (queue worker 0x0) 12.8
  • batch 4715: 49.6 ms at 44609 ms, present 1072: GPU no ranges; recorded by Driver.Packet (queue worker 0x20) 49.9, GpuMutex.wait.label (queue worker 0x20) 28.9, Driver.Packet.dispatch (queue worker 0x20) 28.3, Driver.Packet.prepare_memory (queue worker 0x20) 21.6
main + #9915 (A), capture 3

seconds 0:45 from present 0: 1185 presents, frame p50 16.7 / p90 33.6 / p99 73.0 / max 30806.1 ms, GPU busy 3.7 ms per present
NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 580.178.04, Linux 6.8.0-138-generic, 3840x2160, commit bc4a8fcd8f9c, dropped: no

{"commit":"bc4a8fcd8f9c","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":58221.684},"presents":1185,"frame_ms":{"p50":16.703,"p90":33.642,"p99":72.985,"max":30806.105},"gpu_busy_ms_per_present":3.657,"worker_busy_pct":{"queue worker 0x0":79.579,"queue worker 0x20":37.596},"top_phases_ms_per_frame":{"Driver.Packet":57.554,"Graphics.Draw":21.072,"Driver.Packet.memory_wait":17.871,"Driver.Packet.draw":17.518,"Driver.Draw":17.509,"VideoOut.Flip":15.7,"Driver.Draw.draw_enqueued":13.685,"Graphics.Draw.draw_and_resource_release":11.984},"trace_dropped":false,"trace":"aps5-trace-bc4a8fcd8f9c-281453.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 1184: 30806.1 ms at 27416 ms: Driver.Packet (queue worker 0x0) 27100.3, Driver.Packet (queue worker 0x20) 21501.0, Driver.Packet.memory_wait (queue worker 0x20) 21099.0, Driver.Packet.draw (queue worker 0x0) 20147.4
  • present 453: 775.2 ms at 8990 ms: Driver.Packet (queue worker 0x0) 748.6, Driver.Packet.dispatch (queue worker 0x0) 394.6, batch (gpu) 393.1, Driver.Packet (queue worker 0x20) 387.0
  • present 0: 431.6 ms at 0 ms: Driver.Packet (queue worker 0x0) 25.0, Graphics.Draw (draw committer) 24.2, Driver.Packet.pipeline_drain (queue worker 0x0) 23.6, Graphics.Draw.draw_and_resource_release (draw committer) 19.8
  • present 759: 413.5 ms at 16441 ms: Driver.WorkerWait (queue worker 0x20) 413.5, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 413.5, Driver.WorkerWait (queue worker 0x0) 369.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 369.1
  • present 142: 326.5 ms at 2969 ms: Driver.WorkerWait (queue worker 0x0) 325.2, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 325.2, GpuMutex.wait.other (title) 218.5, Graphics.Wait (queue worker 0x0) 148.1

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.3 (1 %) 0.0 (0 %) 48.9 0.0 Recorder.Sync 0.3
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 32.8 (67 %) 13.8 (28 %) 2.5 0.4 Driver.Packet 38.6, VideoOut.Readiness 0.1
draw committer 21.0 (43 %) 0.4 (1 %) 27.7 0.1 Graphics.Draw 20.9, Recorder.Submit 0.1
title 0.0 (0 %) 0.4 (1 %) 48.7 0.0
presenter 9.3 (19 %) 6.4 (13 %) 33.4 0.1 VideoOut.Flip 15.7, Driver.Present 0.0
title 0.3 (1 %) 0.0 (0 %) 48.8 0.0 Shader.ResolveAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.0
title 0.4 (1 %) 0.0 (0 %) 48.7 0.0 Shader.ResolveAbi 0.4, Shader.ResolveGraphicsStagesAbi 0.1
title 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.Register 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 49.0 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 49.0 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 48.9 0.0 Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.0 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.0 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x20 0.1 (0 %) 37.5 (76 %) 11.6 0.0 Driver.Packet 18.5, Recorder.Submit 0.0
title 0.3 (1 %) 0.0 (0 %) 48.8 0.0 Shader.Register 0.3
title 0.3 (1 %) 0.0 (0 %) 48.8 0.0 Shader.Register 0.3
title 0.3 (1 %) 0.0 (0 %) 48.9 0.0 Shader.Register 0.3
title 0.5 (1 %) 0.0 (0 %) 48.7 0.0 Shader.Register 0.5
title 0.2 (0 %) 0.0 (0 %) 48.9 0.0 Shader.Register 0.2
title 0.2 (0 %) 0.0 (0 %) 48.9 0.0 Shader.Register 0.2
title 0.2 (0 %) 0.0 (0 %) 48.9 0.0 Shader.Register 0.2
title 0.0 (0 %) 0.0 (0 %) 49.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0
gpu 7.0 (14 %) 0.0 (0 %) 42.2 0.0 batch 7.0

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 57.1, Driver.WorkerWait 27.0, Driver.WorkerWait.idle_and_completion_poll 27.0, Graphics.Draw 20.9, Driver.Packet.memory_wait 17.9, Driver.Packet.draw 17.4, Driver.Draw 17.4, VideoOut.Flip 15.7, Driver.Draw.draw_enqueued 13.6, Graphics.Draw.draw_and_resource_release 11.8

Longest waits

  • Driver.WorkerWait (queue worker 0x20) 21947.4 ms at 9537 ms, present 453
  • Driver.Packet.memory_wait (queue worker 0x20) 9032.9 ms at 38558 ms, present 1184
  • Driver.Packet.memory_wait (queue worker 0x20) 7042.5 ms at 31488 ms, present 1184
  • Driver.Packet.memory_wait (queue worker 0x20) 4968.7 ms at 48282 ms, present 1184
  • Driver.WorkerWait (queue worker 0x0) 2910.3 ms at 27416 ms, present 1183
  • Driver.WorkerWait (queue worker 0x20) 542.4 ms at 47739 ms, present 1184
  • Driver.WorkerWait (queue worker 0x0) 369.1 ms at 16443 ms, present 759
  • Driver.WorkerWait (queue worker 0x0) 350.9 ms at 2943 ms, present 140
  • GpuMutex.wait.hook (queue worker 0x20) 319.3 ms at 53274 ms, present 1184
  • GpuMutex.wait.flush (queue worker 0x20) 314.1 ms at 9150 ms, present 453

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 4643: 2238.4 ms at 53629 ms, present 1184: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.validate (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Resources.Prepare (draw committer) 0.0
  • batch 1355: 364.1 ms at 9100 ms, present 453: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 108.8, Driver.Packet.dispatch (queue worker 0x0) 108.8, Driver.Dispatch (queue worker 0x0) 83.1, Vulkan.Dispatch (queue worker 0x0) 44.1
  • batch 3626: 43.5 ms at 37881 ms, present 1184: GPU no ranges; recorded by Graphics.Draw (draw committer) 95.2, Graphics.Draw.draw_and_resource_release (draw committer) 93.6, Resources.Complete (draw committer) 88.7, Resources.Prepare (draw committer) 3.3
  • batch 3961: 37.9 ms at 47432 ms, present 1184: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 11.5, Driver.Packet.dispatch (queue worker 0x0) 11.4, Driver.Dispatch (queue worker 0x0) 11.3, Driver.Dispatch.materialize (queue worker 0x0) 4.9
  • batch 3877: 37.5 ms at 38559 ms, present 1184: GPU no ranges; recorded by Graphics.Draw (draw committer) 24.1, Graphics.Draw.draw_and_resource_release (draw committer) 23.3, Resources.Complete (draw committer) 16.0, Graphics.Draw.validate (draw committer) 0.7
this change (B), capture 4

seconds 0:45 from present 0: 1107 presents, frame p50 16.7 / p90 36.4 / p99 65.9 / max 17395.1 ms, GPU busy 6.1 ms per present
NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 580.178.04, Linux 6.8.0-138-generic, 3840x2160, commit 30629f3870c4, dropped: no

{"commit":"30629f3870c4","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":49137.173},"presents":1107,"frame_ms":{"p50":16.707,"p90":36.369,"p99":65.92,"max":17395.13},"gpu_busy_ms_per_present":6.054,"worker_busy_pct":{"queue worker 0x0":78.356,"queue worker 0x20":28.678},"top_phases_ms_per_frame":{"Driver.Packet":47.493,"VideoOut.Flip":15.594,"Driver.Packet.memory_wait":12.623,"Driver.Packet.draw":11.373,"Driver.Draw":11.362,"Graphics.Draw":10.794,"Driver.Packet.pipeline_drain":9.526,"VideoOut.Flip.notify_game":7.121},"trace_dropped":false,"trace":"aps5-trace-30629f3870c4-282897.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 1105: 17395.1 ms at 26876 ms: Driver.Packet (queue worker 0x0) 13634.9, Driver.Packet (queue worker 0x20) 13287.7, Driver.Packet.memory_wait (queue worker 0x20) 13190.8, Driver.Packet.draw (queue worker 0x0) 7279.1
  • present 1106: 4866.4 ms at 44271 ms: Driver.Packet (queue worker 0x0) 4665.9, Driver.Packet.draw (queue worker 0x0) 4396.6, Driver.Draw (queue worker 0x0) 4395.0, Driver.Draw.prepare (queue worker 0x0) 3067.5
  • present 456: 658.8 ms at 8950 ms: Driver.Packet (queue worker 0x0) 613.3, Driver.Packet.dispatch (queue worker 0x0) 582.4, Driver.Dispatch (queue worker 0x0) 531.2, batch (gpu) 363.3
  • present 756: 597.6 ms at 16425 ms: Driver.WorkerWait (queue worker 0x20) 597.6, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 597.6, Driver.WorkerWait (queue worker 0x0) 590.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 590.8
  • present 0: 448.8 ms at 0 ms: Driver.Packet (queue worker 0x0) 31.3, Driver.Packet.pipeline_drain (queue worker 0x0) 29.2, Graphics.Draw (draw committer) 26.5, Graphics.Draw.draw_and_resource_release (draw committer) 17.9

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 27.6 (62 %) 13.7 (31 %) 3.1 2.3 Driver.Packet 34.1, VideoOut.Readiness 0.1
draw committer 10.6 (24 %) 0.1 (0 %) 33.7 0.5 Graphics.Draw 10.6, Recorder.Submit 0.1
title 0.0 (0 %) 0.4 (1 %) 44.0 0.0
presenter 8.8 (20 %) 6.8 (15 %) 28.8 0.1 VideoOut.Flip 15.6, Driver.Present 0.0
title 0.4 (1 %) 0.0 (0 %) 44.0 0.0 Shader.ResolveAbi 0.4, Shader.ResolveGraphicsStagesAbi 0.1
title 0.3 (1 %) 0.0 (0 %) 44.1 0.0 Shader.ResolveAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 44.3 0.0 Shader.Register 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.3 (1 %) 0.0 (0 %) 44.1 0.0 Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 44.2 0.0 Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 44.3 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.2 (0 %) 0.0 (0 %) 44.2 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 44.3 0.0 Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x20 0.1 (0 %) 32.1 (72 %) 12.2 0.0 Driver.Packet 12.7, Driver.EndSubmission 0.0
title 0.5 (1 %) 0.0 (0 %) 43.8 0.0 Shader.Register 0.5
title 0.3 (1 %) 0.0 (0 %) 44.1 0.0 Shader.Register 0.3
title 0.2 (0 %) 0.0 (0 %) 44.2 0.0 Shader.Register 0.2
title 0.3 (1 %) 0.0 (0 %) 44.1 0.0 Shader.Register 0.3
title 0.2 (0 %) 0.0 (0 %) 44.2 0.0 Shader.Register 0.2
title 0.3 (1 %) 0.0 (0 %) 44.1 0.0 Shader.Register 0.3
title 0.5 (1 %) 0.0 (0 %) 43.9 0.0 Shader.Register 0.5
title 0.0 (0 %) 0.0 (0 %) 44.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0
gpu 9.1 (20 %) 0.0 (0 %) 35.3 0.0 batch 9.1

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 46.8, Driver.WorkerWait 26.6, Driver.WorkerWait.idle_and_completion_poll 26.6, VideoOut.Flip 15.6, Driver.Packet.memory_wait 12.6, Driver.Packet.draw 11.2, Driver.Draw 11.1, Graphics.Draw 10.6, Driver.Packet.pipeline_drain 9.3, batch 9.1

Longest waits

  • Driver.WorkerWait (queue worker 0x20) 20903.8 ms at 9423 ms, present 456
  • Driver.Packet.memory_wait (queue worker 0x20) 5016.0 ms at 34662 ms, present 1105
  • Driver.Packet.memory_wait (queue worker 0x20) 4972.2 ms at 39766 ms, present 1105
  • Driver.WorkerWait (queue worker 0x0) 3002.1 ms at 26876 ms, present 1105
  • Driver.Packet.memory_wait (queue worker 0x20) 2514.6 ms at 31459 ms, present 1105
  • Driver.Packet.memory_wait (queue worker 0x20) 1128.8 ms at 30327 ms, present 1105
  • Driver.WorkerWait (queue worker 0x0) 590.8 ms at 16425 ms, present 756
  • Driver.WorkerWait (queue worker 0x20) 576.5 ms at 34086 ms, present 1105
  • Driver.WorkerWait (queue worker 0x0) 341.6 ms at 2955 ms, present 144
  • Driver.Packet.memory_wait (queue worker 0x20) 302.9 ms at 9109 ms, present 456

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 4798: 2158.0 ms at 44836 ms, present 1106: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 3923.0, Driver.Packet.draw (queue worker 0x0) 3914.9, Driver.Draw (queue worker 0x0) 3913.7, Driver.Draw.prepare (queue worker 0x0) 2724.8
  • batch 4441: 2116.9 ms at 39775 ms, present 1105: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.validate (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Resources.Prepare (draw committer) 0.0
  • batch 1369: 333.9 ms at 9063 ms, present 456: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 63.9, Driver.Packet.dispatch (queue worker 0x0) 63.9, Driver.Dispatch (queue worker 0x0) 55.6, Vulkan.Dispatch (queue worker 0x0) 30.6
  • batch 3677: 40.7 ms at 33752 ms, present 1105: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 10.9, Driver.Packet.dispatch (queue worker 0x0) 10.8, Driver.Dispatch (queue worker 0x0) 10.8, Driver.Dispatch.materialize (queue worker 0x0) 4.7
  • batch 3303: 32.3 ms at 29918 ms, present 1105: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 4.9, Driver.Packet.dispatch (queue worker 0x0) 4.8, Driver.Dispatch (queue worker 0x0) 4.8, Vulkan.Dispatch (queue worker 0x0) 4.4

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3080 Laptop GPU, driver 580.178.04, Ubuntu 22.04.5 (Linux 6.8.0-138-generic)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5108490962 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14473). Originally posted by [msbutt1](https://github.com/msbutt1) on 2026-11-01T14:52:44Z. --- ### What On Linux without `PROCMAP_QUERY` (kernels before 6.11, such as the 6.8 kernel of Ubuntu 22.04 and 24.04), `describePages` answers a page-cache miss by reading `/proc/self/maps` from the top until it reaches the queried address, and keeps only the run it was asked about. Every mapping the scan passed on the way is parsed and thrown away. A title that maps thousands of ranges pays a full scan for almost every miss. This keeps every readable mapping the scan passes in the page-state cache. It goes through `PageStates::record` with the generation and access snapshot already taken before the file is opened, the same check that guards the queried run, so a registry mutation or access change during the scan forgets these entries as it forgets that one. Inaccessible mappings and gaps the scan passes are not recorded and stay unknown: a title's reserved ranges are inaccessible mappings of hundreds of GiB (Sifu reserves `0x1000000000 + 0x7fc0000000`), and recording them would rewrite one cache byte per 4 KiB page of them on every scan. A version that also recorded them made each scan about four times slower. Sifu (PPSA03001) during loading, measured with a local probe in the fallback that is not part of this PR: 14,336 fallback scans in the first ~55 s, about 2.5 ms and 5,200 lines each, 36 s in total; 92% of them queried an address inside the cached arena or image span, and each scan passed about 4,700 mappings inside a cached span before reaching its own. `/proc/self/maps` reached 21,214 lines. `RunPassedMappingTests` (Linux, `agc_driver_graphics` and `agc_driver_graphics_maps_fallback`) maps writable, read-only and inaccessible pages and an unmapped gap below a queried page, then checks that the readable ones are answered from the cache after a scan, that the inaccessible one and the gap are not recorded, and that `GuestAllocationsInvalidate` and a registry `Protect` forget what was recorded. It returns early when `PROCMAP_QUERY` is available, since the ioctl path records only the queried run. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Ubuntu 22.04.5, Linux 6.8.0-138-generic (no `PROCMAP_QUERY`), i7-11800H, NVIDIA GeForce RTX 3080 Laptop GPU with driver 580.178.04, AC power. Built with GCC 13.4 and the 6.8 kernel UAPI headers. - `agc_driver_graphics` and `agc_driver_graphics_maps_fallback` pass (13.5 s each). Without the change in `GuestMemory.cpp`, `agc_driver_graphics_maps_fallback` fails with `a writable mapping the maps scan passed was queried again instead of read from the page table`. - Full `ctest -j 8` on this commit over e67cc81869: 3,140 tests, 5 failures, none from this change. `agc_driver_htile_mask_lifetime`, `guest_standard_streams` and `guest_runtime_lifecycle` fail the same way on `main` on this machine. `agc_driver_dcc_keys_first_write` fails with `resident snapshot size mismatch` with or without the `GuestMemory.cpp` change on this base, and passed on 26fa1212b8. `build_eligibility` fails because its harness uses `??`, which this machine's Node 12 does not parse. - Vulkan validation, on `main` and on this change from the same machine and GPU: `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R '^(agc_driver_graphics|agc_driver_graphics_maps_fallback|agc_driver_guest_memory_lifetime.*)$' -V`. Both runs pass 9 of 9, neither log contains `was not found but was requested by env var VK_INSTANCE_LAYERS`, and both report the same `VUID-` lines (108 `VUID-VkDeviceCreateInfo-pNext-pNext`, 54 `VUID-VkPhysicalDeviceProperties2-pNext-pNext`, from the 1.3.204 layer not knowing newer structures); the change adds none. - Performance: Sifu (PPSA03001, 01.007.000), from start-up through loading, `APS5_TRACE_SECONDS=0:45`, warm caches (one run before the captures), captured A, B, A, B in one session, each in a terminal without a redirected log or other `APS5_TRACE_*`/`APS5_PROFILE_*` switches. Converted with `--to-intel`; the dump has no PlayGo metadata, so `APS5_PLAYGO_UNLISTED_CHUNKS=absent` as `docs/user/USAGE.md` lists for this title. Both sides include #9915, because `main` alone stops this scene at about 30 s with `vertex fetch exceeds descriptor record count`: A is `main` 26fa1212b8 with #9915 (`bc4a8fcd8f`), B is A with this commit (`30629f3870`). The commit was then rebased onto e67cc81869 without conflicts; the change since then in `GuestMemory.cpp` adds a macOS branch ahead of the fallback. | Capture | Commit | Presents | Window (ms) | frame p50 | p90 | p99 | max (ms) | |---|---|---:|---:|---:|---:|---:|---:| | A | bc4a8fcd8f9c | 1172 | 57938 | 16.70 | 33.10 | 84.40 | 30633 | | B | 30629f3870c4 | 1073 | 46970 | 16.71 | 40.16 | 108.44 | 17110 | | A | bc4a8fcd8f9c | 1185 | 58222 | 16.70 | 33.64 | 72.99 | 30806 | | B | 30629f3870c4 | 1107 | 49137 | 16.71 | 36.37 | 65.92 | 17395 | The loading stall, the longest interval between presents, goes from 30.6 s and 30.8 s to 17.1 s and 17.4 s, and the 45 s window closes about 10 s earlier. In that frame `Driver.Packet.memory_wait` on queue worker 0x20 drops from 21,440 and 21,099 ms to 13,620 and 13,191 ms (`trace_digest.py`, slowest frames). The median frame is unchanged. p90 and p99 move in both directions across the two pairs; B's window ends sooner, so it holds a smaller share of the fast loading-screen frames, and `gpu_busy_ms_per_present` rises for the same reason. `performance_compare.py --require-matching-context` reports `frame_ms.max` −44.1% and −43.5% and `mean_frame_ms` −11.5% and −9.7%. Summary lines, traces and digests are attached. #### Summary lines (aps5-summary.jsonl) ```json {"commit":"bc4a8fcd8f9c","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":57938.426},"presents":1172,"frame_ms":{"p50":16.704,"p90":33.097,"p99":84.398,"max":30633.052},"gpu_busy_ms_per_present":3.730,"worker_busy_pct":{"queue worker 0x0":80.740,"queue worker 0x20":38.832},"top_phases_ms_per_frame":{"Driver.Packet":59.101,"Graphics.Draw":21.333,"Driver.Packet.memory_wait":18.575,"Driver.Packet.draw":18.308,"Driver.Draw":18.299,"VideoOut.Flip":15.570,"Driver.Draw.draw_enqueued":14.289,"Graphics.Draw.draw_and_resource_release":12.583},"trace_dropped":false,"trace":"aps5-trace-bc4a8fcd8f9c-278752.json.gz"} {"commit":"30629f3870c4","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":46969.617},"presents":1073,"frame_ms":{"p50":16.707,"p90":40.155,"p99":108.442,"max":17110.149},"gpu_busy_ms_per_present":5.924,"worker_busy_pct":{"queue worker 0x0":78.664,"queue worker 0x20":30.734},"top_phases_ms_per_frame":{"Driver.Packet":47.873,"VideoOut.Flip":15.850,"Driver.Packet.memory_wait":13.287,"Graphics.Draw":11.116,"Driver.Packet.draw":10.480,"Driver.Draw":10.469,"Driver.Packet.pipeline_drain":9.360,"VideoOut.Flip.notify_game":7.326},"trace_dropped":false,"trace":"aps5-trace-30629f3870c4-280109.json.gz"} {"commit":"bc4a8fcd8f9c","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":58221.684},"presents":1185,"frame_ms":{"p50":16.703,"p90":33.642,"p99":72.985,"max":30806.105},"gpu_busy_ms_per_present":3.657,"worker_busy_pct":{"queue worker 0x0":79.579,"queue worker 0x20":37.596},"top_phases_ms_per_frame":{"Driver.Packet":57.554,"Graphics.Draw":21.072,"Driver.Packet.memory_wait":17.871,"Driver.Packet.draw":17.518,"Driver.Draw":17.509,"VideoOut.Flip":15.700,"Driver.Draw.draw_enqueued":13.685,"Graphics.Draw.draw_and_resource_release":11.984},"trace_dropped":false,"trace":"aps5-trace-bc4a8fcd8f9c-281453.json.gz"} {"commit":"30629f3870c4","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":49137.173},"presents":1107,"frame_ms":{"p50":16.707,"p90":36.369,"p99":65.920,"max":17395.130},"gpu_busy_ms_per_present":6.054,"worker_busy_pct":{"queue worker 0x0":78.356,"queue worker 0x20":28.678},"top_phases_ms_per_frame":{"Driver.Packet":47.493,"VideoOut.Flip":15.594,"Driver.Packet.memory_wait":12.623,"Driver.Packet.draw":11.373,"Driver.Draw":11.362,"Graphics.Draw":10.794,"Driver.Packet.pipeline_drain":9.526,"VideoOut.Flip.notify_game":7.121},"trace_dropped":false,"trace":"aps5-trace-30629f3870c4-282897.json.gz"} ``` Traces: `aps5-trace-bc4a8fcd8f9c-278752.json.gz` and `aps5-trace-bc4a8fcd8f9c-281453.json.gz` (main + #9915), `aps5-trace-30629f3870c4-280109.json.gz` and `aps5-trace-30629f3870c4-282897.json.gz` (this change), attached in a comment. #### Digest (`python3 tools/trace_digest.py <trace>`) <details><summary>main + #9915 (A), capture 1</summary> **seconds 0:45** from present 0: 1172 presents, frame p50 16.7 / p90 33.1 / p99 84.4 / max 30633.1 ms, GPU busy 3.7 ms per present NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 580.178.04, Linux 6.8.0-138-generic, 3840x2160, commit bc4a8fcd8f9c, dropped: no ```json {"commit":"bc4a8fcd8f9c","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":57938.426},"presents":1172,"frame_ms":{"p50":16.704,"p90":33.097,"p99":84.398,"max":30633.052},"gpu_busy_ms_per_present":3.73,"worker_busy_pct":{"queue worker 0x0":80.74,"queue worker 0x20":38.832},"top_phases_ms_per_frame":{"Driver.Packet":59.101,"Graphics.Draw":21.333,"Driver.Packet.memory_wait":18.575,"Driver.Packet.draw":18.308,"Driver.Draw":18.299,"VideoOut.Flip":15.57,"Driver.Draw.draw_enqueued":14.289,"Graphics.Draw.draw_and_resource_release":12.583},"trace_dropped":false,"trace":"aps5-trace-bc4a8fcd8f9c-278752.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 1171: 30633.1 ms at 27305 ms: Driver.Packet (queue worker 0x0) 27557.3, Driver.Packet (queue worker 0x20) 22164.4, Driver.Packet.memory_wait (queue worker 0x20) 21439.9, Driver.Packet.draw (queue worker 0x0) 20684.3 - present 0: 784.0 ms at 0 ms: Driver.Packet (queue worker 0x0) 30.2, Driver.Packet.pipeline_drain (queue worker 0x0) 27.3, Graphics.Draw (draw committer) 22.7, Driver.Present (presenter) 16.0 - present 455: 736.5 ms at 9327 ms: Driver.Packet (queue worker 0x0) 669.4, Driver.Packet.dispatch (queue worker 0x0) 630.7, Driver.Dispatch (queue worker 0x0) 595.9, batch (gpu) 381.5 - present 753: 491.0 ms at 16574 ms: Driver.WorkerWait (queue worker 0x20) 491.0, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 491.0, Driver.WorkerWait (queue worker 0x0) 457.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 457.9 - present 144: 325.9 ms at 3316 ms: Driver.WorkerWait (queue worker 0x0) 324.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 324.4, GpuMutex.wait.other (title) 209.4, Graphics.Wait (queue worker 0x0) 151.2 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 33.2 (67 %) | 13.3 (27 %) | 2.9 | 0.4 | Driver.Packet 39.4, VideoOut.Readiness 0.1 | | draw committer | 21.3 (43 %) | 0.1 (0 %) | 28.1 | 0.1 | Graphics.Draw 21.2, Recorder.Submit 0.1 | | title | 0.0 (0 %) | 0.4 (1 %) | 49.0 | 0.0 | | | presenter | 8.8 (18 %) | 6.8 (14 %) | 33.9 | 0.1 | VideoOut.Flip 15.6, Driver.Present 0.0 | | title | 0.4 (1 %) | 0.0 (0 %) | 49.0 | 0.0 | Shader.ResolveAbi 0.4, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.3 (1 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.ResolveAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.Register 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 49.2 | 0.0 | Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 49.2 | 0.0 | Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 49.2 | 0.0 | Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.3 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.3 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x20 | 0.1 (0 %) | 37.4 (76 %) | 12.0 | 0.0 | Driver.Packet 19.2, Recorder.Submit 0.0 | | title | 0.3 (1 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.Register 0.3 | | title | 0.3 (1 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.Register 0.3 | | title | 0.5 (1 %) | 0.0 (0 %) | 49.0 | 0.0 | Shader.Register 0.5 | | title | 0.3 (1 %) | 0.0 (0 %) | 49.2 | 0.0 | Shader.Register 0.3 | | title | 0.2 (0 %) | 0.0 (0 %) | 49.2 | 0.0 | Shader.Register 0.2 | | title | 0.3 (1 %) | 0.0 (0 %) | 49.2 | 0.0 | Shader.Register 0.3 | | title | 0.2 (0 %) | 0.0 (0 %) | 49.2 | 0.0 | Shader.Register 0.2 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 7.0 (14 %) | 0.0 (0 %) | 42.5 | 0.0 | batch 7.0 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 58.6, Driver.WorkerWait 25.3, Driver.WorkerWait.idle_and_completion_poll 25.3, Graphics.Draw 21.2, Driver.Packet.memory_wait 18.6, Driver.Packet.draw 18.2, Driver.Draw 18.2, VideoOut.Flip 15.6, Driver.Draw.draw_enqueued 14.2, Graphics.Draw.draw_and_resource_release 12.4 **Longest waits** - Driver.WorkerWait (queue worker 0x20) 20791.0 ms at 9813 ms, present 455 - Driver.Packet.memory_wait (queue worker 0x20) 9392.1 ms at 38093 ms, present 1171 - Driver.Packet.memory_wait (queue worker 0x20) 7083.9 ms at 30981 ms, present 1171 - Driver.Packet.memory_wait (queue worker 0x20) 4938.7 ms at 48124 ms, present 1171 - Driver.WorkerWait (queue worker 0x0) 2273.1 ms at 27306 ms, present 1171 - Driver.WorkerWait (queue worker 0x20) 528.8 ms at 47596 ms, present 1171 - Driver.WorkerWait (queue worker 0x0) 457.9 ms at 16574 ms, present 753 - GpuMutex.wait.flush (queue worker 0x20) 377.7 ms at 30604 ms, present 1171 - Driver.WorkerWait (queue worker 0x0) 349.9 ms at 3291 ms, present 142 - Driver.Packet.memory_wait (queue worker 0x20) 318.1 ms at 9483 ms, present 455 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 4650: 2114.5 ms at 53406 ms, present 1171: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.validate (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Resources.Prepare (draw committer) 0.1 - batch 1373: 179.0 ms at 9607 ms, present 455: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 74.5, Driver.Packet.dispatch (queue worker 0x0) 71.6, Driver.Dispatch (queue worker 0x0) 55.5, Vulkan.Dispatch (queue worker 0x0) 37.7 - batch 1372: 173.8 ms at 9434 ms, present 455: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 29.0, Driver.Packet.dispatch (queue worker 0x0) 29.0, Driver.Dispatch (queue worker 0x0) 28.9, Vulkan.Dispatch (queue worker 0x0) 21.6 - batch 3955: 44.5 ms at 47278 ms, present 1171: GPU no ranges; recorded by Graphics.Draw (draw committer) 20.9, Graphics.Draw.draw_and_resource_release (draw committer) 18.1, Resources.Complete (draw committer) 4.6, Resources.Prepare (draw committer) 3.8 - batch 3620: 44.0 ms at 37105 ms, present 1171: GPU no ranges; recorded by Graphics.Draw (draw committer) 111.0, Graphics.Draw.draw_and_resource_release (draw committer) 109.2, Resources.Complete (draw committer) 95.9, Resources.Prepare (draw committer) 8.1 </details> <details><summary>this change (B), capture 2</summary> **seconds 0:45** from present 0: 1073 presents, frame p50 16.7 / p90 40.2 / p99 108.4 / max 17110.1 ms, GPU busy 5.9 ms per present NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 580.178.04, Linux 6.8.0-138-generic, 3840x2160, commit 30629f3870c4, dropped: no ```json {"commit":"30629f3870c4","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":46969.617},"presents":1073,"frame_ms":{"p50":16.707,"p90":40.155,"p99":108.442,"max":17110.149},"gpu_busy_ms_per_present":5.924,"worker_busy_pct":{"queue worker 0x0":78.664,"queue worker 0x20":30.734},"top_phases_ms_per_frame":{"Driver.Packet":47.873,"VideoOut.Flip":15.85,"Driver.Packet.memory_wait":13.287,"Graphics.Draw":11.116,"Driver.Packet.draw":10.48,"Driver.Draw":10.469,"Driver.Packet.pipeline_drain":9.36,"VideoOut.Flip.notify_game":7.326},"trace_dropped":false,"trace":"aps5-trace-30629f3870c4-280109.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 1071: 17110.1 ms at 27158 ms: Driver.Packet (queue worker 0x0) 14106.7, Driver.Packet (queue worker 0x20) 13741.0, Driver.Packet.memory_wait (queue worker 0x20) 13619.8, Driver.Packet.draw (queue worker 0x0) 7790.4 - present 1072: 2701.2 ms at 44268 ms: Driver.Packet (queue worker 0x0) 2510.9, batch (gpu) 2372.9, Driver.Packet.draw (queue worker 0x0) 2333.2, Driver.Draw (queue worker 0x0) 2331.7 - present 453: 696.0 ms at 8962 ms: Driver.Packet (queue worker 0x0) 653.4, batch (gpu) 388.6, Driver.Packet (queue worker 0x20) 353.8, Driver.Packet.memory_wait (queue worker 0x20) 342.3 - present 772: 613.3 ms at 16921 ms: Driver.WorkerWait (queue worker 0x20) 613.3, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 613.3, Driver.WorkerWait (queue worker 0x0) 605.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 605.9 - present 0: 426.7 ms at 0 ms: Driver.Packet (queue worker 0x0) 26.4, Graphics.Draw (draw committer) 25.1, Driver.Packet.pipeline_drain (queue worker 0x0) 24.5, Driver.Present (presenter) 18.4 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.3 (1 %) | 0.0 (0 %) | 43.5 | 0.0 | Recorder.Sync 0.3 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 26.7 (61 %) | 13.7 (31 %) | 3.3 | 2.3 | Driver.Packet 33.7, VideoOut.Readiness 0.1 | | draw committer | 11.0 (25 %) | 0.0 (0 %) | 32.8 | 0.5 | Graphics.Draw 10.9, Recorder.Submit 0.1 | | title | 0.0 (0 %) | 0.4 (1 %) | 43.3 | 0.0 | | | presenter | 9.1 (21 %) | 6.8 (15 %) | 27.9 | 0.1 | VideoOut.Flip 15.8, Driver.Present 0.0 | | title | 0.3 (1 %) | 0.0 (0 %) | 43.4 | 0.0 | Shader.ResolveAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.4 (1 %) | 0.0 (0 %) | 43.3 | 0.0 | Shader.ResolveAbi 0.4, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.1 (0 %) | 0.0 (0 %) | 43.7 | 0.0 | Shader.Register 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 43.6 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 43.7 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (1 %) | 0.0 (0 %) | 43.5 | 0.0 | Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 43.6 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 43.6 | 0.0 | Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x20 | 0.1 (0 %) | 33.0 (75 %) | 10.7 | 0.0 | Driver.Packet 13.5, Driver.EndSubmission 0.0 | | title | 0.3 (1 %) | 0.0 (0 %) | 43.5 | 0.0 | Shader.Register 0.3 | | title | 0.6 (1 %) | 0.0 (0 %) | 43.1 | 0.0 | Shader.Register 0.6 | | title | 0.4 (1 %) | 0.0 (0 %) | 43.4 | 0.0 | Shader.Register 0.4 | | title | 0.3 (1 %) | 0.0 (0 %) | 43.5 | 0.0 | Shader.Register 0.3 | | title | 0.4 (1 %) | 0.0 (0 %) | 43.4 | 0.0 | Shader.Register 0.4 | | title | 0.3 (1 %) | 0.0 (0 %) | 43.5 | 0.0 | Shader.Register 0.3 | | title | 0.3 (1 %) | 0.0 (0 %) | 43.5 | 0.0 | Shader.Register 0.3 | | title | 0.0 (0 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 8.9 (20 %) | 0.0 (0 %) | 34.9 | 0.0 | batch 8.9 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 47.2, Driver.WorkerWait 26.2, Driver.WorkerWait.idle_and_completion_poll 26.2, VideoOut.Flip 15.8, Driver.Packet.memory_wait 13.3, Graphics.Draw 10.9, Driver.Packet.draw 10.3, Driver.Draw 10.3, Driver.Packet.pipeline_drain 9.1, batch 8.9 **Longest waits** - Driver.WorkerWait (queue worker 0x20) 20338.3 ms at 9473 ms, present 453 - Driver.Packet.memory_wait (queue worker 0x20) 5012.5 ms at 34641 ms, present 1071 - Driver.Packet.memory_wait (queue worker 0x20) 4820.4 ms at 39731 ms, present 1071 - Driver.Packet.memory_wait (queue worker 0x20) 2814.7 ms at 31077 ms, present 1071 - Driver.WorkerWait (queue worker 0x0) 2227.4 ms at 27161 ms, present 1071 - Driver.Packet.memory_wait (queue worker 0x20) 1230.2 ms at 29812 ms, present 1071 - Driver.WorkerWait (queue worker 0x20) 636.9 ms at 33998 ms, present 1071 - Driver.WorkerWait (queue worker 0x0) 605.9 ms at 16921 ms, present 771 - Driver.WorkerWait (queue worker 0x0) 342.4 ms at 2933 ms, present 142 - Driver.Packet.memory_wait (queue worker 0x20) 342.3 ms at 9119 ms, present 453 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 4719: 2115.0 ms at 44673 ms, present 1072: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2311.5, Driver.Packet.draw (queue worker 0x0) 2306.7, Driver.Draw (queue worker 0x0) 2305.5, Driver.Draw.draw_enqueued (queue worker 0x0) 2105.3 - batch 4362: 2106.2 ms at 39757 ms, present 1071: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.validate (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Resources.Prepare (draw committer) 0.0 - batch 1363: 184.1 ms at 9226 ms, present 453: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 71.3, Driver.Packet.dispatch (queue worker 0x0) 71.3, Driver.Dispatch (queue worker 0x0) 57.7, Vulkan.Dispatch (queue worker 0x0) 37.4 - batch 1362: 175.8 ms at 9050 ms, present 453: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 38.3, Driver.Packet.dispatch (queue worker 0x0) 38.3, Driver.Dispatch (queue worker 0x0) 29.7, Vulkan.Dispatch (queue worker 0x0) 12.8 - batch 4715: 49.6 ms at 44609 ms, present 1072: GPU no ranges; recorded by Driver.Packet (queue worker 0x20) 49.9, GpuMutex.wait.label (queue worker 0x20) 28.9, Driver.Packet.dispatch (queue worker 0x20) 28.3, Driver.Packet.prepare_memory (queue worker 0x20) 21.6 </details> <details><summary>main + #9915 (A), capture 3</summary> **seconds 0:45** from present 0: 1185 presents, frame p50 16.7 / p90 33.6 / p99 73.0 / max 30806.1 ms, GPU busy 3.7 ms per present NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 580.178.04, Linux 6.8.0-138-generic, 3840x2160, commit bc4a8fcd8f9c, dropped: no ```json {"commit":"bc4a8fcd8f9c","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":58221.684},"presents":1185,"frame_ms":{"p50":16.703,"p90":33.642,"p99":72.985,"max":30806.105},"gpu_busy_ms_per_present":3.657,"worker_busy_pct":{"queue worker 0x0":79.579,"queue worker 0x20":37.596},"top_phases_ms_per_frame":{"Driver.Packet":57.554,"Graphics.Draw":21.072,"Driver.Packet.memory_wait":17.871,"Driver.Packet.draw":17.518,"Driver.Draw":17.509,"VideoOut.Flip":15.7,"Driver.Draw.draw_enqueued":13.685,"Graphics.Draw.draw_and_resource_release":11.984},"trace_dropped":false,"trace":"aps5-trace-bc4a8fcd8f9c-281453.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 1184: 30806.1 ms at 27416 ms: Driver.Packet (queue worker 0x0) 27100.3, Driver.Packet (queue worker 0x20) 21501.0, Driver.Packet.memory_wait (queue worker 0x20) 21099.0, Driver.Packet.draw (queue worker 0x0) 20147.4 - present 453: 775.2 ms at 8990 ms: Driver.Packet (queue worker 0x0) 748.6, Driver.Packet.dispatch (queue worker 0x0) 394.6, batch (gpu) 393.1, Driver.Packet (queue worker 0x20) 387.0 - present 0: 431.6 ms at 0 ms: Driver.Packet (queue worker 0x0) 25.0, Graphics.Draw (draw committer) 24.2, Driver.Packet.pipeline_drain (queue worker 0x0) 23.6, Graphics.Draw.draw_and_resource_release (draw committer) 19.8 - present 759: 413.5 ms at 16441 ms: Driver.WorkerWait (queue worker 0x20) 413.5, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 413.5, Driver.WorkerWait (queue worker 0x0) 369.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 369.1 - present 142: 326.5 ms at 2969 ms: Driver.WorkerWait (queue worker 0x0) 325.2, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 325.2, GpuMutex.wait.other (title) 218.5, Graphics.Wait (queue worker 0x0) 148.1 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.3 (1 %) | 0.0 (0 %) | 48.9 | 0.0 | Recorder.Sync 0.3 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 32.8 (67 %) | 13.8 (28 %) | 2.5 | 0.4 | Driver.Packet 38.6, VideoOut.Readiness 0.1 | | draw committer | 21.0 (43 %) | 0.4 (1 %) | 27.7 | 0.1 | Graphics.Draw 20.9, Recorder.Submit 0.1 | | title | 0.0 (0 %) | 0.4 (1 %) | 48.7 | 0.0 | | | presenter | 9.3 (19 %) | 6.4 (13 %) | 33.4 | 0.1 | VideoOut.Flip 15.7, Driver.Present 0.0 | | title | 0.3 (1 %) | 0.0 (0 %) | 48.8 | 0.0 | Shader.ResolveAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.4 (1 %) | 0.0 (0 %) | 48.7 | 0.0 | Shader.ResolveAbi 0.4, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.Register 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 49.0 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 49.0 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 48.9 | 0.0 | Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.0 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.0 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x20 | 0.1 (0 %) | 37.5 (76 %) | 11.6 | 0.0 | Driver.Packet 18.5, Recorder.Submit 0.0 | | title | 0.3 (1 %) | 0.0 (0 %) | 48.8 | 0.0 | Shader.Register 0.3 | | title | 0.3 (1 %) | 0.0 (0 %) | 48.8 | 0.0 | Shader.Register 0.3 | | title | 0.3 (1 %) | 0.0 (0 %) | 48.9 | 0.0 | Shader.Register 0.3 | | title | 0.5 (1 %) | 0.0 (0 %) | 48.7 | 0.0 | Shader.Register 0.5 | | title | 0.2 (0 %) | 0.0 (0 %) | 48.9 | 0.0 | Shader.Register 0.2 | | title | 0.2 (0 %) | 0.0 (0 %) | 48.9 | 0.0 | Shader.Register 0.2 | | title | 0.2 (0 %) | 0.0 (0 %) | 48.9 | 0.0 | Shader.Register 0.2 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.1 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 7.0 (14 %) | 0.0 (0 %) | 42.2 | 0.0 | batch 7.0 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 57.1, Driver.WorkerWait 27.0, Driver.WorkerWait.idle_and_completion_poll 27.0, Graphics.Draw 20.9, Driver.Packet.memory_wait 17.9, Driver.Packet.draw 17.4, Driver.Draw 17.4, VideoOut.Flip 15.7, Driver.Draw.draw_enqueued 13.6, Graphics.Draw.draw_and_resource_release 11.8 **Longest waits** - Driver.WorkerWait (queue worker 0x20) 21947.4 ms at 9537 ms, present 453 - Driver.Packet.memory_wait (queue worker 0x20) 9032.9 ms at 38558 ms, present 1184 - Driver.Packet.memory_wait (queue worker 0x20) 7042.5 ms at 31488 ms, present 1184 - Driver.Packet.memory_wait (queue worker 0x20) 4968.7 ms at 48282 ms, present 1184 - Driver.WorkerWait (queue worker 0x0) 2910.3 ms at 27416 ms, present 1183 - Driver.WorkerWait (queue worker 0x20) 542.4 ms at 47739 ms, present 1184 - Driver.WorkerWait (queue worker 0x0) 369.1 ms at 16443 ms, present 759 - Driver.WorkerWait (queue worker 0x0) 350.9 ms at 2943 ms, present 140 - GpuMutex.wait.hook (queue worker 0x20) 319.3 ms at 53274 ms, present 1184 - GpuMutex.wait.flush (queue worker 0x20) 314.1 ms at 9150 ms, present 453 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 4643: 2238.4 ms at 53629 ms, present 1184: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.validate (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Resources.Prepare (draw committer) 0.0 - batch 1355: 364.1 ms at 9100 ms, present 453: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 108.8, Driver.Packet.dispatch (queue worker 0x0) 108.8, Driver.Dispatch (queue worker 0x0) 83.1, Vulkan.Dispatch (queue worker 0x0) 44.1 - batch 3626: 43.5 ms at 37881 ms, present 1184: GPU no ranges; recorded by Graphics.Draw (draw committer) 95.2, Graphics.Draw.draw_and_resource_release (draw committer) 93.6, Resources.Complete (draw committer) 88.7, Resources.Prepare (draw committer) 3.3 - batch 3961: 37.9 ms at 47432 ms, present 1184: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 11.5, Driver.Packet.dispatch (queue worker 0x0) 11.4, Driver.Dispatch (queue worker 0x0) 11.3, Driver.Dispatch.materialize (queue worker 0x0) 4.9 - batch 3877: 37.5 ms at 38559 ms, present 1184: GPU no ranges; recorded by Graphics.Draw (draw committer) 24.1, Graphics.Draw.draw_and_resource_release (draw committer) 23.3, Resources.Complete (draw committer) 16.0, Graphics.Draw.validate (draw committer) 0.7 </details> <details><summary>this change (B), capture 4</summary> **seconds 0:45** from present 0: 1107 presents, frame p50 16.7 / p90 36.4 / p99 65.9 / max 17395.1 ms, GPU busy 6.1 ms per present NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 580.178.04, Linux 6.8.0-138-generic, 3840x2160, commit 30629f3870c4, dropped: no ```json {"commit":"30629f3870c4","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"absent","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:45"},"gpu":"NVIDIA GeForce RTX 3080 Laptop GPU","driver":"NVIDIA 580.178.04","os":"Linux 6.8.0-138-generic","cpu":"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz","cpu_threads":16,"memory_mib":31812,"title_id":"PPSA03001","title":"Sifu","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 0:45","first_present":0,"ms":49137.173},"presents":1107,"frame_ms":{"p50":16.707,"p90":36.369,"p99":65.92,"max":17395.13},"gpu_busy_ms_per_present":6.054,"worker_busy_pct":{"queue worker 0x0":78.356,"queue worker 0x20":28.678},"top_phases_ms_per_frame":{"Driver.Packet":47.493,"VideoOut.Flip":15.594,"Driver.Packet.memory_wait":12.623,"Driver.Packet.draw":11.373,"Driver.Draw":11.362,"Graphics.Draw":10.794,"Driver.Packet.pipeline_drain":9.526,"VideoOut.Flip.notify_game":7.121},"trace_dropped":false,"trace":"aps5-trace-30629f3870c4-282897.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 1105: 17395.1 ms at 26876 ms: Driver.Packet (queue worker 0x0) 13634.9, Driver.Packet (queue worker 0x20) 13287.7, Driver.Packet.memory_wait (queue worker 0x20) 13190.8, Driver.Packet.draw (queue worker 0x0) 7279.1 - present 1106: 4866.4 ms at 44271 ms: Driver.Packet (queue worker 0x0) 4665.9, Driver.Packet.draw (queue worker 0x0) 4396.6, Driver.Draw (queue worker 0x0) 4395.0, Driver.Draw.prepare (queue worker 0x0) 3067.5 - present 456: 658.8 ms at 8950 ms: Driver.Packet (queue worker 0x0) 613.3, Driver.Packet.dispatch (queue worker 0x0) 582.4, Driver.Dispatch (queue worker 0x0) 531.2, batch (gpu) 363.3 - present 756: 597.6 ms at 16425 ms: Driver.WorkerWait (queue worker 0x20) 597.6, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 597.6, Driver.WorkerWait (queue worker 0x0) 590.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 590.8 - present 0: 448.8 ms at 0 ms: Driver.Packet (queue worker 0x0) 31.3, Driver.Packet.pipeline_drain (queue worker 0x0) 29.2, Graphics.Draw (draw committer) 26.5, Graphics.Draw.draw_and_resource_release (draw committer) 17.9 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 27.6 (62 %) | 13.7 (31 %) | 3.1 | 2.3 | Driver.Packet 34.1, VideoOut.Readiness 0.1 | | draw committer | 10.6 (24 %) | 0.1 (0 %) | 33.7 | 0.5 | Graphics.Draw 10.6, Recorder.Submit 0.1 | | title | 0.0 (0 %) | 0.4 (1 %) | 44.0 | 0.0 | | | presenter | 8.8 (20 %) | 6.8 (15 %) | 28.8 | 0.1 | VideoOut.Flip 15.6, Driver.Present 0.0 | | title | 0.4 (1 %) | 0.0 (0 %) | 44.0 | 0.0 | Shader.ResolveAbi 0.4, Shader.ResolveGraphicsStagesAbi 0.1 | | title | 0.3 (1 %) | 0.0 (0 %) | 44.1 | 0.0 | Shader.ResolveAbi 0.3, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 44.3 | 0.0 | Shader.Register 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.3 (1 %) | 0.0 (0 %) | 44.1 | 0.0 | Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 44.2 | 0.0 | Shader.ResolveAbi 0.2, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 44.3 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.2 (0 %) | 0.0 (0 %) | 44.2 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 44.3 | 0.0 | Shader.ResolveAbi 0.1, Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x20 | 0.1 (0 %) | 32.1 (72 %) | 12.2 | 0.0 | Driver.Packet 12.7, Driver.EndSubmission 0.0 | | title | 0.5 (1 %) | 0.0 (0 %) | 43.8 | 0.0 | Shader.Register 0.5 | | title | 0.3 (1 %) | 0.0 (0 %) | 44.1 | 0.0 | Shader.Register 0.3 | | title | 0.2 (0 %) | 0.0 (0 %) | 44.2 | 0.0 | Shader.Register 0.2 | | title | 0.3 (1 %) | 0.0 (0 %) | 44.1 | 0.0 | Shader.Register 0.3 | | title | 0.2 (0 %) | 0.0 (0 %) | 44.2 | 0.0 | Shader.Register 0.2 | | title | 0.3 (1 %) | 0.0 (0 %) | 44.1 | 0.0 | Shader.Register 0.3 | | title | 0.5 (1 %) | 0.0 (0 %) | 43.9 | 0.0 | Shader.Register 0.5 | | title | 0.0 (0 %) | 0.0 (0 %) | 44.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 9.1 (20 %) | 0.0 (0 %) | 35.3 | 0.0 | batch 9.1 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 46.8, Driver.WorkerWait 26.6, Driver.WorkerWait.idle_and_completion_poll 26.6, VideoOut.Flip 15.6, Driver.Packet.memory_wait 12.6, Driver.Packet.draw 11.2, Driver.Draw 11.1, Graphics.Draw 10.6, Driver.Packet.pipeline_drain 9.3, batch 9.1 **Longest waits** - Driver.WorkerWait (queue worker 0x20) 20903.8 ms at 9423 ms, present 456 - Driver.Packet.memory_wait (queue worker 0x20) 5016.0 ms at 34662 ms, present 1105 - Driver.Packet.memory_wait (queue worker 0x20) 4972.2 ms at 39766 ms, present 1105 - Driver.WorkerWait (queue worker 0x0) 3002.1 ms at 26876 ms, present 1105 - Driver.Packet.memory_wait (queue worker 0x20) 2514.6 ms at 31459 ms, present 1105 - Driver.Packet.memory_wait (queue worker 0x20) 1128.8 ms at 30327 ms, present 1105 - Driver.WorkerWait (queue worker 0x0) 590.8 ms at 16425 ms, present 756 - Driver.WorkerWait (queue worker 0x20) 576.5 ms at 34086 ms, present 1105 - Driver.WorkerWait (queue worker 0x0) 341.6 ms at 2955 ms, present 144 - Driver.Packet.memory_wait (queue worker 0x20) 302.9 ms at 9109 ms, present 456 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 4798: 2158.0 ms at 44836 ms, present 1106: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 3923.0, Driver.Packet.draw (queue worker 0x0) 3914.9, Driver.Draw (queue worker 0x0) 3913.7, Driver.Draw.prepare (queue worker 0x0) 2724.8 - batch 4441: 2116.9 ms at 39775 ms, present 1105: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.validate (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Resources.Prepare (draw committer) 0.0 - batch 1369: 333.9 ms at 9063 ms, present 456: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 63.9, Driver.Packet.dispatch (queue worker 0x0) 63.9, Driver.Dispatch (queue worker 0x0) 55.6, Vulkan.Dispatch (queue worker 0x0) 30.6 - batch 3677: 40.7 ms at 33752 ms, present 1105: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 10.9, Driver.Packet.dispatch (queue worker 0x0) 10.8, Driver.Dispatch (queue worker 0x0) 10.8, Driver.Dispatch.materialize (queue worker 0x0) 4.7 - batch 3303: 32.3 ms at 29918 ms, present 1105: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 4.9, Driver.Packet.dispatch (queue worker 0x0) 4.8, Driver.Dispatch (queue worker 0x0) 4.8, Vulkan.Dispatch (queue worker 0x0) 4.4 </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 3080 Laptop GPU, driver 580.178.04, Ubuntu 22.04.5 (Linux 6.8.0-138-generic) - [x] AI-assisted: yes
MarcZX10 commented 2026-11-02 05:46:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T05:46:04Z.

Review: COMMENTED


Reviewed — no blocking findings

On Linux, the /proc/self/maps scan now records readable mappings that lie before the scan cursor, where the old code skipped them, so later access checks can read them from the page-state cache. The record goes through the same clipping and generation and access checks as the existing records, and the generation and access values are in scope in the Linux branch. Nothing has been run: the Windows check was cancelled and Linux is skipped on pull requests.

What I ran

  • Head 16744dcb1726eef8be4117faab0c8a89414d2fcc; base e4501451406e4d3516c5b0eaa854d6ec1a28082d. 4 files, +55/-3: Execution/src/GuestMemory.cpp (+9/-3), tests/GuestAllocations.cpp (+47, new RunPassedMappingTests), tests/BdaTests.hpp (+1 declaration), tests/Graphics.cpp (+1 call).
  • Read the changed branch in describePages (GuestMemory.cpp lines 748-779), the #ifdef/#else structure around it (lines 642, 678, 713, 747, 784) to confirm that generation and access (lines 679-680) are in scope in the Linux branch, and PageStates::record (lines 503-515) with its clipping and generation and access checks. Read the cache's comment (lines 374-382) for its invariant.
  • Read the new test RunPassedMappingTests in full.
  • Read-only checks from the trusted main checkout: diff check, conventions and PR template, and the stack check all passed. The ABI audit is not applicable (no export changed).
  • Hosted: the Windows check-run windows is cancelled, so there is no CTest result for this head. Linux is skipped on pull requests.
  • No MarcZX10 review at this head.

Results

Check Result Note
Diff check passed
Conventions and PR template passed conventions check from the main checkout
Mergeability and dependencies passed stack check passed
Linux branch compiles (generation and access in scope) passed by reading declared at lines 679-680 in the same #else branch as the Linux code; not compiled
New records for passed readable mappings passed by reading clipped to the arena and image spans, and forgotten on generation or access change, as the existing records are
Test RunPassedMappingTests not run Linux only; returns early when HostMapping::QueryFd() >= 0
Windows CTest for this head not available the windows check-run is cancelled; no CTest summary
Linux tests not run Linux CI is skipped on pull requests
ABI audit not applicable no export changed
Build and runtime tests (Linux) not run no local build
Negative controls not run no local build
Hosted CI not complete windows cancelled; linux, register-context, relinkers and write-watch skipped; report and conventions passed
Read-only check output

Precheck was not run: no PR-head code is run here. Diff check: passed. Conventions: passed. ABI audit: not applicable. Stack check: passed. Hosted: gh api repos/boykopovar/AnyPS5/commits/16744dcb1726eef8be4117faab0c8a89414d2fcc/check-runs.

Negative control

Not run here. A negative control needs a Linux build and run, and code from this head is not run here.

Findings

Blocking

None.

Non-blocking

  • The change has no hosted result. It is Linux-only, the Linux CI is skipped on pull requests, and the Windows check was cancelled. The new test and the existing guest allocation tests need a Linux run before this is relied on.
  • RunPassedMappingTests checks that a protection changed with mprotect outside the registry is not seen: after mprotect(guest, 2 * page, PROT_NONE) the test still expects Accessible(guest, page, true). This follows the cache's stated assumption (GuestMemory.cpp lines 374-382: protections change through registry mutations and libc invalidation), but the test documents that assumption rather than checking the production behaviour. The new records extend the assumption to pages the scan used to re-query, so a sentence in the cache comment would make the extension explicit.

Sources

Not verified

  • Compilation of the Linux branch.
  • Behaviour of the cache under concurrent mutations, and the performance gain the title claims.
  • The new test and the existing guest allocation tests on Linux or Windows.

To get this to a good state

  • Nothing blocking. Obtain a Linux run of the AgcDriver guest allocation tests and RunPassedMappingTests at this head. Optionally, add a sentence to the cache comment that the new records follow the same invariant.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5732540089 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14473#pullrequestreview-5732540089). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T05:46:04Z. **Review:** COMMENTED --- # Reviewed — no blocking findings On Linux, the `/proc/self/maps` scan now records readable mappings that lie before the scan cursor, where the old code skipped them, so later access checks can read them from the page-state cache. The record goes through the same clipping and generation and access checks as the existing records, and the `generation` and `access` values are in scope in the Linux branch. Nothing has been run: the Windows check was cancelled and Linux is skipped on pull requests. ## What I ran - Head `16744dcb1726eef8be4117faab0c8a89414d2fcc`; base `e4501451406e4d3516c5b0eaa854d6ec1a28082d`. 4 files, +55/-3: `Execution/src/GuestMemory.cpp` (+9/-3), `tests/GuestAllocations.cpp` (+47, new `RunPassedMappingTests`), `tests/BdaTests.hpp` (+1 declaration), `tests/Graphics.cpp` (+1 call). - Read the changed branch in `describePages` (`GuestMemory.cpp` lines 748-779), the `#ifdef`/`#else` structure around it (lines 642, 678, 713, 747, 784) to confirm that `generation` and `access` (lines 679-680) are in scope in the Linux branch, and `PageStates::record` (lines 503-515) with its clipping and generation and access checks. Read the cache's comment (lines 374-382) for its invariant. - Read the new test `RunPassedMappingTests` in full. - Read-only checks from the trusted main checkout: diff check, conventions and PR template, and the stack check all passed. The ABI audit is not applicable (no export changed). - Hosted: the Windows check-run `windows` is cancelled, so there is no CTest result for this head. Linux is skipped on pull requests. - No MarcZX10 review at this head. ## Results | Check | Result | Note | | --- | --- | --- | | Diff check | passed | | | Conventions and PR template | passed | conventions check from the main checkout | | Mergeability and dependencies | passed | stack check passed | | Linux branch compiles (`generation` and `access` in scope) | passed by reading | declared at lines 679-680 in the same `#else` branch as the Linux code; not compiled | | New records for passed readable mappings | passed by reading | clipped to the arena and image spans, and forgotten on generation or access change, as the existing records are | | Test `RunPassedMappingTests` | not run | Linux only; returns early when `HostMapping::QueryFd() >= 0` | | Windows CTest for this head | not available | the `windows` check-run is cancelled; no CTest summary | | Linux tests | not run | Linux CI is skipped on pull requests | | ABI audit | not applicable | no export changed | | Build and runtime tests (Linux) | not run | no local build | | Negative controls | not run | no local build | | Hosted CI | not complete | windows cancelled; linux, register-context, relinkers and write-watch skipped; report and conventions passed | <details><summary>Read-only check output</summary> Precheck was not run: no PR-head code is run here. Diff check: passed. Conventions: passed. ABI audit: not applicable. Stack check: passed. Hosted: `gh api repos/boykopovar/AnyPS5/commits/16744dcb1726eef8be4117faab0c8a89414d2fcc/check-runs`. </details> ## Negative control Not run here. A negative control needs a Linux build and run, and code from this head is not run here. ## Findings **Blocking** None. **Non-blocking** - The change has no hosted result. It is Linux-only, the Linux CI is skipped on pull requests, and the Windows check was cancelled. The new test and the existing guest allocation tests need a Linux run before this is relied on. - `RunPassedMappingTests` checks that a protection changed with `mprotect` outside the registry is not seen: after `mprotect(guest, 2 * page, PROT_NONE)` the test still expects `Accessible(guest, page, true)`. This follows the cache's stated assumption (`GuestMemory.cpp` lines 374-382: protections change through registry mutations and libc invalidation), but the test documents that assumption rather than checking the production behaviour. The new records extend the assumption to pages the scan used to re-query, so a sentence in the cache comment would make the extension explicit. ## Sources - Changed branch: https://github.com/boykopovar/AnyPS5/blob/16744dcb1726eef8be4117faab0c8a89414d2fcc/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp (lines 642-784) - Cache record and invariant: the same file, lines 374-382 and 503-515 - New test: https://github.com/boykopovar/AnyPS5/blob/16744dcb1726eef8be4117faab0c8a89414d2fcc/core/libs/prx/libSceAgcDriver/tests/GuestAllocations.cpp (`RunPassedMappingTests`, added at line 391) ## Not verified - Compilation of the Linux branch. - Behaviour of the cache under concurrent mutations, and the performance gain the title claims. - The new test and the existing guest allocation tests on Linux or Windows. ## To get this to a good state - Nothing blocking. Obtain a Linux run of the AgcDriver guest allocation tests and `RunPassedMappingTests` at this head. Optionally, add a sentence to the cache comment that the new records follow the same invariant.
ligmaSec commented 2026-12-03 22:45:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:45:31Z.

Review: COMMENTED


The trial merge onto c1601e56d5 conflicts in GuestMemory.cpp. The new test selects the textual maps fallback only when the query FD is unavailable, so cite the fallback configuration explicitly when rerunning it. Preserve the controls for a readable mapping passed en route, a read-only mapping, an unmapped gap, and invalidation through the guest registry. Any speed claim should use the same maps-path configuration for paired traces.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179950856 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14473#pullrequestreview-6179950856). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:45:31Z. **Review:** COMMENTED --- The trial merge onto `c1601e56d5` conflicts in `GuestMemory.cpp`. The new test selects the textual maps fallback only when the query FD is unavailable, so cite the fallback configuration explicitly when rerunning it. Preserve the controls for a readable mapping passed en route, a read-only mapping, an unmapped gap, and invalidation through the guest registry. Any speed claim should use the same maps-path configuration for paired traces. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/14473:upstream-pr/14473'
git switch 'upstream-pr/14473'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/14473'
git switch 'upstream-pr/14473'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/14473'
git switch 'upstream-pr/14473'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/14473'
git switch 'main'
git merge --squash 'upstream-pr/14473'
git switch 'main'
git merge --ff-only 'upstream-pr/14473'
git switch 'main'
git merge 'upstream-pr/14473'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!14473
No description provided.