Skip to content

docs: tierengine.md takes the DGX Spark results of (k) into a new section 6, strikes the values they replaced, and gives each migration step its status - #102

Merged
juliankang4 merged 2 commits into
midagedev:mainfrom
juliankang4:dgx-spark-doc-tierengine-rewrite
Oct 13, 2026
Merged

juliankang4 merged 2 commits into
midagedev:mainfrom
juliankang4:dgx-spark-doc-tierengine-rewrite

Conversation

@juliankang4

@juliankang4 juliankang4 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

Part of #13. The DGX Spark results for (k) (#13 (comment))
answered five of its six asks, and your answers in #13 (comment)
and #13 (comment) left the tierengine rewrite and the S7
wording to us. This PR records those results in a new section 6 with each row's conditions, corrects the design's
values they replaced, and gives each step of section 5 its status in main.

#101 (the dgx-spark.md rewrite) is merged, and this PR's references to docs/contrib/dgx-spark.md use its
section numbers. The commits are 63d259b9, the same patch rebased onto main 9bd7d577, and ca93fa95, the review's suggestion for section 6.1 row 4.

A wrong number is struck through and corrected in place (AGENTS.md), and CONTRIBUTING.md asks that "Numbers carry
their conditions" and that "a table never mixes cards". This is how the PR applies the three rules:

  • A value is struck only where a measurement under the same condition replaced it, or where you asked for it (S7's 2 to
    4 s assumption). The one other strike, S7 in section 6.1's row 4, is a plan entry, explained in the row 4 item
    below. In section 3's prose the corrected value and its link stand beside the struck one. In the (i) and (j) tables,
    which set the box beside the Spark, the struck value points to section 6.2, so no new Spark number enters those
    tables.
  • A value measured under another condition is not struck; it gets its condition. 235 GB/s stays for sequential rows,
    and 241.4 GB/s replaces it only for a slot hit read with whole-line loads over 128-B aligned parts. The 1 MiB curve
    (11.16 and 11.20 GB/s), its 16.8 MB in flight and its 0.28 ms fill stay as dgx-spark: P0 builds and runs on a DGX Spark, with readings for the port map #13's 1 MiB loop at QD 16 to 32;
    1.045 MB parts at QD 16 read less, and section 6.2 row 3 has those rates. NVIDIA's 11.6 GB/s rail stays as its 64 KB
    reading, and the A6000's 0.04 ms launch cost stays in (c). The move and fetch times derived from 11.6 GB/s (0.27 ms,
    74 moves, 0.30 to 0.34 ms, 23 reuses) are struck: they price 3.134 MB over one rail, and the same rail was measured
    with 3 MiB messages.
  • A fill's 0.58 to 0.69 ms is [derived]: one fill's share of a 48-part batch read at QD 3. A fill of 3 parts timed
    alone took 0.61 to 1.34 ms (each run's median). Section 6.2 row 3 gives both, and S11's gate on S2's measured fill
    still decides S2b.
  • C2's remote fetch (0.26 ms, 20 reuses) uses λ_probe's p50 of 30 µs from gpu-gates: link_probe, the protocol probe of dgx-spark.md 8.9 step 2 (N nodes from the command line, one stage) #44; with the engine's λ of 37 to 60 µs
    [derived] it is 0.27 to 0.29 ms and about 21 to 22 reuses. C1 and C2 stand either way.
  • Row 4 (fills a token above the pool) is not measured yet. It waits only for GLM to load at the serving default (the
    load-refusal fix, dgx-spark: what is in progress on the Spark side, as a checklist #53), since S0's records by kind are on main. S7 and its card leg are what P4 needs after that
    reading, so section 6.1 strikes S7 from row 4's "We build first".

Row 6's cnode_probe was built from main 23ee2100, the same tree as row 3's probe, and its three runs are the 0.557,
0.557 and 0.553 µs of the (k) results comment. That comment states the SM clock but not the commit for that row;
#13 records it, and row 6 now cites it.

Code shape

Documentation only.

  • No second copy. The Spark results and their conditions are in section 6.2, the link facts in
    docs/contrib/dgx-spark.md section 9.1, and c_node here for sparkdec.md to point to. S7's row keeps only the
    measured times you asked for there and points to section 6.2 row 2 for the rest.
  • Model code holds only architecture facts. Not applicable: documentation only.
  • Dead code is gone. The open-question list and the decided list are one table now, and nothing is left that
    only repeated a decision.
  • No silent failure. Not applicable: documentation only.
  • Comments state what is true now. Not applicable: no code comment changed.
  • No relaxed gate. Not applicable: no gate, band or lint changed.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up. (Nothing Rust changed;
    mac-static below.)

Duplication found or removed (path:line), or "none": none.

What I ran

On a Mac (Apple Silicon, macOS) with the pinned nightly, at 4a57bb1f, the same patch before the rebase (on #101's 5bb99b6a,
main 517e0a74). Each line is cut after its time; the lint step counts 41 warnings, equal to tools/lint-ratchet.txt:

$ just mac-static upstream/main
mac-static: fmt-check rc 0 in 24 s
mac-static: lint rc 0 in 5 s
mac-static: combos rc 0 in 10 s
mac-static: check-arch rc 0 in 34 s
mac-static: check-comments rc 0 in 36 s
mac-static: check-defaults rc 0 in 3 s
mac-static: check-levers rc 0 in 27 s
mac-static: check-loads rc 0 in 3 s
mac-static: check-ptx-names rc 0 in 0 s
mac-static: check-records rc 0 in 21 s
mac-static: check-recipes rc 0 in 76 s
mac-static: check-rustflags rc 0 in 0 s
mac-static: check-unsafe rc 0 in 10 s
mac-static: check-waits rc 0 in 1 s
mac-static: ok

Every number added was checked against the comment it links, and every reference link at the end of the page opens
the comment it names. The new one, [measure13] (#13 (comment)), is the source of row 2's register
time and of row 6's commit. No other file cites this page by line number
(git grep -n tierengine). The one place that cited (k)'s table by position, answer 17 in
docs/contrib/dgx-spark.md, now points to section 6.2 row 6.

Hardware (if the change is for a machine)

The numbers come from the linked comments, each with its conditions in section 6.2: DGX Spark (GB10), driver 595.84,
kernel 6.17.0-1032-nvidia, stock GPU clocks, serving off. The one new measurement for this PR is the
cuMemHostRegister time in row 2 (#13): one DGX Spark, three runs of a small driver API program
(outside the tree, so there is no bloomery commit), each in a new process over an anonymous 19.91 GiB mapping of
4 KiB pages, every page written before the call. The comment has the program, its build line and the output.

AI help

AI 코딩 에이전트가 문서를 작성한 후 PR을 올렸습니다. diff 리뷰와 PR 리뷰는 제가 직접 했습니다.

github-actions[bot]
github-actions Bot previously approved these changes Oct 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: documentation only; the arithmetic, the strikes and the cross-references I checked all hold.

Non-blocking

⚠ The decode fill uses the batch-share value: docs/research/tierengine.md:294 and line 550. A decode fill is 3 parts in flight alone, and row 3 measured that case at 0.61 to 1.34 ms. The headline 0.58 to 0.69 ms is a share of a 48-part batch. At 45.7 fills a token the struck "20 ms" becomes 26.5 to 31.5 ms with the share, and up to about 61 ms [derived: 45.7 × 1.34] with the alone value. Direction: give the alone range in (h) item 4 and in §6's opening paragraph, so the reader does not take 26.5 to 31.5 ms as the bound.

⚠ Q5's decision text changed: docs/research/tierengine.md:586. "A measured registration time" became "a registration time measured on a discrete card". The user decided Q5 on 2026-10-11, and the new condition is a new decision. The GB10 register time in row 2 would not satisfy it. Direction: keep the original words, or date the amendment (2026-10-12) and name its source.

Checked

  • Duplicates: none. The Spark values live in §6.2 once; (h), (k) and §5 point to it. The dgx-spark.md targets §8, §9.1, §9.6 and §9.7 exist.
  • Arithmetic re-derived, all match: 3.134 MB / 241.4 GB/s = 13.0 µs; / 13.63 GB/s = 0.230 ms; +30 µs = 0.26 ms; 0.26 / 0.013 = 20; 20 ms / 0.230 ms = 87 moves; 45.7 × 0.58 to 0.69 = 26.5 to 31.5 ms; 64 GiB / 5.288 s = 12.1 GiB/s; 13.63 / 11.2 = 1.22.
  • Strikes: each struck value has a replacement under the same condition, or is the S7 "2 to 4 s" assumption the maintainers asked to strike.
  • Not checked: the 0.37 ms and 0.52 ms nine-tile times in row 3 rest on QD-8 rates the table does not list. They carry [derived].
  • No Rust changed; dryer and crapper did not run. No gate, band or lint moved.
  • The status column cites main 79e5afbe; I could not read git history, so I did not check the commit hashes in it.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

github-actions[bot]
github-actions Bot previously approved these changes Oct 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: documentation only; the renumbering is consistent and every derived number I recomputed matches its inputs.

Non-blocking

⚠ Tile times have no stated input: docs/research/tierengine.md §6.2 row 3 gives "about 0.37 ms (Gen5) and 0.52 ms (Gen4)" for nine tiles "at the QD-8 rate", but the row lists the QD 3 and QD 16 rates only. A reader cannot redo the arithmetic. Add the QD-8 rates (about 8.5 and 6.0 GB/s if I back them out) with their source, or drop the two times.

Checked

  • Duplicates: no code added. The Spark results have one owner (§6.2); dgx-spark.md §9.1 holds the link facts, and §6.2 row 5 points to it. dryer and crapper did not run (no Rust changed).
  • Renumbering: old §6 to §7 and old §7 to §8. I grepped every § reference in tierengine.md (lines 20, 192, 229, 330) and every citation of the file in docs/ (warmprof.md cites §2, §3, §4 only; dgx-spark.md cites letters and §6.2 row 6). No stale reference found.
  • Numbers recomputed: 3.134 MB / 241.4 GB/s = 13.0 µs; 3.134 / 4.57 to 5.45 GB/s = 0.58 to 0.69 ms; 45.7 fills × those = 26.5 to 31.5 ms, × 1.34 = 61 ms; 0.26 / 0.013 = 20 reuses; 3.134 / 13.63 = 0.230 ms and 20 ms / 0.230 = 87 moves; 13.63 / 11.2 = 1.22; 48 × 0.553 µs = 0.027 ms, 0.05 to 0.13 % of 20 to 50 ms; 19.91 GiB / 0.543 s = 36.7 GiB/s; 64 GiB / 5.288 s = 12.1 GiB/s. All match.
  • Strikes: each struck value is replaced under the same condition or points to §6.2. Values under other conditions (235 sequential, 11.16 / 11.20 at 1 MiB, 11.6 GB/s rail) stay with their conditions.
  • Silent failure, tests, gates, unsafe: none in this diff. No gate, band or pin moved. Removed text (old §7 questions, "Design followed") is kept in §8 and §9.
  • Escape catalog: no pattern applies (no scripts).
  • Performance: no hot path touched.

Notes

  • No nvidia-smi evidence list is needed: the PR carries no speed claim about bloomery code. The Spark numbers are quoted from linked issue comments, which I could not open. I checked internal consistency only.
  • dryer and crapper did not run (no Rust file changed).

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

github-actions[bot]
github-actions Bot previously approved these changes Oct 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: documentation only; every derived number I recomputed matches, and no gate, test or code changed.

Non-blocking

⚠ S1 status cites a commit the card does not name: docs/research/tierengine.md:493 gives "+7.07 % at n=1024 on the A6000 paged plan (docs/cards/refill-decode.card, 23ee2100)". The card says its changed arm is main b00ff641 against b00ff641 with af6d0eba reverted (fa15c9d3). 23ee2100 is the tree the Spark probes were built from (dgx-spark.md:712). If 23ee2100 is only the commit where the card file landed, say so; if not, use b00ff641. A number and a wrong commit side by side break "numbers carry their conditions".

⚠ Two "as of main" hashes: docs/research/tierengine.md:8 says the status is as of main 79e5afbe. The PR body says the patch was rebased onto main 65adbdaf. I could not check either hash in the trees. Confirm that 79e5afbe is the main you read the S0 to S13 status from.

Checked

  • Duplicates: the new text moves the (k) asks to §6.1 and the open questions to §8, and keeps one copy of each. No second copy found. dryer and crapper did not run (no Rust changed).
  • Numbers: I recomputed 0.58 to 0.69 ms, 26.5 to 31.5 ms, 61 ms, 13.0 µs, 18.7 µs, 0.230 ms, 87 moves, 0.26 ms, 20 and 21 to 22 reuses, 1.22×, 0.027 ms, 0.05 to 0.13 %, 36.7 GiB/s and 12.1 GiB/s. All match their stated inputs. Each carries [derived] or [measured] and its conditions, and §6.2 has one row per condition set. Drives of two kinds stay in separate cells.
  • Renumbering: other files cite tierengine.md by letter ((d), (h), (j)), by §2 to §4, or by S7. The only cited section that moved is dgx-spark.md:1067, and the PR re-points it. The ptx/Rust paths named in the S1 row exist (read_pick, ArenaMem::give_back).
  • Silent failure, tests, gates: none touched. No PIN needed. The struck values are replaced under a named measurement or on the maintainers' request.
  • Escape catalog: no pattern applies (no shell, no process matching).

Notes

  • The register time (0.543 s) comes from a program outside the tree. The PR links the comment that holds the program and output; I did not open it.
  • No gate run on a card is in the PR text (the mac-static log is a static check), so gpu.json has evidence: false. The change needs none.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

juliankang4 added a commit to juliankang4/bloomery that referenced this pull request Oct 13, 2026
… on one needs

With issues: write and pull-requests: read, the POST to issues/<n>/labels on a pull request is refused with HTTP 403:
the open run on midagedev#102 ended there. The job now has pull-requests: write as well; issues: write stays for issues and for
creating the labels.
juliankang4 added a commit that referenced this pull request Oct 13, 2026
… on one needs

With issues: write and pull-requests: read, the POST to issues/<n>/labels on a pull request is refused with HTTP 403:
the open run on #102 ended there. The job now has pull-requests: write as well; issues: write stays for issues and for
creating the labels.
…tatus of each step

A new section 6 holds (k)'s six asks and their results with each row's conditions. Where section 3's prose used a
value the measurements replaced, it is struck and corrected in place with its link; the (i) and (j) tables strike it
and point to section 6.2, so no table mixes the box's numbers with the Spark's new ones. Values measured under other
conditions stay with their conditions: the 1 MiB loop's 11.2 GB/s plateau and its 0.28 ms fill, and 235 GB/s for
sequential rows. S7's row replaces its 2 to 4 s assumption with the cuMemHostAlloc and cuMemHostRegister times; row 4 is
marked not measured yet, and row 6 keeps only the GB10 numbers. S7's devmap clause is checked on any card. Section 5
gains a status column, the open questions and the decisions become one table (section 8), and the prior work moves to
section 9. Sections 1 to 5 keep their numbers, and (a) to (l), S0 to S13 and Q1 to Q12 keep their names. The
references to docs/contrib/dgx-spark.md use its new sections, and its answer 17 points to section 6.2 row 6.
@juliankang4
juliankang4 force-pushed the dgx-spark-doc-tierengine-rewrite branch from a46b805 to 63d259b Compare October 13, 2026 09:24
@github-actions github-actions Bot added dgx-spark The DGX Spark (aarch64, GB10) port documentation Improvements or additions to documentation labels Oct 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MUST_FIX: §6.1 row 4 still lists S7 under "We build first", but §6.2 row 4 says S7 is not needed for that reading, and the PR body says the strike was made.

Must fix

1. S7 is not struck in §6.1 row 4

docs/research/tierengine.md:540 The last cell reads S0 (records by kind), S7. §6.2 row 4 says "S7 and its card leg are not needed for this reading". The PR body says "section 6.1 strikes S7 from row 4's 'We build first'". The file does not. A reader who takes the plan from the 6.1 row will wait for S7 before measuring fills a token. Section 6.2 says that wait is not needed. The same document gives two answers to the same question, and the repo rule is that a wrong value is struck in place.
Fix, replace the end of line 540:

| S0 (records by kind), ~~S7~~ (not needed for this reading: §6.2 row 4) |

Checked

  • Duplicates: 0 new code items. The doc gives each fact one home: results in §6.2, link facts in docs/contrib/dgx-spark.md §9.1. dryer and crapper did not run, because no Rust file changed.
  • Arithmetic: I recomputed every new derived value from the cited rates. All match: 12.98 µs a hit, 0.575 to 0.686 ms a fill, 26.5 to 31.5 ms and 61 ms a token, 0.230 ms a move, 87 moves, 0.26 ms and 20 reuses, 0.267 to 0.290 ms and 20.5 to 22.3 reuses, 0.370 and 0.521 ms for nine tiles, 0.027 ms for 48 launches, 1.22× for the rail, 36.7 GiB/s.
  • Sources: 13.63 GB/s, λ_probe p50 of 30 µs and "37 to 60 µs" are in docs/contrib/dgx-spark.md:506-512.
  • Section renumbering: the other docs cite tierengine.md §2, §3 and §4 (warmprof.md), and dgx-spark.md cites it by letter or by §6.2 row 6. These all still resolve, since §1 to §5 keep their numbers. The dgx-spark.md answer 17 edit is correct.
  • Silent failure, tests, gates: not applicable. No code, no gate, no band, no PIN changed.
  • Escape catalog: no pattern matched; no shell file changed.

Notes

  • The PR body has no card evidence. The PR is documentation only and carries no speed claim for the code.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

Comment thread docs/research/tierengine.md Resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: the one earlier must-fix is fixed, and the new commit changes nothing else.

Since the last review:

Checked

  • Duplicates: 0 new code items. The new commit is a one-line edit to one table cell. Other mentions of S7 (lines 538, 553, 568, 593, 597, 598) do not contradict the strike. dryer and crapper did not run, because no Rust file changed.
  • Complexity, silent failure, tests, gates: not applicable. No code, gate, band or PIN changed.
  • Escape catalog: no pattern matched; no shell file changed.

Notes

  • The PR body has no card evidence. The PR is documentation only and carries no speed claim for code.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

컨트리뷰트 체크 완료 했으니 머지합니다

@juliankang4
juliankang4 merged commit 5ab98b3 into midagedev:main Oct 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dgx-spark The DGX Spark (aarch64, GB10) port documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant