Repository navigation
Memory: serialize sparse commits and decommits with uploads - #236
utkarshxdev wants to merge 1 commit into
Conversation
|
AMD run of Tested
What the title does with it
Points from reading the diff
Regression run (
this PR merged onto Not tested
AI use
|
|
Test report on our machine with this PR's head (03d4a86) stacked on current main (db1ddb2) + #300 + #294 + #273 + #304: Ryzen 7 9800X3D, RTX 3060 Ti 8 GB (wave32), driver 32.0.16.1742, Windows 11.
The same run without this PR (main + #300 + #294 + #273 + #304, 180 s): the same shape - dip 4.4-8.6 fps at t=44-166 s, 29.9 fps after. So on this hardware the PR neither helped nor hurt the intro pace measurably; the slow stretch looks bounded by something else (we see 6.5 GB local + 4.6 GB non-local video memory on the 8 GB card during it). Not tested: the command-list slots 131/132 paths in isolation; no unit-test run for this report (run-only data point). AI use: GPT-6.2 Astra (API model selector) ran the builds and runs and wrote this report; the human contributor watched the screen and reviewed it. |
|
Thanks for this, and thanks @srcamarda and @ryosen0 for the runs. Not merged yet - what would get it in, in this PR:
The two A/B runs above found no difference on a retail title either way, so with 1 and 2 gone and 3 tested this is a small, safe change. Please keep Tested (suite counts) and the |
03d4a86 to
81d72e4
Compare
Keep host page transitions and sparse tile state under the same lock. Cover fixed-address bounds, reset rejection, and the upload/decommit ordering regression. Assisted-by: OpenAI Codex (GPT-6)
81d72e4 to
4913af0
Compare
|
Hey @ivall, thanks for the guidance! I've rebased on latest
Branch is clean and rebased with zero conflicts. Ready for workflow approval and review whenever you're free! |
Serialize sparse CPU page updates with the upload scan. Previously, the scan could read a page while Windows was decommitting it, or a delayed commit record could mark a decommitted page live again.
What is in it
STATE. A sparse release returns the reservation to the allocator after successful decommit.VirtualAllocin sparse windows requiresMEM_COMMITand a range within one live reservation. Non-commit calls, includingMEM_RESETandMEM_RESET_UNDO, return null andERROR_INVALID_ADDRESS. This changes the previous host passthrough.VirtualQuerybefore attempting a read.Tested
cargo check --locked --target x86_64-pc-windows-msvc --offline --all-targetspassed, with one existing deprecation warning.03d4a86merged into0e946cf: Ryzen 5 5600G, RX 7800 XT driver 32.0.32029.2010, Windows 11 26300, Rust 1.100.0 MSVC.cargo test --workspace -- --test-threads=4reported 655 passed, 0 failed, 40 ignored, and no skips.Regression run
Historical A/B runs from the earlier revision. The display adapter is named in the output. XCL ran on the RX 7800 XT.
Main baseline
Earlier PR revision merged locally
Not tested
xcl-smokepair. The historical retail run did not exercise the sparseVirtualAlloccommit path.AI use