Skip to content

bench(6o-i): validation, performance and release gate (PR 6) - #201

Merged
akosidencio merged 1 commit into
devfrom
bench/v0.6o-i-validation
Nov 26, 2026
Merged

akosidencio merged 1 commit into
devfrom
bench/v0.6o-i-validation

Conversation

@akosidencio

Copy link
Copy Markdown
Member

Phase 6O-I PR 6: the twelve reports, the tools and the raw evidence. This PR changes no production code: only benchmarks/v0.6.0/6o-i/. It has two as-built notes in the design doc.

Verdict: PASS WITH CONDITIONS

Gate Result
I1 Protocol compatibility PASS
I2 AOF crash recovery PASS
I3 Replica atomicity PASS
I4 Resynchronization PASS
I5 Resource safety PASS
I6 Performance ACCEPTABLE, subject to maintainer decision D6
I7 Independent review APPROVED: A (3 rounds), B (2), C (2), D (2), E (2)

Measured costs (D6), with #200

  • Ordinary commands: unchanged on every path 6O-I touched: AOF, replica, and both. CPU per request is 0.98–1.01×.
  • Two-write everysec transactions: 0.934× on this HDD and 0.973× on tmpfs, with CPU +3.2–3.8%. The loss beyond CPU is write(2) and fdatasync time, which grows with the +114 bytes per transaction.
  • Recovery: ungrouped files are unchanged; grouped files take 23% longer.
  • Replica readers: a reader waits for the whole group to apply. With 3 workers, beside 1,000- and 10,000-write transactions, reader p99 is 0.71 and 2.98 ms and reader throughput is −20% and −31%.
  • Memory: the primary's RSS with a replica is +3–5 MiB.
  • Two extreme cells are unexplained and must be measured before v0.6.0:
    • 10,000-write transactions with 4 outside writers: 0.925× throughput, outside writers −23%, primary RSS +22–45 MiB;
    • a replica with its own AOF under overload: more full syncs than base, and still behind at the end of a run where base caught up.

Decision D7 is to merge #200, which review E approved. It halves the framing's CPU cost and removes the replica-memory regression.

Correctness

Not started, per the brief

MSET-A/B, Phase 6P, Option A, and the v0.6.0 release, tag or publication.

The twelve 6O-I reports, completed: AOF framing, crash recovery, the
replication protocol, replica atomicity, resync boundaries, compatibility,
correctness (suite 857/857 in both fan-out modes with #200; mutants 24/25,
M17 equivalent), the independent reviews A-E, performance and the release
gate (PASS WITH CONDITIONS: I6 acceptable subject to the maintainer's D6,
the measured costs; D7, merge #200).

Performance (native, review E rounds 1-2): ordinary commands unchanged on
every changed path; two-write everysec transactions 0.934x with #200 on the
HDD (0.973x tmpfs), the excess write(2)/fdatasync time; recovery +23% on
grouped files; replica readers wait for a group's application; two extreme
cells unexplained and carried to D6.

Tools: summarizers for the transaction, ordinary-command and stall runs, the
recovery-time tool (interleaved mode; the exec2 writer no longer deadlocks),
the campaign drivers. Raw data under raw/.

The design doc gains two as-built notes (review E N3, N5).
@akosidencio
akosidencio merged commit 54ff38a into dev Nov 26, 2026
13 checks passed
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.

1 participant