Skip to content

Task: calibrate allocator parity and freeze the matched 0-150k baseline #24

Description

@metaphorics

Parent

#16

What to build

Establish the canonical processing-bound comparison before any new optimization lands. Measure otherwise-identical bitcoin-rs replay binaries with the current replay allocator and production-matched mimalloc, interleaved with fresh Bitcoin Core controls. Freeze the winning allocator posture, source SHA, binaries, compiler, flags, corpus, validation posture, and correctness digests for every dependent ticket.

This is calibration, not a silent baseline reset. Preserve both allocator panels. Use the same local block corpus for both nodes so REST fetch work and a second competing process cannot distort the result.

Blocked by

None. This is the execution frontier.

Acceptance criteria

  • Both bitcoin-rs arms use the same source, release profile, default fjall+kernel feature posture, compiler, flags, and taskset -c 0-31; allocator is the only changed mechanism.
  • Run three interleaved control/candidate pairs and report median wall, user CPU, system CPU, mean-core use, and peak RSS.
  • Run fresh Bitcoin Core 31.0 controls in the same idle sessions against the same 0→150,000 local block corpus with full verification.
  • Record exact source and binary hashes, rustc/linker versions, block corpus identity, stop hash, UTXO digest, and CoinStats MuHash.
  • Reject every run that overlaps a build, another replay/IBD, or abnormal host load.
  • Select the canonical allocator posture explicitly. If mimalloc changes either axis materially, keep both panels and use production-matched mimalloc for all later controls.
  • Publish a machine-readable baseline packet that dependent tickets can consume without reconstructing hidden state.

Metadata

Metadata

Assignees

Labels

wayfinder:mapCanonical Wayfinder mapwayfinder:taskPrerequisite task for a decision

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions