Skip to content

lab(drf-tlb): gather cost against distinct pages touched - #1774

Merged
AdaWorldAPI merged 3 commits into
mainfrom
lab/drf-tlb-probe-20261025
Oct 25, 2026
Merged

AdaWorldAPI merged 3 commits into
mainfrom
lab/drf-tlb-probe-20261025

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Lab diagnostic (draft): how the focus gather build cost depends on distinct 4 KiB pages touched, at constant slots (4096) and constant distinct cache lines (4096 for P >= 512).

Result (reported, not gated)

  • With balanced within-page offsets the warm build is flat (about 9-10 µs) from 512 to 2048 pages, then 22-32 µs at 3072-4096 pages: 2.5-3x. Three native runs and one x86-64-v3 run agree.
  • The 512 -> 1024 step seen with the first generator was a cache-set artifact: its within-page offsets fell from 8 to 1 as P grew. It disappears with the balanced generator.
  • The original p2_breakeven comparison (1024 vs 65536 rows) was not at constant cache lines (about 1005 vs about 3970 distinct lines), so this probe isolates one component of that gap and does not fully explain it. The earlier entry carries a correction note.

Not done: 2 MiB-page control, hardware counters (perf is unusable here), randomized visit order, decomposing the original gap into lines vs pages. "TLB" is the best-fitting reading, not a measured cause.

Files: examples/tlb_probe.rs (both generators), entries/2026-10-25-drf-tlb-probe.md, correction on entries/2026-10-24-drf-p2-breakeven.md, STATUS_BOARD DRF-P2 row.

Stays a draft diagnostic until the huge-page control is run or the claim is dropped.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G22yT6htkcdyXsihxxXdrg

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 430ebc63-be2f-4924-a164-c0e411130553
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…laim

The skewed generator's within-page offsets shrank with P (8 -> 1), so the
512->1024 step was a cache-set artifact; it vanishes with balanced offsets.
The rise past ~2048 pages survives. The original 1024 vs 65536 row gap also
changed the distinct-line count (~1005 vs ~3970), so the earlier 'same
footprint' statement is corrected and the TLB entry no longer claims to
close that OPEN point.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22yT6htkcdyXsihxxXdrg
…led arm

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22yT6htkcdyXsihxxXdrg
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 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-25T17:04:26.921981Z 2c6894a Draft marked ready
ℹ️ 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.

@AdaWorldAPI
AdaWorldAPI merged commit b4702b7 into main Oct 25, 2026
12 checks passed
AdaWorldAPI pushed a commit that referenced this pull request Oct 26, 2026
…#1802

- PR_ARC_INVENTORY: compact entries for #1772, #1774–#1787, #1794–#1803,
  recorded from merge commits, changed files and each PR's own Status
  line. #1773 and #1793 are board-hygiene-only and get none.
- INTEGRATION_PLANS: one index row for thirteen plans merged without one
  (D-NAM-1..5 + PZL, DT64-1..5 + QB pointer, D-ONNX-INTAKE-0).
- LATEST_STATE: "main after #1803" section.
- d-onnx-relalg-cap-v1: OP-ONNX-2 status cell names #1802's Burn
  onnx-ir vs Tract proposal; still OPEN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VncKoyG6JkpsoqhqTGTv3f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants