Skip to content

perf(scheduler): leave settle inputs and aliases out of TB level slices - #2699

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/tb-edge-level-cone/leave-settle-inputs-combinational-slices--61202a2a
Oct 31, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/tb-edge-level-cone/leave-settle-inputs-combinational-slices--61202a2a

Conversation

@tignear

@tignear tignear commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Before each time step's edges, a compiled testbench computes the levels
of the event signals and of every clock and reset baseline through a
slice of the settle. The baselines include each instance's clock and
reset ports, which follow their sources; only the sources are compared.
On Heliodor, the slice held 26k of the settle's 81k instructions and ran
at both edges of every cycle.

The slice now covers the scheduler's events and the baselines' sources.
A slice for storage that no unit stores, such as a TB-driven clock, also
kept every loop it could not fold, with what the loops read; reads that
no unit stores already hold their values, so such a slice is now empty.

Change-Id: I61202a2ad90482ce6186ce9c1de353e3545637f9

Measurements (Heliodor test_soc_linux_boot, 1 hart, heliodor-dev, native
O2, --max-steps 2000000, perf record -e instructions:u -c 2000003 with
the JIT perf map; JIT samples, one per ~2M instructions):

Build JIT samples
f7adacd (before #2484, host clock periods) 25,575
master 464df6c 53,600
this PR 22,013 (-59%)

On master the TB unit's samples split into the fused clock-domain unit and
the event-level slice (32-38%), located by the block ranges of the units the
generators inline. With this PR the slice is no longer inlined. Either change
alone leaves it: the events alone are TB-driven inputs whose slice was the
26k loop skeleton, and the alias ports are stored by the settle.

Validation:

  • New unit test slice_of_storage_no_unit_stores_is_empty (a settle with a
    loop); it fails without the slicer change.
  • Workspace nextest for celox and celox-frontend-veryl with the CI
    feature set: 17,882 passed. Clippy (--all-targets -D warnings) and fmt
    clean.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T08:32:06.272119Z 4c54693 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Before each time step's edges, a compiled testbench computes the levels
of the event signals and of every clock and reset baseline through a
slice of the settle. The baselines include each instance's clock and
reset ports, which follow their sources; only the sources are compared.
On Heliodor, the slice held 26k of the settle's 81k instructions and ran
at both edges of every cycle.

The slice now covers the scheduler's events and the baselines' sources.
A slice for storage that no unit stores, such as a TB-driven clock, also
kept every loop it could not fold, with what the loops read; reads that
no unit stores already hold their values, so such a slice is now empty.

Change-Id: I61202a2ad90482ce6186ce9c1de353e3545637f9
@tignear tignear changed the title perf(scheduler): leave settle inputs out of combinational slices perf(scheduler): leave settle inputs and aliases out of TB level slices Oct 31, 2026
@tignear
tignear force-pushed the stack/tignear/perf/tb-edge-level-cone/leave-settle-inputs-combinational-slices--61202a2a branch from 773a7b9 to 4c54693 Compare October 31, 2026 08:30
@tignear

tignear commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 773a7b9 2026-10-31 08:30 UTC
2 content 773a7b9 → 4c54693 2026-10-31 08:30 UTC

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 31, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 31, 2026
@mergify

mergify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as 41d9667 at 09:37 UTC

46 min in the queue, 45 min of it CI.

So far

9 merge conditions met
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • check-success = Verify workflow lockfile
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Queue validation
    • check-neutral = @github-actions/Queue validation
    • check-skipped = @github-actions/Queue validation
  • any of · required by GitHub repository ruleset rule master:
    • check-success = @github-actions/Verify workflow lockfile
    • check-neutral = @github-actions/Verify workflow lockfile
    • check-skipped = @github-actions/Verify workflow lockfile

Times in UTC · dashboard · how the merge queue works

@tignear

tignear commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

queue

☑️ This pull request is already queued

@mergify
mergify Bot merged commit 41d9667 into master Oct 31, 2026
29 checks passed
@mergify
mergify Bot deleted the stack/tignear/perf/tb-edge-level-cone/leave-settle-inputs-combinational-slices--61202a2a branch October 31, 2026 09:37
@mergify mergify Bot removed the queued Mergify queue entry label Oct 31, 2026
@github-actions github-actions Bot mentioned this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant