[GH-ISSUE #4391] [Engine] STRATA_PIPED_MTP: the save/deferred-commit graph execs bypass the 64-graph LRU and grow without bound #1949

Closed
opened 2026-11-04 01:55:32 +07:00 by bsakaguchi · 1 comment
Owner

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 the batch_graph_limit_ = 64 LRU trigger counts exec_bm_ only (verify.cpp:4338), and evict_batch_graph (4130-4155) destroys only exec_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_evicting can 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.

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 the `batch_graph_limit_ = 64` LRU trigger counts `exec_bm_` only (verify.cpp:4338), and `evict_batch_graph` (4130-4155) destroys only `exec_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_evicting` can 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.
Author
Owner

@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:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660389252 --> @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: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1949
No description provided.