[PR #845] [CLOSED] verify: batch windows honor the all-resident stage (no host doorbells) #2865

Closed
opened 2026-11-04 02:03:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/845
Author: @Yoshiki-Matsuda
Created: 10/4/2026
Status: ❌ Closed

Base: main ← Head: fix/batch-all-resident-split


📝 Commits (1)

  • 922ac04 verify: batch windows honor the all-resident stage (no host doorbells)

📊 Changes

1 file changed (+32 additions, -1 deletions)

View changed files

📝 src/core/verify.cpp (+32 -1)

📄 Description

Combining --layer-split with --batch (parallel >= 2) killed the engine: "verify batch: layer 36 never rang (graph finished)", exit code 1.

Cause: #646's all-resident optimization plans on the device and raises no host doorbells, and the solo path (run) branches around its per-layer host service for such a stage. run_slot_rows did not: it spun on the doorbell ring for every layer of the resident stage (the 36-47 stage on the second GPU), waiting on a ring nothing rings, until the 20 s timeout ended the engine. Solo-only sessions never hit it; the batch window is the first path through run_slot_rows.

Fix:

  • run_slot_rows: the same all-resident branch run() makes - raise the PLE flag the graph's first wait reads, sync the stream, chain to the next stage or sample the rows.
  • batch_poll: skip the per-layer service loop for an all-resident stage, and raise the PLE flag there too (the mirror case: stage 0 resident, stage 1 not).
  • collect_profile() on the fast path so profiling keeps its numbers.

Measured on RTX 5090 + RTX 3090, split 36, batch 2-3: 3 concurrent requests all complete, zero "never rang", batch windows run at ~1.9 rows avg. python -m serve.test_parallel: 11 tests pass.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/845 **Author:** [@Yoshiki-Matsuda](https://github.com/Yoshiki-Matsuda) **Created:** 10/4/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/batch-all-resident-split` --- ### 📝 Commits (1) - [`922ac04`](https://github.com/Niko1221/Strata/commit/922ac0451bf3b2b75425d951f17244ac59e1a56a) verify: batch windows honor the all-resident stage (no host doorbells) ### 📊 Changes **1 file changed** (+32 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/core/verify.cpp` (+32 -1) </details> ### 📄 Description Combining `--layer-split` with `--batch` (parallel >= 2) killed the engine: "verify batch: layer 36 never rang (graph finished)", exit code 1. Cause: #646's all-resident optimization plans on the device and raises no host doorbells, and the solo path (`run`) branches around its per-layer host service for such a stage. `run_slot_rows` did not: it spun on the doorbell ring for every layer of the resident stage (the 36-47 stage on the second GPU), waiting on a ring nothing rings, until the 20 s timeout ended the engine. Solo-only sessions never hit it; the batch window is the first path through `run_slot_rows`. Fix: - `run_slot_rows`: the same all-resident branch `run()` makes - raise the PLE flag the graph's first wait reads, sync the stream, chain to the next stage or sample the rows. - `batch_poll`: skip the per-layer service loop for an all-resident stage, and raise the PLE flag there too (the mirror case: stage 0 resident, stage 1 not). - `collect_profile()` on the fast path so profiling keeps its numbers. Measured on RTX 5090 + RTX 3090, split 36, batch 2-3: 3 concurrent requests all complete, zero "never rang", batch windows run at ~1.9 rows avg. `python -m serve.test_parallel`: 11 tests pass. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:03:42 +07:00
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#2865
No description provided.