Archived
sched: size the pinned staging ring for 16 builds instead of 3
A speculative step makes four builds (history pass, draft rounds 2-3, the next verify). With room for three, the next verify's reserve() waited in retire_oldest() on one of the current step's draft-pass uploads, so issue-ahead returned only ~0.1-0.5 ms before the card needed the step and every host hiccup became card idle. The ring now holds kRingBuilds = 16 worst-case builds (it must stay below kFlights). On Qwen3.8-Flash-Next IQR-V4 (MTP chain 3) step_next returns 11-13 ms ahead, and the card's idle time before the verify drops from 317 to 74 us (from 1243 to 470 us mean under host load). The pinned host ring grows from 753 KiB to 3.9 MiB; the device slab is unchanged. Outputs are identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8dcd8fdcd7
commit
b2228c176b
2 files changed
+9
-3
No files matched your search
@@ -259,6 +259,8 @@ private:
|
||||
int ev = -1; /* row of ev_ holding one event per rank */
|
||||
};
|
||||
static constexpr int kFlights = 64;
|
||||
/* Worst-case builds the staging ring holds (see alloc_set). Must stay below kFlights. */
|
||||
static constexpr int kRingBuilds = 16;
|
||||
struct Ring {
|
||||
char* host = nullptr;
|
||||
int64_t bytes = 0;
|
||||
|
||||
Reference in new issue
Block a user