mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4391] [Engine] STRATA_PIPED_MTP: the save/deferred-commit graph execs bypass the 64-graph LRU and grow without bound #1949
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1949
Loading…
Add table
Add a link
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?
Originally created by @TheHubUser4860938 on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4391
Problem: pipelined MTP (STRATA_PIPED_MTP, PR #4121, opt-in) captures THREE CUDA graph execs per distinct (rows, S, hbase) layout: window, save, deferred commit (src/core/verify.cpp:3941-3942 insert into
save_bm_/dcommit_bm_). But thebatch_graph_limit_ = 64LRU trigger countsexec_bm_only (verify.cpp:4338), andevict_batch_graph(4130-4155) destroys onlyexec_bm_+commit_bm_— which pmtp never fills — while the two new maps are freed only in the destructor (726-728). Net: +2 graph execs per new layout, monotonically. And pmtp layouts churn BY CONSTRUCTION (G.rows repeats each slot id 1+n_drafts times; n_drafts varies per window with draft confidence vs --spec-min-p and per-slot context room — the same churn the 64-cap exists for, as the comment at generate.cpp:10089 says).Environment:
Strata Version: 0.2.7 (source checkout at tag v0.2.7, commit
5e8a4cca; the file discussed is byte-identical to the tag)OS: Linux x86-64
Reported from the Strata-Mnemosyne fork's merged tree; the offending code is upstream's own.
Consequence: slow unbounded VRAM growth on a long-running split with slot rotation (each deferred-commit graph carries per-layer x per-row kernels); late in a run
instantiate_evictingcan run out of victims and a capture fails with out-of-memory, ending the pipelined batch with ERR. Evicting a layout also always strands its save graph behind.Reproduction status: unconfirmed static analysis (no CUDA build here; the LRU and teardown paths read end to end; graph-exec VRAM cost not measured). What would verify: nvidia-smi delta over a long --batch-mtp serve with rotating slots, vs the same run without pmtp.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.