GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — id(world): shared sync epochs for journal appends (#557) — DRAFT, negative result, do not merge by dezren39 · Pull Request #12496 · developing-today/code Conversation
|
| run | fsync median | many_worlds p99 | input_ack p99 | completed | target |
|---|---|---|---|---|---|
| main (45009273393) | 111.485 µs | 1.884 ms | 0.380 ms | 2000.0/s | met |
| this branch (45009269723) | 276.317 µs | 2.508 ms | 1.148 ms | 1999.8/s | met |
Muse sandbox (btrfs home volume, 1.5 shared vCPU, TMPDIR on the home disk; this machine is CPU-quota-bound at this load, so its many_worlds rates mix CPU contention with sync cost — the microbench delta is the clean signal):
| run | fsync median | many_worlds p99 | input_ack p99 | completed | target |
|---|---|---|---|---|---|
| main | 15,881 µs | 107,424 ms | 2,594 ms | 170.2/s | not met |
| this branch | 19,980 µs | 168,708 ms | 4,015 ms | 110.6/s | not met |
Reading: one syncfs costs ~2.5× one fdatasync on the fleet filesystem and ~1.26× on the sandbox btrfs (where it also flushes a large, busy home volume and burns contended CPU). Sharing syncs only pays when the shared sync is cheaper than the sum it replaces; on both filesystems measured here it is not. The one machine where the criterion actually fails — the reference laptop (ext4) — is felix's live thread on #557 and cannot be measured from this lane; syncfs is unpriced there.
Not mergeable on this evidence: it regresses the journal microbench on both measured filesystems. Kept as a draft for the record; the durability design (registration-after-write, covering-sync ordering, fallback-decides) and its oracle tests are sound and reusable if a cheaper shared-sync primitive is ever priced on the target machine. Baseline files are untouched; the recorded reference baseline on #557 remains felix's thread.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Durability-before-ack cost one sync_data per journal append. At the F12.12 load (100 active worlds x 20 inputs/s = 2,000 syncs/s), concurrent fdatasync across 100 journal files serializes in the filesystem well below the offered rate, so the sync layer — not service time — caps throughput and the backlog lands in the many-worlds p99 (felix profile, 2026-11-22: input/ack p99 379 ms on the reference laptop; sandbox before-run: 170 of 2,000 offered inputs/s completed). FileJournal writers now prove durability through a per-filesystem SyncGate: the writer writes its bytes, registers the next epoch, and waits for a syncfs that started after its registration — one sync covers every pending append on the filesystem, and syncs run back-to-back under load. A failed or unavailable gate sync settles the epoch as failed and the writer falls back to its own sync_data, so the append's result is decided exactly as before. Non-Linux builds keep the per-append sync_data path unchanged. Oracles (new tests, world_store): a waiter is released only by a sync that starts after it registered (latch-controlled sync); 256 concurrent waits settle in a handful of shared syncs; a failed sync releases the waiter with an error, never a false durable; appends through the gated writer land exactly and in order. Existing world_store tests (49) stay green.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews: auto_review: drafts: true
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Program tending — stalled PR check-in (tracking: #1352)
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.