Repository navigation
Conversation
…stem commit, video memory, what the title asked for A title that runs out of memory dies in an allocation of its own far from the cause (a write to address 0 in its thread start-up; the driver's E_OUTOFMEMORY on a pipeline). memstat.rs logs one line – the process's commit charge and working set, the system's commit against its limit and free RAM, local and non-local video memory in use (IDXGIAdapter3), the bytes the title asked kernelx for by kind (sparse / UMA graphics memory, Windows commits, XMemAlloc heaps, the homes of its physical pages; gross) and the sparse windows' tiles and pools – at every unhandled exception, when the process ends with an error, and from a thread whenever the commit grew by a GiB (every 30 s at most). The crash line carries the code bytes at RIP for every exception, not only illegal instructions: the registers alone rarely say what was dereferenced.
|
I tested PR head A touched 128 MiB allocation raised private commit and working set by approximately 128 MiB in each run. Both fields agreed with a separate process-counter read within 1 MiB. The no-device control omitted the video fields. With the device initialized, I independently enumerated adapters, matched the device LUID and queried node 0. The two readers agreed byte-for-byte on local usage and budget (13,488,128 / 15,966,666,752 bytes) and nonlocal usage and budget (567,066,624 / 15,913,553,920 bytes). One portability correction: for fields labelled system commit, use On the reporting hot path, successful tracked allocations/commits add a relaxed atomic increment, including individual physical-page operations. Rendering and presentation have no new polling calls. The sampling worker checks process counters every 30 seconds and builds the full line only on its growth threshold. This is a source-level overhead check. I did not measure frame times, trigger a real crash or run a title. |
|
One ordering point in Two cheap changes would keep the report safe: write the report first and log the memory line after it, and resolve the adapter when the device is created (e.g. from Also: this now conflicts with AI-assisted (Claude Code), read-only review. |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
…ev#194) Port upstream xcl-dev#194 to the Linux diagnostic path: new memstat_linux.rs twin (same GRAPHICS/WINDOWS/HEAP/PHYSICAL gross counters; process from /proc via platform::process_private_bytes + VmRSS, system from /proc/meminfo; video/sparse segments DEFERRED with reason, omitted like upstream omits unavailable segments), code_at via the step-26 maps_region_for discipline on every crash line, memstat::log() in the crash watchdog + nonzero ExitProcess/TerminateProcess, memstat::start() in run_boot, note() at the Linux commit paths (VirtualAlloc commit, gfx_alloc commit, XMem heap, page homes). Failing-first: 0 memstat tests pre-wire, then gib/parse/note/line + code_at + per-kind wiring tests green.
…stem commit, video memory, what the title asked for
A title that runs out of memory dies in an allocation of its own far from the cause (a write to address 0 in its thread start-up; the driver's E_OUTOFMEMORY on a pipeline). memstat.rs logs one line – the process's commit charge and working set, the system's commit against its limit and free RAM, local and non-local video memory in use (IDXGIAdapter3), the bytes the title asked kernelx for by kind (sparse / UMA graphics memory, Windows commits, XMemAlloc heaps, the homes of its physical pages; gross) and the sparse windows' tiles and pools – at every unhandled exception, when the process ends with an error, and from a thread whenever the commit grew by a GiB (every 30 s at most).
The crash line carries the code bytes at RIP for every exception, not only illegal instructions: the registers alone rarely say what was dereferenced.