Perf / Silicon Lab (T51/T53): Breaking the VirtualProtect+VEH wall (−86.6% VP, −71.3% VEH, +11.3% 3D FPS) via MEM_PRIVATE | MEM_WRITE_WATCH + OpenExistingHeapFromAddress1 #1534
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by POMXARK on 2026-11-30T00:57:52Z.
Summary: Breaking the
VirtualProtect+ VEH Wall viaMEM_PRIVATE | MEM_WRITE_WATCH+OpenExistingHeapFromAddress1(T51/T53)Sharing a verified, drop-in clean-room finding from our bare-metal D3D12 + Win32 VM lab (
POMXARK/victory-city-bench) and standalone GPL-3.0 tree (POMXARK/victory-pc-opt@4e591de) tested on NVIDIA RTX 5080 16 GB (ReBAR ON, Agility SDK1.614.1) + Ryzen 7 5700X + 32 GB DDR4:1. Root Cause & Bare-Metal Proof (
EXP-046/EXP-048)185 MiB32-bit graphics reservation (10+1 MiBdescriptor heaps +27 MiBhot constant ring +147 MiBskinning) withCreateFileMappingW(SEC_RESERVE)+MapViewOfFile3(MEM_MAPPED) disables Win32GetWriteWatchand causesOpenExistingHeapFromFileMappingto refuseSEC_RESERVE, concentrating700+VirtualProtect(PAGE_READONLY)calls/f (56.8 ms),436VEH faults/f, and77.9 msGUARDSlock wait inside those 6 hot4 MiBbuckets.P1(victory-city-bench --exp048):ID3D12Device13::OpenExistingHeapFromAddress1succeeds directly onMEM_PRIVATE | MEM_WRITE_WATCH, whileGetWriteWatch(WRITE_WATCH_FLAG_RESET)retains64/64(100%,missed_writes == 0) write detection with zeroVirtualProtectand zero VEH faults!174 MiBBench (24 MiBhot +2.0 GB/fL1 skinning,14subs/f,bg=14)memcpyVP/fVEH/fM1Emulated (SEC_RESERVE MEM_MAPPED+VP+VEH+memcpy->L1)16.12 ms1.30 ms0.29 ms224224M2Combo (MEM_PRIVATE|MEM_WRITE_WATCH+L0Alias DMA-> L1)5.96 ms(2.70×)0.00 ms1.31 ms00T53)M3WriteWatch (MEM_PRIVATE|MEM_WRITE_WATCH+ staging-> L1)6.59 ms(2.45×)1.30 ms0.29 ms004e591de)M4Unguarded GPU Compute Diff (24 MiBL0CS-> L1)32.51 ms0.00 ms27.56 ms00GPU_UPLOAD(WC,EXP-046w/3 MiB/fCPU reads)733.8–774.9 ms0.00 ms004.2 MB/sread cliff)2. Live
--releaseOOTB Verification (POMXARK/victory-pc-opt@4e591de,xmem.rs,24/24unit tests PASS,0errors)VirtualProtect(changing protections):56.77 -> 7.62 ms/f(−86.6%); all 6 hot 32-bit buckets6 -> 0(0.00 ms)VEHguard faults:436 -> 125/f(−71.3%);GUARDSmutex wait:77.86 -> 43.81 ms/f(−43.7%)copies/Refr:21.82 -> 16.15 ms(−26.0%) /20.71 -> 15.80 ms(−23.7%)--releaseALL 3D (n=41):15.44 -> 17.19 FPS(+11.3%,59.76 msmean); First 80s 3D:18.14 FPS(+51.5%vs11.97 FPSbaseline).3. Ready-to-Reuse Code, Lab & AI Methodology (
AGENTS.md)xmem.rsPhase 1 commit (4e591de):github.com/POMXARK/victory-pc-opt@4e591ded60AGENTS.mdFirst-Principles Protocol & 53 Silicon Laws (T1–T53): https://github.com/POMXARK/victory-city-bench (docs/THEOREMS_AND_LAWS.md,PROGRESS_RTX5080_R7-5700X_32GB.md)v0.16.0): https://github.com/POMXARK/bcpack-gpu-sdkAI use: Antigravity assisted with building/running the synthetic lab and local A/B runs, parsing telemetry, and drafting this report; reviewed by @POMXARK.