Repository navigation
Conversation
Quest-Claim: 3b8305fe8b5ecdeb
… and host The dev shell no longer links an RPATH to <checkout>/outputs/out/lib, and instructions.sh remaps CARGO_HOME, so bench binaries are byte-identical across checkout paths and hosts. Records what still moves counts (random seeds, the host clock, the job environment) and the rust2-bench fix it needs in the quest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Maintainer decision (/quest-run pick, 2026-11-24):
(Written by Claude Opus 5.5) |
This was referenced Nov 25, 2026
…bench-determinism Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Applied the maintainer decision in c20f90d: the quest records it, and the Maintainer wait is gone since kixel-ai/rust2's (Written by Claude Opus 5.5) |
…nstruction-counts
…ny load rust2-bench fixes each counted process's randomness and clock and pads its launch (kixel-ai/rust2#1023), so the nightly no longer needs --jobs 1. Finishes quest/m0/repeatable-instruction-counts.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ntainers counts still move Reverts 8bd0b1a: the proof it relied on found 16 of 1,284 counts differ, so --jobs 1 and the caveats stay and the quest stays open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The same code read different instruction counts from one run to the next, at different host loads, and in different checkouts and hosts. Noisy series feed Kixel Quest's regression filing and bisects (quest).
Findings
Diffing Callgrind profiles of runs that disagree: nearly every disagreement is the same code path hitting a different glibc malloc state (
_int_mallocagainst a tcache hit). So any work before the measured iteration that varies will move the count. Three sources:cda8fc3e, which includes it, so this PR needs no bump.nix developlinked an RPATH to<checkout>/outputs/out/libinto every binary, and$CARGO_HOMEregistry paths land in panic locations, so the same code built a different binary per checkout and per host. This PR fixes that.Approach
NIX_NO_SELF_RPATH, which drops the stdenv RPATH to a directory that never exists.sh/rs/instructions.shremaps$CARGO_HOMEto/cargo. It fails loud ifCARGO_ENCODED_RUSTFLAGSwould silently drop the remap.Status
Not finished: the quest's proof count found 16 of 1,284 counts still move, so
--jobs 1and the wall-clock caveats stay. An attempt that dropped them (8bd0b1a5) is reverted on this branch.Remaining (in the quest's Plan):
--jobs 1twice in one checkout and twice in a second at a longer path, to tell load/clock from path; diff one mover's Callgrind profiles and fix the source (in swole or the bench).--jobs 1and the caveats incodspeed.yml,sh/rs/instructions.sh, andbench/README.md.Impact
$CARGO_HOMEpaths. Counts may step once at the next nightly, since the binaries' data layout changes.Validation
CARGO_HOMEat another path, built byte-identicaljitter,varint, and bothcodecbench binaries (cmp), with no/homepaths (strings).shellcheck,shfmt -d,nixfmt --checkpassed.c20f90d5) idle vs loaded from one checkout on anubuntu-24.04runner: all 1,284 equal.8bd0b1a5(main merged, rust2cda8fc3e), run 46122179148 (scratch branch, never merged, uploaded nokixel-metrics): idle start in checkout A (--jobs 1, load 0.49) against loaded checkout B at a longer path (--jobs 4+ 4 CPU burners, load 3.86 to 9.73). 1,268 of 1,284 agree; 15moq-netstats.rscounts differ (up to 3.8%,session-report[1x10/connections=1]) plus onecontainerscount (5,195 of 4.37G).x86_64-ce1501c93c32), four named benchmarks:varintandcodec full[big_static]match the runner exactly;jitter_handoff::4[64](485,814 vs 485,750) andauth/waiting/...::128[128](71,356,407 vs 71,364,314) do not.just ci,/quest-review.Alternatives
RandomStateinside library code, so seeds needed rust2-bench anyway.Decisions
rust2bump here, since main's pin already includes Renamemoqbinary tomoq-cli#1023, and no runner change, which moq-dev/moq#9676 (move to swole) owns.Waiting
quest/m0/repeatable-instruction-counts.md; both currently conflict with or lag main.#bench, so any fix for the 16 remaining movers lands in swole, and this PR's final recount has to run under swole anyway; this PR then merges main with a one-line quest conflictNIX_NO_SELF_RPATHand the$CARGO_HOMEremap are verified (byte-identical binaries across checkouts) and independent; this PR keeps the quest open and rewritten to what remains, so a later session claims it after the cutFollow-ups
Models
Size: M
Implementer: Claude Code, claude-opus-5-5, unknown
Implementer: Claude Code, claude-opus-5-5, unknown (iterate, S)
Implementer: Claude Code, claude-opus-5-5, high (iterate, M)
🤖 Generated with Claude Code
(Written by Claude Opus 5.5 with high)