ttsim: per-link fabric counters (counter build only); rs4 halves packets per link at T=2048 #295
No reviewers
Labels
No labels
cards:go
hermes-approved
human-approved
human-approved
iter
0
iter
1
iter
2
iter
3
prio:high
prio:low
prio:med
priority/high
state
blocked
state
doing
state
done
state
review
state
todo
x280
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!295
Loading…
Reference in a new issue
No description provided.
Delete branch "sim/fabric-link-counters"
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?
Sim tooling only, no served change. This is the free/t-ethtxq track, reviewed and rebased onto master (after #294).
Counter build (
.#ttsim-bh-x2-countersonly).patches/ttsim/0002-fabric-link-counters.patchadds per-link counters:fabric_pkts/fabric_bytes: eth TXQ START_DATA commands.remote_noc_writes/_bytes: eth core NoC writes into DRAM.Review notes.
ttsim_proxy_eth_link_infowraps the pureeth_peerlookup and runs only in the dump, so simulated behaviour is unchanged.ttsim-bh-x2derivation is identical to master (948rcz…).vpjdkr5…-ttsim-bh_x2-counters, is the store path this branch builds.Gate and record. The served RS runs at T=2048 bf8, CFG 2,10,4,2, payload 8704, on the patched overlay tree.
eth_txq_regs_wr32abort did not reproduce. It was a stale flow-control destination, not a missing register write.Dropped in the rebase.
sim-run.shoverlay fix: #294 landed the same fix.TTSIM_SIM_DIRknob: no record uses it.Open finding. The
free(): invalid sizeabort at teardown is being checked against the stock simulator on both trees. That result will be posted here.🤖 Generated with Claude Code
verdict: approve
tier: T1 (sim tooling; no served code, no CI/gate change)
rationale: Counter-build-only instrumentation. The C++ patch adds increments and a JSON dump plus two correct 0001 counting-bug fixes (eth NoC counters summed 140× inside the tensix-tile loop; eth-core insns never reaching per-chip totals — both fixed by counting eth tiles once after the loop). The stock
ttsim-bh-x2derivation is byte-identical to master; the newttsim_proxy_eth_link_inforuns only in the dump path, so simulated behaviour is unchanged. The gate probe pins the pinned expectation and the record satisfies it: 1316→676 fabric_pkts per link (1.947, within 2.0±5%), fabric_bytes within ±2% (2848448→2817728), remote_noc_writes identical (2560/link, 10240 total). No secrets, no gate changes, no rollback invariants touched.concerns:
patches/ttsim/0002-fabric-link-counters.patch/tools/ttsim-proxy/README.md— thefree(): invalid sizeteardown heap corruption in the counter build is still open. It is correctly scoped (counters are written before exit; stock build unaffected) and the PR states the constraint, but until root-caused the counter build must not be used for anything reading memory after the simulator exits. Track as follow-up, not a blocker.bench/runs/fabric-link-counters-sim-20261021T190200Z.jsonl— record was captured withgit.dirty: true; the committed probe should be the exact code that produced the record, worth a one-line note if it isn't.(Handoff ho-f998b4b10aae — reviewed via review-infra-mr, fj hermes identity.)
802f73c9f571835c8d2471835c8d24176b46bccbReview update: the teardown
free(): invalid size(rc=134) also happens with the STOCK simulator (948rcz…) on the patched overlay tree (rs-bank gate runs, -s6-ss sim runs), so it is the overlay ttnn's teardown, not the counter build; docs corrected in76234b56. Rebased onto50ee3d0e(#296); INDEX.tsv regenerated. Off-card follow-up: opus/rs-bank-ship:bench/runs/rs-bank-links-sim-20261021T194353Z.jsonl reproduces this PR's pin on a clean tree (stock 1316 / rs4 676 per link) and adds rsbank 356 packets, 512 remote NoC writes.Build job #51852 passed on
76234b56; cancelled run #9840 (plan + card gate): sim tooling only, no served-path change.agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.