Skip to content

lab(drf-p2): cold-cache arm; correct the DRAM claim (stranded from #1763) - #1764

Merged
AdaWorldAPI merged 2 commits into
mainfrom
lab/drf-p2-cold-arm-20261024
Oct 24, 2026
Merged

AdaWorldAPI merged 2 commits into
mainfrom
lab/drf-p2-cold-arm-20261024

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

Why

#1763 was merged one commit before the fix for its only review finding was pushed. As a result, main says the 65 536-row timings were taken with rows in DRAM, and they were not. A focus reads one cache line per distinct ordinal, about 248–256 KiB here, so those repeated reps were warm. This is the same commit (645ec9bf9), rebased onto main.

What

  • Cold arm in examples/p2_breakeven.rs: before each rep, outside the timed region, the probe streams a 512 MiB buffer, twice the 260 MiB L3. It reports cold build and cold direct times.
  • Cold crossover: the smallest N with build_cold + N·fold < direct_cold + (N−1)·direct_warm.
  • Board entry 2026-10-24-drf-p2-breakeven.md rewritten: it now shows both arms, records the correction, and removes the DRAM conclusion.

Result

Break-even stays at 1–3 folds, warm or cold. A cold first touch costs about 30 µs at 1024 rows and 80–150 µs at 65 536 rows, roughly the same on both paths. The full table is in the entry.

Gates: 11/11 tests pass, clippy --all-targets -D warnings is clean, and entries_index.py --check reports the index current.


Generated by Claude Code

A focus touches one cache line per distinct ordinal (248-256 KiB here),
so the repeated 65 536-row reps were warm, not DRAM. The probe now adds a
cold arm that streams a 512 MiB buffer (twice the 260 MiB L3) outside the
timed region before each rep, and computes the cold crossover as the
smallest N with build_cold + N*fold < direct_cold + (N-1)*direct_warm.
Break-even stays 1-3 folds warm and cold. The board entry is rewritten
with both arms and the correction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22yT6htkcdyXsihxxXdrg
@coderabbitai

coderabbitai Bot commented Oct 24, 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: 6e3701b1-7864-4190-87f3-0bfa2c86ccbd
  • 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 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-24T23:40:44.166185Z 5c0d240 Manual request
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8836b669e1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .claude/board/entries/2026-10-24-drf-p2-breakeven.md Outdated
@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Add Carrot credits or activate Agent usage billing to use Autofix

Copy link
Copy Markdown
Owner Author

@codex review

The finding on 8836b66 (the cold single-fold conclusion) is fixed in 5c0d240eb. Please review the current head.


Generated by Claude Code

@AdaWorldAPI
AdaWorldAPI merged commit 2bfb290 into main Oct 24, 2026
11 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 5c0d240eb9

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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