fix(agc): read the pipeline journal's modules at replay instead of holding the file #8213

Merged
milescoviello merged 3 commits from upstream-pr/8213 into main 2026-10-24 15:18:45 +00:00
milescoviello commented 2026-10-20 03:32:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-20T03:32:33Z.


What

Before replaying, the pipeline journal is read whole into one buffer, and the decoded modules keep views into it. So until the last entry is built, a replay holds the entire file, which is up to APS5_PIPELINE_JOURNAL_MAX_MIB (1024 MiB) by default. The debt entry lists this. A title that fills the journal pays that gigabyte at every boot, on top of the replay's own compiles. Ghost of Tsushima's journal is 1023 MiB: 940 pipelines and 979 modules.

How

  • JournalFile opens the journal for positioned reads, so several threads can read from it at once. On Linux that's pread. On Windows it's an overlapped handle opened with FILE_SHARE_DELETE like ReadWholeFile; each ReadFile passes its offset and waits on a per-thread event in GetOverlappedResult (5778288da7, after @MarcZX10's review: a handle without FILE_FLAG_OVERLAPPED would serialize the reads). The size is taken when the file is opened.
  • parse reads one record at a time. With decode, a module is still decoded, and its identity checked, so that the index and the dropped-record count stay the same. The module then keeps only where its record lies (offset, size and payload hash). The index-only parse in indexLocked uses the same reader, so re-indexing also no longer reads the whole file.
  • Load keeps the file open in LoadedJournal. A replay thread reads an entry's modules when it builds that entry, after the store-full check. It checks the payload hash, decodes the module with the read bytes as the SPIR-V's owner, and drops the bytes once the entry is built. If a record no longer reads back as it was loaded (another process started the file over, say), the entry is rejected instead of built from changed bytes.
  • The [pipeline-journal] replay report (APS5_PROFILE_DRAW=1) gains the peak module bytes held at once (replayHeldPeakBytes).

A module that several entries name is now read and decoded once per entry. These are reads of bytes the load just put in the page cache, and they are small next to the pipeline build each one feeds.

Tested

Rebased onto main d6e7ab42df as 8abecc13a0, with no conflicts; git range-diff shows the three commits unchanged. On that head, Ubuntu 26.04.1, GCC 15.2, RTX 4070 Ti (615.71.09):

  • agc_driver_pipeline_journal and agc_pipeline_journal pass 3 of 3.

  • Khronos validation 1.4.363, the same 16 tests (pipeline_journal|pipeline_store|pipeline_library|pipeline_optimized_readback), on main d6e7ab42df and on this head: 16 of 16 pass on each, with no VUID- message and no layer-missing line on either side.

  • Ghost of Tsushima Director's Cut (PPSA02225), again with a full 1 GiB journal (945 pipelines, 965 modules), now on @EagleBearerYS's test/ghost-9742-9717 with #8115 and #8121 merged, which gets the title to its brightness calibration screen. Four alternating 150 s warm runs under a 20 GiB cap (A without this PR's 0d34f90fab, B with it), on :0, release libs. Host heap (RssAnon):

    run 30 s 60 s 90 s 120 s peak RSS journal load
    A1 4.8 GB 5.4 GB 8.2 GB 8.9 GB 22.3 GB 1036 ms
    B1 3.2 GB 4.2 GB 5.7 GB 6.4 GB 21.6 GB 635 ms
    A2 4.6 GB 5.2 GB 8.1 GB 9.7 GB 21.9 GB 1028 ms
    B2 3.0 GB 3.9 GB 5.7 GB 7.4 GB 21.6 GB 563 ms

    The heap is 1.3 to 2.5 GB lower through the load. Peak RSS moves less, because about 11 GB of it is the title's guest shared memory.

Earlier results, on the heads named in them:

Linux (Ubuntu 24.04, GCC 13.3), RTX 4070 Ti, NVIDIA 595.99.02.

  • agc_driver_pipeline_journal has a new case. A device records 16 more compute programs beside the first two pipelines, then a device replays the journal on one thread. The test requires it to load 18 pipelines and 19 modules, to build all of them with nothing rejected or failed, and to hold under a quarter of the file's bytes at once. It passes 3 of 3. As a mutation check, counting the whole file as held makes it fail: the one-thread replay held 467960 bytes of modules at once from a 467960-byte journal.
  • agc_driver_pipeline_journal and agc_pipeline_journal pass.
  • Khronos validation 1.4.363 (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V -R 'pipeline_journal|pipeline_store|pipeline_library|pipeline_optimized_readback'): 15 of 15 pass on main 38d7e344b1 and on this branch, with no VUIDs and no layer-missing lines on either side.
  • Tested on main 38d7e344b1, then rebased onto 525e299fc0 with no conflicts (no journal or pipeline file changed in between).
  • Windows 11 Enterprise (build 22631), NVIDIA GeForce GT 1030 (driver 582.66), WinLibs GCC 15.2.0 r7 (UCRT), Release, Ninja: agc_driver_pipeline_journal passes 3 of 3 at this head 5778288da7 and 3 of 3 at its merge base 525e299fc0. At the head, the new case reports loaded 18 pipelines and 19 modules (0.5 MiB) from the journal, so the replay went through the overlapped ReadFile path. Earlier there was only a MinGW -fsyntax-only build of PipelineJournal.cpp.
  • Ghost of Tsushima (PPSA02225) booting with a full journal (1023.4 MiB: 940 pipelines and 979 modules) and the default 12 replay threads. Each run lasts 120 s under a 20 GiB cgroup cap, on :0, on a local stack of the open PRs it needs to get this far, with and without this commit. A preloaded reporter printed mallinfo2 every 5 s, and the cgroup's memory.stat was sampled alongside.
    • malloc's mmapped blocks hold 1.24 GiB through the replay without the change, and 1023.4 MiB of that is the journal buffer. With the change they hold 0.24 GiB.
    • The cgroup's anonymous memory goes from 2.23 to 0.87 GiB at 7 s (the load), 5.28 to 4.40 GiB at 34 s, and 10.22 to 9.46 GiB at 108 s.
    • A 150 s run with the change and APS5_PROFILE_DRAW=1 reports that the replay built 432 graphics and 507 compute pipelines (1 more was already present), none rejected or failed, in 113.5 s, holding at most 35.3 MiB of modules.
    • The load itself, as the [pipeline-journal] loaded line reports it, takes 1158 to 1680 ms in four runs without the change and 576 to 819 ms in three runs with it, since there is no 1 GiB buffer to allocate and fault in.
    • Without the change, the 20 GiB cap stopped the run at 110 s, and at 96 s in a repeat. With it, the run reached its 120 s limit. Most of the remaining peak goes away when the replay ends: in the 150 s run, anonymous memory falls from 9.27 GiB during the replay to 4.5 GiB once it finishes. That is the driver's work for the 12 threads building at once, which this PR doesn't change.

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 (one existing comment on Load reworded so it still describes the code; the debt entry loses the sentence this fixes)
  • 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 4070 Ti, driver 595.99.02, Ubuntu 24.04
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4930605471 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8213). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-20T03:32:33Z. --- ### What Before replaying, the pipeline journal is read whole into one buffer, and the decoded modules keep views into it. So until the last entry is built, a replay holds the entire file, which is up to `APS5_PIPELINE_JOURNAL_MAX_MIB` (1024 MiB) by default. The debt entry lists this. A title that fills the journal pays that gigabyte at every boot, on top of the replay's own compiles. Ghost of Tsushima's journal is 1023 MiB: 940 pipelines and 979 modules. ### How - `JournalFile` opens the journal for positioned reads, so several threads can read from it at once. On Linux that's `pread`. On Windows it's an overlapped handle opened with `FILE_SHARE_DELETE` like `ReadWholeFile`; each `ReadFile` passes its offset and waits on a per-thread event in `GetOverlappedResult` (5778288da7, after @MarcZX10's review: a handle without `FILE_FLAG_OVERLAPPED` would serialize the reads). The size is taken when the file is opened. - `parse` reads one record at a time. With `decode`, a module is still decoded, and its identity checked, so that the index and the dropped-record count stay the same. The module then keeps only where its record lies (offset, size and payload hash). The index-only parse in `indexLocked` uses the same reader, so re-indexing also no longer reads the whole file. - `Load` keeps the file open in `LoadedJournal`. A replay thread reads an entry's modules when it builds that entry, after the store-full check. It checks the payload hash, decodes the module with the read bytes as the SPIR-V's owner, and drops the bytes once the entry is built. If a record no longer reads back as it was loaded (another process started the file over, say), the entry is rejected instead of built from changed bytes. - The `[pipeline-journal]` replay report (`APS5_PROFILE_DRAW=1`) gains the peak module bytes held at once (`replayHeldPeakBytes`). A module that several entries name is now read and decoded once per entry. These are reads of bytes the load just put in the page cache, and they are small next to the pipeline build each one feeds. ### Tested **Rebased** onto `main` d6e7ab42df as `8abecc13a0`, with no conflicts; `git range-diff` shows the three commits unchanged. On that head, Ubuntu 26.04.1, GCC 15.2, RTX 4070 Ti (615.71.09): - `agc_driver_pipeline_journal` and `agc_pipeline_journal` pass 3 of 3. - Khronos validation 1.4.363, the same 16 tests (`pipeline_journal|pipeline_store|pipeline_library|pipeline_optimized_readback`), on `main` d6e7ab42df and on this head: 16 of 16 pass on each, with no `VUID-` message and no layer-missing line on either side. - Ghost of Tsushima Director's Cut (PPSA02225), again with a full 1 GiB journal (945 pipelines, 965 modules), now on @EagleBearerYS's `test/ghost-9742-9717` with #8115 and #8121 merged, which gets the title to its brightness calibration screen. Four alternating 150 s warm runs under a 20 GiB cap (A without this PR's 0d34f90fab, B with it), on :0, release libs. Host heap (`RssAnon`): | run | 30 s | 60 s | 90 s | 120 s | peak RSS | journal load | |---|---|---|---|---|---|---| | A1 | 4.8 GB | 5.4 GB | 8.2 GB | 8.9 GB | 22.3 GB | 1036 ms | | B1 | 3.2 GB | 4.2 GB | 5.7 GB | 6.4 GB | 21.6 GB | 635 ms | | A2 | 4.6 GB | 5.2 GB | 8.1 GB | 9.7 GB | 21.9 GB | 1028 ms | | B2 | 3.0 GB | 3.9 GB | 5.7 GB | 7.4 GB | 21.6 GB | 563 ms | The heap is 1.3 to 2.5 GB lower through the load. Peak RSS moves less, because about 11 GB of it is the title's guest shared memory. Earlier results, on the heads named in them: Linux (Ubuntu 24.04, GCC 13.3), RTX 4070 Ti, NVIDIA 595.99.02. - `agc_driver_pipeline_journal` has a new case. A device records 16 more compute programs beside the first two pipelines, then a device replays the journal on one thread. The test requires it to load 18 pipelines and 19 modules, to build all of them with nothing rejected or failed, and to hold under a quarter of the file's bytes at once. It passes 3 of 3. As a mutation check, counting the whole file as held makes it fail: `the one-thread replay held 467960 bytes of modules at once from a 467960-byte journal`. - `agc_driver_pipeline_journal` and `agc_pipeline_journal` pass. - Khronos validation 1.4.363 (`VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V -R 'pipeline_journal|pipeline_store|pipeline_library|pipeline_optimized_readback'`): 15 of 15 pass on `main` 38d7e344b1 and on this branch, with no VUIDs and no layer-missing lines on either side. - Tested on `main` 38d7e344b1, then rebased onto 525e299fc0 with no conflicts (no journal or pipeline file changed in between). - Windows 11 Enterprise (build 22631), NVIDIA GeForce GT 1030 (driver 582.66), WinLibs GCC 15.2.0 r7 (UCRT), Release, Ninja: `agc_driver_pipeline_journal` passes 3 of 3 at this head 5778288da7 and 3 of 3 at its merge base 525e299fc0. At the head, the new case reports `loaded 18 pipelines and 19 modules (0.5 MiB)` from the journal, so the replay went through the overlapped `ReadFile` path. Earlier there was only a MinGW `-fsyntax-only` build of `PipelineJournal.cpp`. - Ghost of Tsushima (PPSA02225) booting with a full journal (1023.4 MiB: 940 pipelines and 979 modules) and the default 12 replay threads. Each run lasts 120 s under a 20 GiB cgroup cap, on :0, on a local stack of the open PRs it needs to get this far, with and without this commit. A preloaded reporter printed `mallinfo2` every 5 s, and the cgroup's `memory.stat` was sampled alongside. - malloc's mmapped blocks hold 1.24 GiB through the replay without the change, and 1023.4 MiB of that is the journal buffer. With the change they hold 0.24 GiB. - The cgroup's anonymous memory goes from 2.23 to 0.87 GiB at 7 s (the load), 5.28 to 4.40 GiB at 34 s, and 10.22 to 9.46 GiB at 108 s. - A 150 s run with the change and `APS5_PROFILE_DRAW=1` reports that the replay built 432 graphics and 507 compute pipelines (1 more was already present), none rejected or failed, in 113.5 s, `holding at most 35.3 MiB of modules`. - The load itself, as the `[pipeline-journal] loaded` line reports it, takes 1158 to 1680 ms in four runs without the change and 576 to 819 ms in three runs with it, since there is no 1 GiB buffer to allocate and fault in. - Without the change, the 20 GiB cap stopped the run at 110 s, and at 96 s in a repeat. With it, the run reached its 120 s limit. Most of the remaining peak goes away when the replay ends: in the 150 s run, anonymous memory falls from 9.27 GiB during the replay to 4.5 GiB once it finishes. That is the driver's work for the 12 threads building at once, which this PR doesn't change. ### 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) (one existing comment on `Load` reworded so it still describes the code; the debt entry loses the sentence this fixes) - [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 4070 Ti, driver 595.99.02, Ubuntu 24.04 - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-20 10:42:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T10:42:03Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp; line 404

@@ -395,13 +397,90 @@ class FileLock {
 #endif
 };
 
+class JournalFile {
+public:
+    explicit JournalFile(const std::filesystem::path& path) {
+#ifdef _WIN32
+        handle = CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);

On Windows this handle is opened without FILE_FLAG_OVERLAPPED, so reads through it are synchronous and serialized even when each ReadFile call supplies a distinct OVERLAPPED offset. The PR description says several replay threads can read from the file at once; with this handle mode, their module reads appear serialized. Did you measure replay on Windows, or should the Windows path use an overlapped handle and wait for each read to complete? The distinction may affect replay throughput on Windows.

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4324064578 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8213#discussion_r4324064578). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-20T10:42:03Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp`; line 404 ~~~~diff @@ -395,13 +397,90 @@ class FileLock { #endif }; +class JournalFile { +public: + explicit JournalFile(const std::filesystem::path& path) { +#ifdef _WIN32 + handle = CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr); ~~~~ --- On Windows this handle is opened without `FILE_FLAG_OVERLAPPED`, so reads through it are synchronous and serialized even when each `ReadFile` call supplies a distinct `OVERLAPPED` offset. The PR description says several replay threads can read from the file at once; with this handle mode, their module reads appear serialized. Did you measure replay on Windows, or should the Windows path use an overlapped handle and wait for each read to complete? The distinction may affect replay throughput on Windows.
milescoviello commented 2026-10-20 10:45:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-20T10:45:35Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp; line 404

@@ -395,13 +397,90 @@ class FileLock {
 #endif
 };
 
+class JournalFile {
+public:
+    explicit JournalFile(const std::filesystem::path& path) {
+#ifdef _WIN32
+        handle = CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);

You're right, and I hadn't measured it on Windows. Only the Linux pread path was run. Without FILE_FLAG_OVERLAPPED the handle is a synchronous file object, so its reads are serialized even though each one passes its own offset. 5778288da7 opens the journal with FILE_FLAG_OVERLAPPED. Each read uses an OVERLAPPED with a per-thread manual-reset event, passes no byte count to ReadFile, and waits in GetOverlappedResult(..., TRUE), which also covers a read that completes at once. The Linux path is unchanged. A MinGW (x86_64-w64-mingw32-g++-posix) -fsyntax-only build of PipelineJournal.cpp passes. I still haven't run it on Windows, so a replay timing from someone who can would be welcome.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4324092338 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8213#discussion_r4324092338). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-20T10:45:35Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp`; line 404 ~~~~diff @@ -395,13 +397,90 @@ class FileLock { #endif }; +class JournalFile { +public: + explicit JournalFile(const std::filesystem::path& path) { +#ifdef _WIN32 + handle = CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr); ~~~~ --- You're right, and I hadn't measured it on Windows. Only the Linux `pread` path was run. Without `FILE_FLAG_OVERLAPPED` the handle is a synchronous file object, so its reads are serialized even though each one passes its own offset. 5778288da7 opens the journal with `FILE_FLAG_OVERLAPPED`. Each read uses an `OVERLAPPED` with a per-thread manual-reset event, passes no byte count to `ReadFile`, and waits in `GetOverlappedResult(..., TRUE)`, which also covers a read that completes at once. The Linux path is unchanged. A MinGW (`x86_64-w64-mingw32-g++-posix`) `-fsyntax-only` build of `PipelineJournal.cpp` passes. I still haven't run it on Windows, so a replay timing from someone who can would be welcome. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-20 10:47:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T10:47:37Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp; line 404

@@ -395,13 +397,90 @@ class FileLock {
 #endif
 };
 
+class JournalFile {
+public:
+    explicit JournalFile(const std::filesystem::path& path) {
+#ifdef _WIN32
+        handle = CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);

Thanks; I checked the updated path. FILE_FLAG_OVERLAPPED, the per-thread manual-reset event, and waiting for completion before reusing the buffer address the serialized-read concern. I agree the remaining evidence gap is Windows runtime/replay timing, which you have not claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4324107686 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8213#discussion_r4324107686). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-20T10:47:37Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp`; line 404 ~~~~diff @@ -395,13 +397,90 @@ class FileLock { #endif }; +class JournalFile { +public: + explicit JournalFile(const std::filesystem::path& path) { +#ifdef _WIN32 + handle = CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr); ~~~~ --- Thanks; I checked the updated path. `FILE_FLAG_OVERLAPPED`, the per-thread manual-reset event, and waiting for completion before reusing the buffer address the serialized-read concern. I agree the remaining evidence gap is Windows runtime/replay timing, which you have not claimed.
MarcZX10 commented 2026-10-21 00:36:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T00:36:42Z.

Review: COMMENTED


Rechecked the current stack after #8365 rebased. #8213’s per-record positioned reads are sound on the Linux path by inspection (pread retries EINTR and handles short reads), and the Windows path has since been revised to use overlapped I/O with a per-thread event and wait for completion before reusing the buffer. The review evidence on this PR reports Linux validation-layer runs and a full-journal Ghost of Tsushima memory comparison; the hosted Linux/Windows build jobs are skipped by path policy, and the description only claims a MinGW syntax-only check for Windows. #8365 now depends on this PR and reports its own post-rebase focused journal tests, plus separate title/GPU results. I found no remaining blocking issue in this diff. The follow-up #8542 also appears as a separate stack item for compute-entry capacity.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5593528604 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8213#pullrequestreview-5593528604). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T00:36:42Z. **Review:** COMMENTED --- Rechecked the current stack after #8365 rebased. #8213’s per-record positioned reads are sound on the Linux path by inspection (`pread` retries EINTR and handles short reads), and the Windows path has since been revised to use overlapped I/O with a per-thread event and wait for completion before reusing the buffer. The review evidence on this PR reports Linux validation-layer runs and a full-journal Ghost of Tsushima memory comparison; the hosted Linux/Windows build jobs are skipped by path policy, and the description only claims a MinGW syntax-only check for Windows. #8365 now depends on this PR and reports its own post-rebase focused journal tests, plus separate title/GPU results. I found no remaining blocking issue in this diff. The follow-up #8542 also appears as a separate stack item for compute-entry capacity.
milescoviello commented 2026-10-21 01:28:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T01:28:02Z.


@MarcZX10 since the Windows side only had a syntax-only check, here's a run on a real Windows machine: Windows 11 Enterprise (build 22631), NVIDIA GeForce GT 1030 (driver 582.66), WinLibs GCC 15.2.0 r7 (UCRT), Release.

  • agc_driver_pipeline_journal passes 3 of 3 at this head 5778288da7 and 3 of 3 at its merge base 525e299fc0.
  • At the head, the new case logs loaded 18 pipelines and 19 modules (0.5 MiB), so the replay read the journal through the overlapped ReadFile path and built everything.

I've put this in the description in place of the syntax-only note.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6305735161 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8213#issuecomment-6305735161). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T01:28:02Z. --- @MarcZX10 since the Windows side only had a syntax-only check, here's a run on a real Windows machine: Windows 11 Enterprise (build 22631), NVIDIA GeForce GT 1030 (driver 582.66), WinLibs GCC 15.2.0 r7 (UCRT), Release. - `agc_driver_pipeline_journal` passes 3 of 3 at this head 5778288da7 and 3 of 3 at its merge base 525e299fc0. - At the head, the new case logs `loaded 18 pipelines and 19 modules (0.5 MiB)`, so the replay read the journal through the overlapped `ReadFile` path and built everything. I've put this in the description in place of the syntax-only note. AI-assisted: yes (Claude Code)
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!8213
No description provided.