Skip to content

perf(native): share large comb kernels and bound compilation memory - #2232

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/taxi-memory-runtime/share-large-comb-kernels-bound-compilation-memory--4dad9216
Oct 27, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/taxi-memory-runtime/share-large-comb-kernels-bound-compilation-memory--4dad9216

Conversation

@tignear

@tignear tignear commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Large derived-edge process entries copied the complete combinational SIR before compilation. Retain deferred recipes, compile the large comb kernel once, and expand, compile and release one wrapper per bounded worker. Existing comb execution units compile separately with preserved cross-unit state and a thin ordered dispatcher. Other backends and tiered startup retain their existing eager path.

Worker selection accounts for host, cgroup and address-space limits with bounded concurrency and deterministic result/error order. Reserve callee scratch before wrapper arenas and retain kernel offsets in native images; the container version advances to 48, so older images must be rebuilt.

Validation: native library and image, completion, partition, tiered and scheduled-startup APIs; eager/deferred equivalence and merged/chunked image roundtrips with handwritten expected values. Owning-crate clippy, no-host configurations and formatting pass. Full-stack unchanged Taxi board benchmarks and common regressions are recorded in the top member.
Generated callers use X86BackendOptions::with_native_callees with the emitted full child extents. This shares the ABI primitive's arena reservation contract and preserves explicitly higher arena placements. Revalidated independently after the arena review fix: 239 native library tests, 41 image/completion/partition/tiered/startup API tests and owning-crate clippy pass.

Depends-On: #2231

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-27T09:54:22.452359Z b2c02ac 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.

@tignear

tignear commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 refactor(native): support state-aware outlined kernel calls #2231
2 perf(native): share large comb kernels and bound compilation memory #2232 👈
3 fix(vpi): expose interface parameters and lexical generate scopes #2233
4 perf(settle): bound estimated partitions and preserve sparse updates #2234
5 perf(sv): evaluate stateless constant functions once #2235

@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@tignear
tignear force-pushed the stack/tignear/perf/taxi-memory-runtime/share-large-comb-kernels-bound-compilation-memory--4dad9216 branch from 9282185 to b7ebe76 Compare October 27, 2026 06:19
@tignear
tignear force-pushed the stack/tignear/perf/taxi-memory-runtime/support-state-aware-outlined-kernel-calls--a444d9f7 branch from af5bc1e to 04e3dc9 Compare October 27, 2026 06:19
@tignear

tignear commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 9282185 2026-10-27 06:18 UTC
2 content 9282185 → b7ebe76 Use the explicit generated-callee arena reservation helper introduced for review4385415960; retain the existing disjoint placement and avoid duplicating the footprint calculation. 2026-10-27 06:18 UTC
3 rebase b7ebe76 → b2c02ac (rebase only) Rebase the unchanged shared-kernel member onto current master; its no-host SV feature-gating correction remains inherited by #2233. 2026-10-27 09:51 UTC

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

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue

1 h 33 min in the queue, with no time running CI.

So far

Reason

The pull request #2232 has been manually updated

Requeued — the merge queue status continues in this comment ↓.

Times in UTC · dashboard · how the merge queue works

Large derived-edge process entries copied the complete combinational SIR before compilation. Retain deferred recipes, compile the large comb kernel once, and expand, compile and release one wrapper per bounded worker. Existing comb execution units compile separately with preserved cross-unit state and a thin ordered dispatcher. Other backends and tiered startup retain their existing eager path.

Worker selection accounts for host, cgroup and address-space limits with bounded concurrency and deterministic result/error order. Reserve callee scratch before wrapper arenas and retain kernel offsets in native images; the container version advances to 48, so older images must be rebuilt.

Validation: native library and image, completion, partition, tiered and scheduled-startup APIs; eager/deferred equivalence and merged/chunked image roundtrips with handwritten expected values. Owning-crate clippy, no-host configurations and formatting pass. Full-stack unchanged Taxi board benchmarks and common regressions are recorded in the top member.
Generated callers use X86BackendOptions::with_native_callees with the emitted full child extents. This shares the ABI primitive's arena reservation contract and preserves explicitly higher arena placements. Revalidated independently after the arena review fix: 239 native library tests, 41 image/completion/partition/tiered/startup API tests and owning-crate clippy pass.

Change-Id: I4dad9216b84cffc3c1a2b503adad4be8f83a366c
@tignear
tignear force-pushed the stack/tignear/perf/taxi-memory-runtime/share-large-comb-kernels-bound-compilation-memory--4dad9216 branch from b7ebe76 to b2c02ac Compare October 27, 2026 09:52
@tignear
tignear force-pushed the stack/tignear/perf/taxi-memory-runtime/support-state-aware-outlined-kernel-calls--a444d9f7 branch from 04e3dc9 to 05cf8e2 Compare October 27, 2026 09:52
@mergify mergify Bot added queued Mergify queue entry and removed queued Mergify queue entry labels Oct 27, 2026
@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as b75b954 at 12:00 UTC

Merged together with #2231, #2233. 1 h 17 min in the queue, 22 min of it CI.

So far

Merge conditions: 11 of 11 met

This pull request

Condition
✅ depends-on=celox-sim/celox#2232
✅ any of: depends-on = celox-sim/celox#2231, number != 2232

The batch, tested on draft #2268

Condition Required by
✅ check-success = Conventional Commit title —
✅ check-success = Queue validation —
✅ any of: check-success = @github-actions/Lint & Format, check-neutral = @github-actions/Lint & Format, check-skipped = @github-actions/Lint & Format GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/NAPI Build (Linux ARM64 GNU), check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU), check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/NAPI Build (Windows), check-neutral = @github-actions/NAPI Build (Windows), check-skipped = @github-actions/NAPI Build (Windows) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/Rust Test & NAPI Build, check-neutral = @github-actions/Rust Test & NAPI Build, check-skipped = @github-actions/Rust Test & NAPI Build GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/JS Test (Ubuntu), check-neutral = @github-actions/JS Test (Ubuntu), check-skipped = @github-actions/JS Test (Ubuntu) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/JS Test (Windows), check-neutral = @github-actions/JS Test (Windows), check-skipped = @github-actions/JS Test (Windows) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/Conventional Commit title, check-neutral = @github-actions/Conventional Commit title, check-skipped = @github-actions/Conventional Commit title GitHub repository ruleset rule master

Times in UTC · dashboard · how the merge queue works

Base automatically changed from stack/tignear/perf/taxi-memory-runtime/support-state-aware-outlined-kernel-calls--a444d9f7 to master October 27, 2026 11:58
@mergify
mergify Bot merged commit b75b954 into master Oct 27, 2026
26 of 44 checks passed
@mergify
mergify Bot deleted the stack/tignear/perf/taxi-memory-runtime/share-large-comb-kernels-bound-compilation-memory--4dad9216 branch October 27, 2026 12:00
@mergify mergify Bot removed the queued Mergify queue entry label Oct 27, 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