Skip to content

Reduce identified append allocations - #795

Merged
matrixarkai merged 1 commit into
mainfrom
chunk-append-performance
Nov 23, 2026
Merged

matrixarkai merged 1 commit into
mainfrom
chunk-append-performance

Conversation

@matrixarkai

Copy link
Copy Markdown
Owner

The common single-record identified chunk append now reuses the existing nonblocking replica readiness fan-out. It shares one encoded frame across all three connections while retaining the original pending payload and attempt identity. All three durable acknowledgments are still required; larger and recovering appends use the existing path.

Three separate WSL data-node processes, 256 four-KiB appends at six corpus/tail points: client allocations fell from about30.1 to6 per append, and allocated bytes from about55.5KiB to8.4KiB. Two complete candidate runs produced the same allocation counts through128MiB of seeded sealed data and a48MiB active tail. The clean control used1.57 CPU-seconds in the client across1536 appends; candidates used0.21 and0.25 CPU-seconds. Timing on the shared PC varied, so these results do not establish corpus-flat latency. Record bytes and measured data-node disk write amplification were unchanged.

Validation:336 existing regressions passed, including lost replies, foreign attempt tags, exact retries, replica restarts and the all-three durable write rule. Test crate opt-level1, production benchmark opt-level3; identical source digest. All-feature/all-target check passed. Each runtime was capped at1GiB with swap disabled and no OOM events. Only the two existing writer/readiness source files change.

@matrixarkai
matrixarkai merged commit 1bb7bd6 into main Nov 23, 2026
6 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.

2 participants