Perf squeeze: server hot paths, average and worst case #512

Open
opened 2026-10-16 18:39:39 +00:00 by kayg · 29 comments
Owner

Measure current dev at 10k and 100k on SSD and HDD, profile the worst server costs, and make safe improvements without weakening durability or isolation. Evidence and gate output will be posted here.

Measure current dev at 10k and 100k on SSD and HDD, profile the worst server costs, and make safe improvements without weakening durability or isolation. Evidence and gate output will be posted here.
Author
Owner

Starting unattended performance work on branch issue/perf-squeeze. Base origin/dev: 312bc892ae. Five interleaved baseline passes per disk and Home size are planned. No merge or deployment is authorized.

Starting unattended performance work on branch issue/perf-squeeze. Base origin/dev: 312bc892ae17f513f141cd8d09abb62ed864c6d5. Five interleaved baseline passes per disk and Home size are planned. No merge or deployment is authorized.
Author
Owner

Environment finding: the initial local build stopped before compiling product code because cc is absent from PATH (error: linker cc not found). Located the installed Nix compiler and OpenSSL development files and set a job-only environment outside the repository. Release binaries are being built directly on the perf VM to use its native toolchain. SSD has 9.9 GB available and HDD 25 GB; all new VM files use a private perfsq-512 directory. No shared processes or build directories were changed.

Environment finding: the initial local build stopped before compiling product code because cc is absent from PATH (error: linker `cc` not found). Located the installed Nix compiler and OpenSSL development files and set a job-only environment outside the repository. Release binaries are being built directly on the perf VM to use its native toolchain. SSD has 9.9 GB available and HDD 25 GB; all new VM files use a private perfsq-512 directory. No shared processes or build directories were changed.
Author
Owner

Baseline verification: local workspace Clippy completed successfully with all targets and warnings denied (exit 0). The job-only Nix compiler environment resolved the missing linker. Native release build on the perf VM is in final server LTO. The external 20-client probe is ready: 50 rounds per client, each with a page read, note read, search and durable notes.append, followed by checking all 1,000 unique writes exactly once. Baseline and after probes will use identical scripts and fixture seeds.

Baseline verification: local workspace Clippy completed successfully with all targets and warnings denied (exit 0). The job-only Nix compiler environment resolved the missing linker. Native release build on the perf VM is in final server LTO. The external 20-client probe is ready: 50 rounds per client, each with a page read, note read, search and durable notes.append, followed by checking all 1,000 unique writes exactly once. Baseline and after probes will use identical scripts and fixture seeds.
Author
Owner

First baseline finding, SSD / 10k / one run (preliminary, not a before/after claim):

metric unit p50 p95 max
cold.index s 2.252 2.252 2.252
search.catch_up s 6.016 6.016 6.016
journal.catch_up ms 72.864 72.864 72.864
home.page_tag ms 9.810 22.466 69.780
open.note ms 1.328 2.620 4.014
sync.save_ack ms 5.985 9.913 55.083
storm.save_ack ms 12.302 24.310 65.290
mem.idle MB 13.254 13.254 13.254

The largest waits so far are search catch-up and cold indexing. Note opens are already about 1–3 ms, so the historical fixed 51 ms open cost is gone on current dev. No correctness failures in this run. Continuing the interleaved matrix before selecting fixes.

First baseline finding, SSD / 10k / one run (preliminary, not a before/after claim): | metric | unit | p50 | p95 | max | |---|---|---:|---:|---:| | cold.index | s | 2.252 | 2.252 | 2.252 | | search.catch_up | s | 6.016 | 6.016 | 6.016 | | journal.catch_up | ms | 72.864 | 72.864 | 72.864 | | home.page_tag | ms | 9.810 | 22.466 | 69.780 | | open.note | ms | 1.328 | 2.620 | 4.014 | | sync.save_ack | ms | 5.985 | 9.913 | 55.083 | | storm.save_ack | ms | 12.302 | 24.310 | 65.290 | | mem.idle | MB | 13.254 | 13.254 | 13.254 | The largest waits so far are search catch-up and cold indexing. Note opens are already about 1–3 ms, so the historical fixed 51 ms open cost is gone on current dev. No correctness failures in this run. Continuing the interleaved matrix before selecting fixes.
Author
Owner

Baseline correctness finding: cargo test --workspace finished with exit 0, including tests/isolation.rs and the note-room and action isolation tests. Baseline workspace Clippy also exited 0. First HDD/100k run is still doing the full warm workload. CPU profiling of cold indexing, search catch-up and journal catch-up is queued under the perf VM lock, using a separate copy so it does not change baseline fixtures.

Baseline correctness finding: cargo test --workspace finished with exit 0, including tests/isolation.rs and the note-room and action isolation tests. Baseline workspace Clippy also exited 0. First HDD/100k run is still doing the full warm workload. CPU profiling of cold indexing, search catch-up and journal catch-up is queued under the perf VM lock, using a separate copy so it does not change baseline fixtures.
Author
Owner

First HDD / 100k baseline finding (one run, preliminary):

metric unit p50 p95 max
cold.index s 47.510 47.510 47.510
search.catch_up s 120.543 120.543 120.543
journal.catch_up ms 792.925 792.925 792.925
home.page_big ms 232.739 431.525 431.525
search.query ms 5.676 11.311 689.350
open.api_get ms 40.054 75.989 86.835
sync.save_ack ms 13.721 84.914 1218.771
storm.save_ack ms 44.949 129.829 293.256
mem.idle MB 13.156 13.156 13.156
mem.peak MB 95.859 95.859 95.859

The cold-index CPU profile captured 6,085 samples with no lost samples over 55.3 seconds. Its top self symbol is _raw_spin_unlock_irqrestore at 13.39%, including futex wakes from malloc/realloc. Investigating allocation work in note descriptions before changing it. The profiler wrapper initially treated its intentional SIGINT as failure even though perf wrote valid data; fixed only the private wrapper to accept that exit. Remaining profiles are queued under the VM lock. Existing HDD budget breaches are recorded, not hidden.

First HDD / 100k baseline finding (one run, preliminary): | metric | unit | p50 | p95 | max | |---|---|---:|---:|---:| | cold.index | s | 47.510 | 47.510 | 47.510 | | search.catch_up | s | 120.543 | 120.543 | 120.543 | | journal.catch_up | ms | 792.925 | 792.925 | 792.925 | | home.page_big | ms | 232.739 | 431.525 | 431.525 | | search.query | ms | 5.676 | 11.311 | 689.350 | | open.api_get | ms | 40.054 | 75.989 | 86.835 | | sync.save_ack | ms | 13.721 | 84.914 | 1218.771 | | storm.save_ack | ms | 44.949 | 129.829 | 293.256 | | mem.idle | MB | 13.156 | 13.156 | 13.156 | | mem.peak | MB | 95.859 | 95.859 | 95.859 | The cold-index CPU profile captured 6,085 samples with no lost samples over 55.3 seconds. Its top self symbol is _raw_spin_unlock_irqrestore at 13.39%, including futex wakes from malloc/realloc. Investigating allocation work in note descriptions before changing it. The profiler wrapper initially treated its intentional SIGINT as failure even though perf wrote valid data; fixed only the private wrapper to accept that exit. Remaining profiles are queued under the VM lock. Existing HDD budget breaches are recorded, not hidden.
Author
Owner

Profiles of the three largest requested waits are now captured on the HDD / 100k Home using perf cpu-clock at 99 Hz with DWARF stacks. Cold indexing: 6,085 samples, no samples lost; allocator and futex work is prominent, tags::scan::spans is 7.56% self and starts_word 2.05%. Search catch-up: tags::scan::spans is 5.84% self, starts_word 1.41%, malloc 3.31%, and allocator/kernel wakeup costs dominate. Journal catch-up: JSON string serialization is 5.46% self, Value serialization 2.37%, SQLite execution 2.75%, malloc 3.13%, plus kernel/lock costs. Journal already serializes a typed response, so avoiding a JSON tree there would require a wider storage/API change; keeping this pass focused on the measured description costs shared by cold indexing and search.

First patch: plain cleaned lines borrow their text; formatting replacements run only when their marks occur; note description no longer copies the whole note. A new regression failed on the old code with plain line should not allocate: "Plain text", then passed with the patch. Four search-description tests pass, including replacement order, links and Unicode.

Second candidate: skip tag parsing on hash-free lines after fence tracking. A regression verifies that fences without hashes still hide code-block tags, including quoted/list fences. All six scanner tests passed before the change. Release and interleaved fixture benchmarks are queued under the VM lock. No durability settings or isolation paths are changed.

Profiles of the three largest requested waits are now captured on the HDD / 100k Home using perf cpu-clock at 99 Hz with DWARF stacks. Cold indexing: 6,085 samples, no samples lost; allocator and futex work is prominent, tags::scan::spans is 7.56% self and starts_word 2.05%. Search catch-up: tags::scan::spans is 5.84% self, starts_word 1.41%, malloc 3.31%, and allocator/kernel wakeup costs dominate. Journal catch-up: JSON string serialization is 5.46% self, Value serialization 2.37%, SQLite execution 2.75%, malloc 3.13%, plus kernel/lock costs. Journal already serializes a typed response, so avoiding a JSON tree there would require a wider storage/API change; keeping this pass focused on the measured description costs shared by cold indexing and search. First patch: plain cleaned lines borrow their text; formatting replacements run only when their marks occur; note description no longer copies the whole note. A new regression failed on the old code with `plain line should not allocate: "Plain text"`, then passed with the patch. Four search-description tests pass, including replacement order, links and Unicode. Second candidate: skip tag parsing on hash-free lines after fence tracking. A regression verifies that fences without hashes still hide code-block tags, including quoted/list fences. All six scanner tests passed before the change. Release and interleaved fixture benchmarks are queued under the VM lock. No durability settings or isolation paths are changed.
Author
Owner

Fix 1 committed as f9f8496f50: borrow unchanged cleaned lines and remove the whole-note copy during description. Five interleaved before/after passes over real fixture text (1,535,671 bytes, 17,588 lines; 30 cleaning/joining repetitions per pass) produced identical 1,441,863-byte output. Median before 319.417 ms, after 115.279 ms: 63.9% less time in this component. This is a component result, not a claimed whole-server speedup. Full HDD/100k measurement of the allocation-only binary is queued.

corpus_bytes=1535671 lines=17588 output_bytes=1441863
run=1 variant=before milliseconds=313.473
run=1 variant=after milliseconds=114.689
run=2 variant=after milliseconds=115.279
run=2 variant=before milliseconds=317.872
run=3 variant=before milliseconds=405.781
run=3 variant=after milliseconds=147.044
run=4 variant=after milliseconds=134.399
run=4 variant=before milliseconds=335.422
run=5 variant=before milliseconds=319.417
run=5 variant=after milliseconds=113.650

Independent read-only review found no actionable issues. Final code passed cargo fmt --all --check, workspace Clippy with warnings denied, and workspace tests including isolation. Final gate output and full before/after tables will follow after the matrix.

Fix 1 committed as f9f8496f50e293f406a96399a9c2e8a30c511fae: borrow unchanged cleaned lines and remove the whole-note copy during description. Five interleaved before/after passes over real fixture text (1,535,671 bytes, 17,588 lines; 30 cleaning/joining repetitions per pass) produced identical 1,441,863-byte output. Median before 319.417 ms, after 115.279 ms: 63.9% less time in this component. This is a component result, not a claimed whole-server speedup. Full HDD/100k measurement of the allocation-only binary is queued. ```text corpus_bytes=1535671 lines=17588 output_bytes=1441863 run=1 variant=before milliseconds=313.473 run=1 variant=after milliseconds=114.689 run=2 variant=after milliseconds=115.279 run=2 variant=before milliseconds=317.872 run=3 variant=before milliseconds=405.781 run=3 variant=after milliseconds=147.044 run=4 variant=after milliseconds=134.399 run=4 variant=before milliseconds=335.422 run=5 variant=before milliseconds=319.417 run=5 variant=after milliseconds=113.650 ``` Independent read-only review found no actionable issues. Final code passed cargo fmt --all --check, workspace Clippy with warnings denied, and workspace tests including isolation. Final gate output and full before/after tables will follow after the matrix.
Author
Owner

Fix 2 committed as be555c1dfc: skip tag parsing on lines without hashes, after fence tracking. The real-fixture corpus was 1,535,671 bytes with 1,960 tags. Every before/after span matched exactly. Across five interleaved passes of 30 repetitions, median component time fell from 348.028 ms to 142.184 ms (59.1% less). All six scanner tests and the full workspace suite pass, including the new fence regression. This component result does not substitute for the full matrix.

corpus_bytes=1535671 tags=1960
run=1 variant=before milliseconds=348.028
run=1 variant=after milliseconds=135.242
run=2 variant=after milliseconds=142.184
run=2 variant=before milliseconds=357.039
run=3 variant=before milliseconds=349.097
run=3 variant=after milliseconds=158.923
run=4 variant=after milliseconds=134.996
run=4 variant=before milliseconds=333.673
run=5 variant=before milliseconds=337.331
run=5 variant=after milliseconds=148.019
Fix 2 committed as be555c1dfc1f1da75ac8bb9c74b3cadf3fcf793b: skip tag parsing on lines without hashes, after fence tracking. The real-fixture corpus was 1,535,671 bytes with 1,960 tags. Every before/after span matched exactly. Across five interleaved passes of 30 repetitions, median component time fell from 348.028 ms to 142.184 ms (59.1% less). All six scanner tests and the full workspace suite pass, including the new fence regression. This component result does not substitute for the full matrix. ```text corpus_bytes=1535671 tags=1960 run=1 variant=before milliseconds=348.028 run=1 variant=after milliseconds=135.242 run=2 variant=after milliseconds=142.184 run=2 variant=before milliseconds=357.039 run=3 variant=before milliseconds=349.097 run=3 variant=after milliseconds=158.923 run=4 variant=after milliseconds=134.996 run=4 variant=before milliseconds=333.673 run=5 variant=before milliseconds=337.331 run=5 variant=after milliseconds=148.019 ```
Author
Owner

Gate output verbatim at head be555c1dfc, part 1/2. Local heavy commands used the required build-slot wrapper and four Cargo jobs.

cargo fmt --all --check
exit=0

cargo clippy --workspace --all-targets -- -D warnings
    Checking calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/notes)
    Checking calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/daily)
    Checking calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/perf)
    Checking calternal v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/calternal)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.57s
exit=0

cargo test --workspace
   Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/notes)
   Compiling calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/daily)
   Compiling calternal v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/calternal)
   Compiling calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/perf)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 15.22s
     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal-0e2524b9e83bd935)

running 11 tests
test args::tests::defaults_and_flags ... ok
test args::tests::origin_defaults_to_the_local_port ... ok
test args::tests::fix_commands ... ok
test args::tests::migrate_v0 ... ok
test args::tests::user_create ... ok
test args::tests::web_folder ... ok
test args::tests::dev_user_never_on_a_public_address ... ok
test args::tests::user_recover ... ok
test plugins::tests::contract_matches_the_server ... ok
test isolation::bob_reaches_nothing_of_alices_through_any_action ... ok
test isolation::bob_cannot_join_alices_note_room ... ok

test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s

     Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/fix_tz_live-bc5a4bf6584d2af7)

running 2 tests
test fix_without_a_running_server_says_so ... ok
test strip_tz_markers_on_a_live_home_with_a_client_typing ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s

     Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_crash-93cd7b159b871449)

running 2 tests
test kill_nine_mid_tag_rename_renames_each_tag_once ... ok
test kill_nine_never_loses_or_doubles ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.51s

     Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_crash_typing-5a864935c1e5064a)

running 1 test
test kill_nine_while_people_type_loses_and_doubles_nothing ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.37s

     Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_live-c8da14e6fd2209fb)

running 2 tests
test joining_a_missing_note_fails_politely ... ok
test type_over_the_websocket_and_read_it_back ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s

     Running tests/prefs_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/prefs_live-bdf7e4ca59cd64dc)

running 1 test
test preferences_are_saved_checked_and_kept ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s

     Running tests/search_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/search_live-d2de52bf0874bbe2)

running 1 test
test notes_from_everywhere_are_found ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.08s

     Running tests/startup.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/startup-c9f9cd5b7d6ab6fa)

running 5 tests
test a_new_server_prints_a_setup_token ... ok
test recover_only_knows_real_people ... ok
test refuses_dev_user_on_a_public_address ... ok
test refuses_plain_http_on_a_public_origin ... ok
test answers_within_budget ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_auth-5e8eb246e070ea06)

running 12 tests
test config::tests::origins ... ok
test limit::tests::stops_after_the_limit ... ok
test passkeys::tests::ids_round_trip ... ok
test passkeys::tests::names_are_trimmed_short_and_never_empty ... ok
test session::tests::names_are_cleaned ... ok
test setup::tests::names ... ok
test setup::tests::usernames ... ok
test token::tests::setup_tokens_round_trip_through_pasting ... ok
test token::tests::junk_is_not_a_token ... ok
test db::tests::a_version_1_database_gets_passkey_names ... ok
test setup::tests::recover_needs_a_known_person ... ok
test db::tests::opens_twice_and_keeps_schema ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/abuse.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/abuse-5b62c855d6367504)

running 9 tests
test non_json_requests_are_refused ... ok
test oversized_bodies_are_refused ... ok
test open_prompts_are_capped ... ok
test junk_setup_tokens_are_refused_then_rate_limited ... ok
test bad_json_and_unknown_fields_are_refused ... ok
test forged_sessions_get_nowhere ... ok
test nothing_about_the_server_leaks_before_sign_in ... ok
test garbage_credentials_never_crash ... ok
test other_sites_cannot_act_for_you ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s

     Running tests/create.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/create-94fcea8192201cea)

running 6 tests
test an_expired_enrolment_token_is_refused ... ok
test an_earlier_first_owner_token_stops_working ... ok
test names_must_be_usable_and_unique ... ok
test nothing_about_the_person_leaks_before_sign_in ... ok
test an_enrolment_token_works_exactly_once_under_a_storm ... ok
test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s

     Running tests/isolation.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/isolation-e5c44b0d42bee2d9)

running 3 tests
test a_cookie_sent_from_another_sites_page_does_not_count ... ok
test another_persons_passkey_prompt_cannot_be_used_or_cancelled ... ok
test devices_and_passkeys_of_another_person_are_not_found ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s

     Running tests/login.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/login-346109f79b33176b)

running 9 tests
test bearer_tokens_work_like_cookies ... ok
test a_sign_in_answer_cannot_be_replayed ... ok
test sign_in_with_a_passkey_creates_a_new_installation ... ok
test signing_in_shows_up_live_on_another_device ... ok
test sign_out_ends_the_session_immediately ... ok
test signing_out_shows_up_live_on_another_device ... ok
test revoking_another_device_signs_it_out ... ok
test an_unknown_passkey_is_refused ... ok
test sessions_expire_when_unused ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s

     Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/passkeys-841c914424a5e188)

running 7 tests
test the_same_device_cannot_be_added_twice ... ok
test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok
test an_empty_name_is_refused_and_a_long_one_is_cut ... ok
test adding_needs_a_sign_in_and_an_add_prompt_works_once ... ok
test a_removed_passkey_that_is_gone_or_unknown_is_not_found ... ok
test the_last_passkey_cannot_be_removed ... ok
test add_rename_and_remove_each_leave_a_journal_event ... ok

test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s

     Running tests/setup.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/setup-1d2b08d963b28fff)

running 8 tests
test first_owner_needs_a_name ... ok
test a_restart_replaces_the_first_owner_token ... ok
test a_finished_prompt_cannot_be_replayed ... ok
test session_cookie_is_locked_down ... ok
test first_owner_signs_up_with_the_printed_token ... ok
test recovery_adds_a_new_passkey_for_the_same_person ... ok
test a_token_works_exactly_once_under_a_storm ... ok
test an_expired_setup_token_is_refused ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_backdrops-e474982e40fe3a4d)

running 19 tests
test tests::an_upload_is_private_to_the_person_who_made_it ... ok
test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok
test tests::changes_need_our_own_page_and_a_signed_in_person ... ok
test tests::a_photo_unknown_to_us_is_looked_up ... ok
test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok
test tests::bad_ids_never_reach_the_disk_or_the_network ... ok
test tests::picking_is_reported_to_unsplash_once ... ok
test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet
test tests::pictures_from_other_hosts_are_refused ... ok
test tests::nobody_can_read_or_list_someone_elses_uploads ... ok
test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok
test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok
test tests::an_upload_is_kept_once_and_served_back ... ok
test tests::without_a_key_photos_are_off_but_uploads_work ... ok
test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok
test tests::the_same_search_is_answered_once ... ok
test tests::the_real_client_sends_the_key_and_caps_the_size ... ok
test tests::too_many_pixels_are_refused_but_big_files_are_not ... ok
test tests::the_cache_drops_the_oldest_files_past_its_cap ... ok

test result: ok. 18 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.04s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_core-22753e58953721f1)

running 7 tests
test action::tests::namespace_is_enforced ... ok
test error::tests::every_code_has_a_friendly_message ... ok
test batch::tests::stops_at_the_first_error ... ok
test journal::tests::tokens_round_trip ... ok
test batch::tests::visits_everything_once_in_order ... ok
test journal::tests::junk_tokens_ask_for_a_refresh ... ok
test plugin::tests::plugins_stay_in_their_namespace ... ok

test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_daily-253fcac5eaa1e5e5)

running 21 tests
test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok
test day::tests::midnight_follows_the_device_in_ist ... ok
test day::tests::titles_read_like_the_web_app ... ok
test day::tests::names_and_ids ... ok
test tests::shared_vectors ... ok
test tests::any_text_is_safe_to_read_and_plan ... ok
test tests::close_turns_one_open_entry_into_a_range ... ok
test times_tests::a_line_with_only_tags_stays_words ... ok
test times_tests::only_a_day_note_has_times ... ok
test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok
test tests::bad_input_is_refused_kindly ... ok
test times_tests::trailing_tags_on_any_line ... ok
test times_tests::any_line_is_safe ... ok
test tests::an_existing_day_file_is_reused_whatever_its_id ... ok
test tests::opening_the_same_day_at_once_makes_one_note ... ok
test tests::today_follows_the_device_offset ... ok
test tests::log_add_then_close_makes_a_range ... ok
test times_tests::a_log_line_splits_into_times_words_and_tags ... ok
test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok
test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok
test tests::no_file_until_the_first_keystroke ... ok

test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_engine-ff3aa4aa42431a1a)

running 13 tests
test hash::tests::key_order_does_not_matter_but_content_does ... ok
test tests::changes_need_a_key_reads_do_not ... ok
test tests::connected_follows_live_views ... ok
test tests::bad_input_and_unknown_actions_are_friendly ... ok
test tests::a_plugin_cannot_write_outside_its_namespace ... ok
test tests::journal_pages_continue_where_they_stopped ... ok
test tests::a_retry_runs_once_and_replays_the_result ... ok
test tests::users_never_see_each_other ... ok
test tests::identical_calls_at_the_same_moment_run_once ... ok
test tests::no_write_is_lost_while_users_are_released_and_reopened ... ok
test tests::a_huge_job_never_delays_anyone ... ok
test tests::a_user_with_a_live_view_or_a_running_action_is_kept ... ok
test tests::an_idle_user_is_released_and_comes_back_with_nothing_lost ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.51s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fixtures-6f98542429b58355)

running 4 tests
test dates::tests::round_trips_and_formats ... ok
test rng::tests::same_seed_same_numbers ... ok
test tests::same_seed_same_bytes_other_seed_other_bytes ... ok
test tests::looks_like_a_real_home ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fixtures-f234eac8403fa749)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fsio-0087f3cf3ed3c80d)

running 9 tests
test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok
test tests::names_fold_case_and_unicode_form ... ok
test tests::failed_write_keeps_the_old_file ... ok
test tests::only_one_process_owns_a_data_folder ... ok
test tests::case_only_rename_works_and_other_clashes_are_refused ... ok
test tests::unique_names_skip_case_and_form_clashes ... ok
test tests::prepared_writes_land_only_when_placed ... ok
test tests::write_unless_changed_keeps_someone_elses_version ... ok
test tests::big_writes_arrive_whole ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_memory-3b65467e6e94a530)

running 2 tests
test tests::huge_pages_go_off ... ok
test tests::trimming_is_harmless ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_migrate_v0-bd794bebe756a3e2)

running 36 tests
test tests::rules::dry_run_writes_nothing ... ok
test tests::rules::m1_custom_daily_title_and_heading_stay ... ok
test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok
test tests::rules::m10_tz_markers_go_and_other_zones_convert_to_the_notes_zone ... ok
test tests::rules::edited_files_are_never_overwritten_without_asking ... ok
test tests::rules::m2_code_is_never_rewritten ... ok
test tests::rules::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok
test tests::rules::m2_wikilinks_always_become_standard_links ... ok
test tests::rules::m1_daily_notes_get_day_names_ids_and_lose_generated_headings ... ok
test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok
test tests::rules::m2_attachments_that_exist_are_copied_and_relinked ... ok
test tests::units::links_parse_in_every_shape ... ok
test tests::rules::m8_only_notes_and_linked_files_move ... ok
test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok
test tests::rules::m6_conflict_copies_are_not_migrated ... ok
test tests::units::unix_times_become_india_time ... ok
test tzmarker::tests::a_conversion_that_leaves_the_day_is_kept_and_reported ... ok
test tzmarker::tests::code_is_never_touched ... ok
test tests::rules::m5_unreadable_dates_fall_back ... ok
test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok
test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok
test tzmarker::tests::berlin_converts_inside_the_day ... ok
test tests::rules::m7_tasks_blocks_are_stripped_and_listed ... ok
test tests::units::file_names_give_titles ... ok
test tests::units::every_v0_time_shape_converts ... ok
test tzmarker::tests::day_from_a_date_value ... ok
test tzmarker::tests::eu_summer_time_edges ... ok
test tzmarker::tests::no_zone_in_the_note_means_strip_only ... ok
test tzmarker::tests::marker_at_the_end_or_tight_leaves_no_stray_space ... ok
test tzmarker::tests::not_a_marker_is_left_alone ... ok
test tzmarker::tests::same_zone_just_goes ... ok
test tzmarker::tests::second_run_changes_nothing ... ok
test tzmarker::tests::styles_survive_conversion ... ok
test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... ok
test tests::rules::running_twice_gives_the_same_bytes ... ok
test tests::no_new_markers::nothing_writes_a_tz_marker ... ok

test result: ok. 36 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_notes-deecfda7a8462cc2)

running 199 tests
test anchor::tests::lines_by_utf16_index ... ok
test anchor::tests::hash_is_plain_sha256_hex ... ok
test backlinks::tests::links_are_fold_keys_and_lines ... ok
test blocks::tests::finds_list_children_and_heading_sections ... ok
test backlinks::tests::snippets_are_the_trimmed_line ... ok
test blocks::tests::line_edits ... ok
test blocks::tests::titles_from_the_first_sentence ... ok
test blocks::tests::shapes_keep_markers ... ok
test diff::tests::an_inserted_line_starts_at_a_line_start ... ok
test frontmatter::tests::reads_keys ... ok
test diff::tests::small_change_is_a_small_edit ... ok
test frontmatter::tests::set_adds_a_line_or_a_block ... ok
test bulk::undo::tests::inverse_restores_the_text ... ok
test frontmatter::tests::h1_skips_code_and_frontmatter ... ok
test diff::tests::emoji_positions_are_utf16 ... ok
test frontmatter::tests::set_is_utf16_aware ... ok
test frontmatter::tests::set_changes_only_the_value ... ok
test index::tests::a_shared_path_answers_with_the_newest_note ... ok
test index::tests::reload_speed ... ignored
test frontmatter::tests::quoting ... ok
test index::tests::a_torn_tail_cannot_swallow_the_next_durable_mapping ... ok
test index::tests::compacts_when_it_grows ... ok
test links::tests::finds_standard_and_old_style_links ... ok
test index::tests::under_finds_exact_paths_and_descendants_with_folded_names ... ok
test index::tests::survives_reload_renames_and_torn_lines ... ok
test history::tests::appends_are_ordered_and_readable ... ok
test links::tests::nested_brackets_in_text ... ok
test history::tests::pending_save_promotes_to_base ... ok
test links::tests::relative_paths ... ok
test links::tests::resolves_relative_to_the_linking_note ... ok
test links::tests::retarget_follows_the_title_and_keeps_custom_text ... ok
test links::tests::retarget_matches_case_and_unicode_forms ... ok
test links::tests::retarget_from_a_subfolder ... ok
test links::tests::skips_code_images_and_the_web ... ok
test meta::tests::cursors_round_trip_and_reject_junk ... ok
test meta::tests::snippets_skip_frontmatter_and_headings ... ok
test rename::tests::daily_names ... ok
test rename::tests::h1_is_set_or_added ... ok
test room::acks::tests::varuints_round_trip ... ok
test room::edit::tests::checks_bounds_overlap_and_surrogates ... ok
test scan::tests::day_ids_name_their_files ... ok
test search::tests::plain_search_lines_borrow_their_text ... ok
test search::tests::search_lines_keep_link_text_and_replacement_order ... ok
test scan::tests::state_round_trips_and_skips_odd_names ... ok
test search::tests::a_note_becomes_a_document ... ok
test index::tests::unloads_and_reloads ... ok
test smartline::tests::a_plain_line ... ok
test search::tests::titles_fall_back_to_the_file_name ... ok
test tags::front::tests::every_way_of_writing_tags ... ok
test smartline::tests::only_tags_are_words ... ok
test stamp::tests::formats_with_offset ... ok
test smartline::tests::trailing_tags_only ... ok
test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok
test tags::merge::tests::text_tags_go_with_one_space ... ok
test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok
test tags::rewrite::tests::positions_count_utf16 ... ok
test tags::rewrite::tests::properties_change_name_only ... ok
test tags::rewrite::tests::renames_tags_and_nested_tags_only ... ok
test tags::rewrite::tests::renaming_onto_an_existing_tag_merges ... ok
test tags::rewrite::tests::words_code_links_and_headings ... ok
test tags::scan::tests::code_is_never_tags ... ok
test tags::scan::tests::headings_and_quotes_keep_their_tags ... ok
test index::tests::under_keeps_shadowed_paths_for_watcher_removal ... ok
test tags::scan::tests::hash_free_lines_still_open_and_close_code_fences ... ok
test tags::scan::tests::link_targets_and_addresses_are_never_tags ... ok
test tags::scan::tests::not_tags ... ok
test tags::scan::tests::plain_tags ... ok
test tags::tests::nesting_and_cleaning ... ok
test tags::tests::properties_and_text ... ok
test bulk::undo::tests::inverse_roundtrips ... ok
test rename::tests::clash_numbers ... ok
test diff::tests::edits_turn_old_into_new ... ok
test diff::tests::edits_never_split_a_character ... ok
test tests::acks::an_older_lineage_is_refused_before_anything_is_sent ... ok
test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok
test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok
test tests::acks::checks_are_answered_in_order ... ok
test tests::acks::saved_means_the_change_is_in_history ... ok
test tests::acks::lineage_survives_a_restart ... ok
test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok
test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok
test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... ok
test index::tests::answers_like_plain_maps ... ok
test tests::kill9::child ... ok
test index::tests::directory_counts_match_full_scan_after_moves_and_reload ... ok
test tests::anchors::history_folds_typing_and_names_jobs ... ok
test tests::fanout::bursts_converge_and_reach_history ... ok
test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok
test tests::fanout::a_version_always_matches_its_text ... ok
test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok
test tests::kill9::permanent_delete_after_restore_cannot_delete_the_live_note ... ok
test tests::kill9::restore_delete_forget_does_not_resurrect_after_kill ... ok
test tests::kill9::restore_killed_after_its_answer_finishes_once ... ok
test tags::rewrite::tests::only_real_tags_change ... ok
test tests::kill9::delete_killed_after_its_answer_finishes_once ... ok
test tests::kill9::quick_delete_restore_survives_kill ... ok
test tests::listing::filters_by_tag_kind_and_created_range ... ok
test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok
test tests::kill9::quick_restore_delete_survives_kill ... ok
test tests::listing::pages_cover_every_note_once_in_a_stable_order ... ok
test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok
test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok
test tests::opening::identifying_an_already_indexed_file_never_makes_it_a_copy ... ok
test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok
test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok
test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok
test tests::fanout::collaborators_see_typing_before_the_disk ... ok
test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... ok
test tests::outside::missed_watcher_event_is_caught_before_saving ... ok
test tests::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok
test tests::outside::edit_while_closed_is_merged_on_open ... ok
test tests::opening::shutting_down_leaves_the_list_log_empty ... ok
test tests::opening::typing_saved_only_in_history_survives_a_restart_before_the_first_save ... ok
test tests::outside::outside_edit_while_typing_merges ... ok
test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok
test tests::peek::reads_files_without_opening_rooms ... ok
test tests::peek::an_open_room_answers_with_its_live_text ... ok
test tests::pending::apply_places_changes_in_any_order ... ok
test tests::outside::copied_note_gets_a_fresh_id ... ok
test tests::pending::yrs_alone_loses_a_parked_change ... ok
test tests::peek::returns_at_most_fifty ... ok
test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok
test tests::outside::outside_create_and_delete ... ok
test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok
test tests::renames::make_note_moves_the_block_and_undoes_as_one_step ... ok
test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok
test tests::renames::backlinks_list_linked_and_unlinked_mentions ... ok
test tests::renames::move_block_to_another_note_and_back ... ok
test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok
test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok
test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok
test tests::rooms::late_joiner_gets_full_state ... ok
test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok
test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok
test tests::rooms::patches_use_utf16_positions ... ok
test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok
test tests::rooms::retried_create_makes_one_note ... ok
test tests::rooms::retried_change_applies_once ... ok
test tests::renames::rename_moves_the_file_and_repoints_every_link ... ok
test tests::saving::a_write_error_keeps_the_change ... ok
test tests::rooms::stale_replace_keeps_newer_typing ... ok
test tests::rooms::typing_survives_a_concurrent_delete ... ok
test tests::saving::failed_save_keeps_the_change ... ok
test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok
test tests::saving::line_endings_and_bom_are_kept ... ok
test tests::outside::outside_rename_keeps_the_id ... ok
test tests::saving::first_keystroke_creates_the_file ... ok
test tests::renames::backlinks_follow_edits_and_deletes ... ok
test tests::saving::title_and_h1_stay_in_step ... ok
test tests::saving::crash_before_write_loses_nothing ... ok
test tests::saving::crash_after_write_does_not_double_text ... ok
test tests::listing::the_kept_count_follows_adds_and_deletes ... ok
test tests::tags::bad_names_are_refused ... ok
test tests::saving::opening_never_writes ... ok
test tests::outside::own_saves_are_not_outside_edits ... ok
test tests::outside::polling_finds_outside_changes ... ok
test tests::tags::typing_during_a_tag_rename_is_kept ... ok
test tests::trash::a_closed_note_is_trashed_without_opening_it ... ok
test tests::saving::an_error_after_the_write_does_not_double_text ... ok
test tests::trash::a_never_typed_note_is_simply_forgotten ... ok
test tests::trash::delete_and_restore_answer_once_per_job_id ... ok
test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok
test tests::trash::a_note_deleted_before_its_first_save_keeps_its_text ... ok
test tests::trash::delete_replay_with_a_stale_index_keeps_the_only_file ... ok
test tests::trash::delete_moves_to_trash_and_undo_brings_it_back ... ok
test tests::trash::half_written_trash_folders_never_hide_a_live_note ... ok
test tests::trash::a_file_deleted_outside_goes_to_the_trash ... ok
test tests::trash::forget_deletes_file_and_history_forever ... ok
test tests::trash::restore_durably_indexes_a_note_without_an_embedded_id ... ok
test tests::trash::folder_rename_and_outside_move_bursts_keep_every_descendant ... ok
test tests::trash::restore_with_a_stale_index_really_moves_the_file_back ... ok
test tests::trash::the_sweep_empties_only_notes_older_than_thirty_days ... ok
test tests::trash::restore_keeps_id_and_history_and_takes_a_free_name ... ok
test tests::trash::trash_ids_never_reach_another_home ... ok
test tests::saving::saving_does_not_loop ... ok
test tests::trash::trash_pages_newest_first ... ok
test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok
test tests::trash::trashed_notes_leave_search_lists_and_backlinks_and_come_back ... ok
test text::tests::mixed_endings_take_the_majority ... ok
test text::tests::styles_round_trip ... ok
test text::tests::uniform_files_round_trip_exactly ... ok
test trash::tests::a_note_without_details_still_reads ... ok
test trash::tests::details_without_a_note_are_not_a_note ... ok
test trash::tests::missing_details_never_age_trash_from_the_notes_old_mtime ... ok
test versions::tests::folds_runs_by_author_kind_and_gap ... ok
test ydoc::tests::fork_and_merge_keeps_concurrent_typing ... ok
test ydoc::tests::reapplying_an_update_changes_nothing ... ok
test ydoc::tests::utf16_offsets ... ok
test tests::unloading::an_unused_home_unloads_and_answers_after ... ok
test tests::unloading::a_connected_client_keeps_it ... ok
test tests::unloading::an_open_note_keeps_it ... ok
test tests::saving::nonstop_typing_still_saves ... ok
test tests::tags::a_big_tag_rename_never_stalls_typing ... ok
test tests::writers::every_writer_at_once_with_the_watcher ... ok
test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok
test tests::storm::outside_rewrites_during_a_storm_all_land ... ok
Gate output verbatim at head be555c1dfc1f1da75ac8bb9c74b3cadf3fcf793b, part 1/2. Local heavy commands used the required build-slot wrapper and four Cargo jobs. ```text cargo fmt --all --check exit=0 cargo clippy --workspace --all-targets -- -D warnings Checking calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/notes) Checking calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/daily) Checking calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/perf) Checking calternal v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/calternal) Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.57s exit=0 cargo test --workspace Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/notes) Compiling calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/daily) Compiling calternal v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/calternal) Compiling calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/perf) Finished `test` profile [unoptimized + debuginfo] target(s) in 15.22s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal-0e2524b9e83bd935) running 11 tests test args::tests::defaults_and_flags ... ok test args::tests::origin_defaults_to_the_local_port ... ok test args::tests::fix_commands ... ok test args::tests::migrate_v0 ... ok test args::tests::user_create ... ok test args::tests::web_folder ... ok test args::tests::dev_user_never_on_a_public_address ... ok test args::tests::user_recover ... ok test plugins::tests::contract_matches_the_server ... ok test isolation::bob_reaches_nothing_of_alices_through_any_action ... ok test isolation::bob_cannot_join_alices_note_room ... ok test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/fix_tz_live-bc5a4bf6584d2af7) running 2 tests test fix_without_a_running_server_says_so ... ok test strip_tz_markers_on_a_live_home_with_a_client_typing ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_crash-93cd7b159b871449) running 2 tests test kill_nine_mid_tag_rename_renames_each_tag_once ... ok test kill_nine_never_loses_or_doubles ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.51s Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_crash_typing-5a864935c1e5064a) running 1 test test kill_nine_while_people_type_loses_and_doubles_nothing ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.37s Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_live-c8da14e6fd2209fb) running 2 tests test joining_a_missing_note_fails_politely ... ok test type_over_the_websocket_and_read_it_back ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s Running tests/prefs_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/prefs_live-bdf7e4ca59cd64dc) running 1 test test preferences_are_saved_checked_and_kept ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s Running tests/search_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/search_live-d2de52bf0874bbe2) running 1 test test notes_from_everywhere_are_found ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.08s Running tests/startup.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/startup-c9f9cd5b7d6ab6fa) running 5 tests test a_new_server_prints_a_setup_token ... ok test recover_only_knows_real_people ... ok test refuses_dev_user_on_a_public_address ... ok test refuses_plain_http_on_a_public_origin ... ok test answers_within_budget ... ok test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_auth-5e8eb246e070ea06) running 12 tests test config::tests::origins ... ok test limit::tests::stops_after_the_limit ... ok test passkeys::tests::ids_round_trip ... ok test passkeys::tests::names_are_trimmed_short_and_never_empty ... ok test session::tests::names_are_cleaned ... ok test setup::tests::names ... ok test setup::tests::usernames ... ok test token::tests::setup_tokens_round_trip_through_pasting ... ok test token::tests::junk_is_not_a_token ... ok test db::tests::a_version_1_database_gets_passkey_names ... ok test setup::tests::recover_needs_a_known_person ... ok test db::tests::opens_twice_and_keeps_schema ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running tests/abuse.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/abuse-5b62c855d6367504) running 9 tests test non_json_requests_are_refused ... ok test oversized_bodies_are_refused ... ok test open_prompts_are_capped ... ok test junk_setup_tokens_are_refused_then_rate_limited ... ok test bad_json_and_unknown_fields_are_refused ... ok test forged_sessions_get_nowhere ... ok test nothing_about_the_server_leaks_before_sign_in ... ok test garbage_credentials_never_crash ... ok test other_sites_cannot_act_for_you ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s Running tests/create.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/create-94fcea8192201cea) running 6 tests test an_expired_enrolment_token_is_refused ... ok test an_earlier_first_owner_token_stops_working ... ok test names_must_be_usable_and_unique ... ok test nothing_about_the_person_leaks_before_sign_in ... ok test an_enrolment_token_works_exactly_once_under_a_storm ... ok test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s Running tests/isolation.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/isolation-e5c44b0d42bee2d9) running 3 tests test a_cookie_sent_from_another_sites_page_does_not_count ... ok test another_persons_passkey_prompt_cannot_be_used_or_cancelled ... ok test devices_and_passkeys_of_another_person_are_not_found ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s Running tests/login.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/login-346109f79b33176b) running 9 tests test bearer_tokens_work_like_cookies ... ok test a_sign_in_answer_cannot_be_replayed ... ok test sign_in_with_a_passkey_creates_a_new_installation ... ok test signing_in_shows_up_live_on_another_device ... ok test sign_out_ends_the_session_immediately ... ok test signing_out_shows_up_live_on_another_device ... ok test revoking_another_device_signs_it_out ... ok test an_unknown_passkey_is_refused ... ok test sessions_expire_when_unused ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/passkeys-841c914424a5e188) running 7 tests test the_same_device_cannot_be_added_twice ... ok test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok test an_empty_name_is_refused_and_a_long_one_is_cut ... ok test adding_needs_a_sign_in_and_an_add_prompt_works_once ... ok test a_removed_passkey_that_is_gone_or_unknown_is_not_found ... ok test the_last_passkey_cannot_be_removed ... ok test add_rename_and_remove_each_leave_a_journal_event ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s Running tests/setup.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/setup-1d2b08d963b28fff) running 8 tests test first_owner_needs_a_name ... ok test a_restart_replaces_the_first_owner_token ... ok test a_finished_prompt_cannot_be_replayed ... ok test session_cookie_is_locked_down ... ok test first_owner_signs_up_with_the_printed_token ... ok test recovery_adds_a_new_passkey_for_the_same_person ... ok test a_token_works_exactly_once_under_a_storm ... ok test an_expired_setup_token_is_refused ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_backdrops-e474982e40fe3a4d) running 19 tests test tests::an_upload_is_private_to_the_person_who_made_it ... ok test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok test tests::changes_need_our_own_page_and_a_signed_in_person ... ok test tests::a_photo_unknown_to_us_is_looked_up ... ok test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok test tests::bad_ids_never_reach_the_disk_or_the_network ... ok test tests::picking_is_reported_to_unsplash_once ... ok test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet test tests::pictures_from_other_hosts_are_refused ... ok test tests::nobody_can_read_or_list_someone_elses_uploads ... ok test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok test tests::an_upload_is_kept_once_and_served_back ... ok test tests::without_a_key_photos_are_off_but_uploads_work ... ok test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok test tests::the_same_search_is_answered_once ... ok test tests::the_real_client_sends_the_key_and_caps_the_size ... ok test tests::too_many_pixels_are_refused_but_big_files_are_not ... ok test tests::the_cache_drops_the_oldest_files_past_its_cap ... ok test result: ok. 18 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.04s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_core-22753e58953721f1) running 7 tests test action::tests::namespace_is_enforced ... ok test error::tests::every_code_has_a_friendly_message ... ok test batch::tests::stops_at_the_first_error ... ok test journal::tests::tokens_round_trip ... ok test batch::tests::visits_everything_once_in_order ... ok test journal::tests::junk_tokens_ask_for_a_refresh ... ok test plugin::tests::plugins_stay_in_their_namespace ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_daily-253fcac5eaa1e5e5) running 21 tests test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok test day::tests::midnight_follows_the_device_in_ist ... ok test day::tests::titles_read_like_the_web_app ... ok test day::tests::names_and_ids ... ok test tests::shared_vectors ... ok test tests::any_text_is_safe_to_read_and_plan ... ok test tests::close_turns_one_open_entry_into_a_range ... ok test times_tests::a_line_with_only_tags_stays_words ... ok test times_tests::only_a_day_note_has_times ... ok test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok test tests::bad_input_is_refused_kindly ... ok test times_tests::trailing_tags_on_any_line ... ok test times_tests::any_line_is_safe ... ok test tests::an_existing_day_file_is_reused_whatever_its_id ... ok test tests::opening_the_same_day_at_once_makes_one_note ... ok test tests::today_follows_the_device_offset ... ok test tests::log_add_then_close_makes_a_range ... ok test times_tests::a_log_line_splits_into_times_words_and_tags ... ok test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok test tests::no_file_until_the_first_keystroke ... ok test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_engine-ff3aa4aa42431a1a) running 13 tests test hash::tests::key_order_does_not_matter_but_content_does ... ok test tests::changes_need_a_key_reads_do_not ... ok test tests::connected_follows_live_views ... ok test tests::bad_input_and_unknown_actions_are_friendly ... ok test tests::a_plugin_cannot_write_outside_its_namespace ... ok test tests::journal_pages_continue_where_they_stopped ... ok test tests::a_retry_runs_once_and_replays_the_result ... ok test tests::users_never_see_each_other ... ok test tests::identical_calls_at_the_same_moment_run_once ... ok test tests::no_write_is_lost_while_users_are_released_and_reopened ... ok test tests::a_huge_job_never_delays_anyone ... ok test tests::a_user_with_a_live_view_or_a_running_action_is_kept ... ok test tests::an_idle_user_is_released_and_comes_back_with_nothing_lost ... ok test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.51s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fixtures-6f98542429b58355) running 4 tests test dates::tests::round_trips_and_formats ... ok test rng::tests::same_seed_same_numbers ... ok test tests::same_seed_same_bytes_other_seed_other_bytes ... ok test tests::looks_like_a_real_home ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fixtures-f234eac8403fa749) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fsio-0087f3cf3ed3c80d) running 9 tests test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok test tests::names_fold_case_and_unicode_form ... ok test tests::failed_write_keeps_the_old_file ... ok test tests::only_one_process_owns_a_data_folder ... ok test tests::case_only_rename_works_and_other_clashes_are_refused ... ok test tests::unique_names_skip_case_and_form_clashes ... ok test tests::prepared_writes_land_only_when_placed ... ok test tests::write_unless_changed_keeps_someone_elses_version ... ok test tests::big_writes_arrive_whole ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_memory-3b65467e6e94a530) running 2 tests test tests::huge_pages_go_off ... ok test tests::trimming_is_harmless ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_migrate_v0-bd794bebe756a3e2) running 36 tests test tests::rules::dry_run_writes_nothing ... ok test tests::rules::m1_custom_daily_title_and_heading_stay ... ok test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok test tests::rules::m10_tz_markers_go_and_other_zones_convert_to_the_notes_zone ... ok test tests::rules::edited_files_are_never_overwritten_without_asking ... ok test tests::rules::m2_code_is_never_rewritten ... ok test tests::rules::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok test tests::rules::m2_wikilinks_always_become_standard_links ... ok test tests::rules::m1_daily_notes_get_day_names_ids_and_lose_generated_headings ... ok test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok test tests::rules::m2_attachments_that_exist_are_copied_and_relinked ... ok test tests::units::links_parse_in_every_shape ... ok test tests::rules::m8_only_notes_and_linked_files_move ... ok test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok test tests::rules::m6_conflict_copies_are_not_migrated ... ok test tests::units::unix_times_become_india_time ... ok test tzmarker::tests::a_conversion_that_leaves_the_day_is_kept_and_reported ... ok test tzmarker::tests::code_is_never_touched ... ok test tests::rules::m5_unreadable_dates_fall_back ... ok test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok test tzmarker::tests::berlin_converts_inside_the_day ... ok test tests::rules::m7_tasks_blocks_are_stripped_and_listed ... ok test tests::units::file_names_give_titles ... ok test tests::units::every_v0_time_shape_converts ... ok test tzmarker::tests::day_from_a_date_value ... ok test tzmarker::tests::eu_summer_time_edges ... ok test tzmarker::tests::no_zone_in_the_note_means_strip_only ... ok test tzmarker::tests::marker_at_the_end_or_tight_leaves_no_stray_space ... ok test tzmarker::tests::not_a_marker_is_left_alone ... ok test tzmarker::tests::same_zone_just_goes ... ok test tzmarker::tests::second_run_changes_nothing ... ok test tzmarker::tests::styles_survive_conversion ... ok test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... ok test tests::rules::running_twice_gives_the_same_bytes ... ok test tests::no_new_markers::nothing_writes_a_tz_marker ... ok test result: ok. 36 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_notes-deecfda7a8462cc2) running 199 tests test anchor::tests::lines_by_utf16_index ... ok test anchor::tests::hash_is_plain_sha256_hex ... ok test backlinks::tests::links_are_fold_keys_and_lines ... ok test blocks::tests::finds_list_children_and_heading_sections ... ok test backlinks::tests::snippets_are_the_trimmed_line ... ok test blocks::tests::line_edits ... ok test blocks::tests::titles_from_the_first_sentence ... ok test blocks::tests::shapes_keep_markers ... ok test diff::tests::an_inserted_line_starts_at_a_line_start ... ok test frontmatter::tests::reads_keys ... ok test diff::tests::small_change_is_a_small_edit ... ok test frontmatter::tests::set_adds_a_line_or_a_block ... ok test bulk::undo::tests::inverse_restores_the_text ... ok test frontmatter::tests::h1_skips_code_and_frontmatter ... ok test diff::tests::emoji_positions_are_utf16 ... ok test frontmatter::tests::set_is_utf16_aware ... ok test frontmatter::tests::set_changes_only_the_value ... ok test index::tests::a_shared_path_answers_with_the_newest_note ... ok test index::tests::reload_speed ... ignored test frontmatter::tests::quoting ... ok test index::tests::a_torn_tail_cannot_swallow_the_next_durable_mapping ... ok test index::tests::compacts_when_it_grows ... ok test links::tests::finds_standard_and_old_style_links ... ok test index::tests::under_finds_exact_paths_and_descendants_with_folded_names ... ok test index::tests::survives_reload_renames_and_torn_lines ... ok test history::tests::appends_are_ordered_and_readable ... ok test links::tests::nested_brackets_in_text ... ok test history::tests::pending_save_promotes_to_base ... ok test links::tests::relative_paths ... ok test links::tests::resolves_relative_to_the_linking_note ... ok test links::tests::retarget_follows_the_title_and_keeps_custom_text ... ok test links::tests::retarget_matches_case_and_unicode_forms ... ok test links::tests::retarget_from_a_subfolder ... ok test links::tests::skips_code_images_and_the_web ... ok test meta::tests::cursors_round_trip_and_reject_junk ... ok test meta::tests::snippets_skip_frontmatter_and_headings ... ok test rename::tests::daily_names ... ok test rename::tests::h1_is_set_or_added ... ok test room::acks::tests::varuints_round_trip ... ok test room::edit::tests::checks_bounds_overlap_and_surrogates ... ok test scan::tests::day_ids_name_their_files ... ok test search::tests::plain_search_lines_borrow_their_text ... ok test search::tests::search_lines_keep_link_text_and_replacement_order ... ok test scan::tests::state_round_trips_and_skips_odd_names ... ok test search::tests::a_note_becomes_a_document ... ok test index::tests::unloads_and_reloads ... ok test smartline::tests::a_plain_line ... ok test search::tests::titles_fall_back_to_the_file_name ... ok test tags::front::tests::every_way_of_writing_tags ... ok test smartline::tests::only_tags_are_words ... ok test stamp::tests::formats_with_offset ... ok test smartline::tests::trailing_tags_only ... ok test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok test tags::merge::tests::text_tags_go_with_one_space ... ok test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok test tags::rewrite::tests::positions_count_utf16 ... ok test tags::rewrite::tests::properties_change_name_only ... ok test tags::rewrite::tests::renames_tags_and_nested_tags_only ... ok test tags::rewrite::tests::renaming_onto_an_existing_tag_merges ... ok test tags::rewrite::tests::words_code_links_and_headings ... ok test tags::scan::tests::code_is_never_tags ... ok test tags::scan::tests::headings_and_quotes_keep_their_tags ... ok test index::tests::under_keeps_shadowed_paths_for_watcher_removal ... ok test tags::scan::tests::hash_free_lines_still_open_and_close_code_fences ... ok test tags::scan::tests::link_targets_and_addresses_are_never_tags ... ok test tags::scan::tests::not_tags ... ok test tags::scan::tests::plain_tags ... ok test tags::tests::nesting_and_cleaning ... ok test tags::tests::properties_and_text ... ok test bulk::undo::tests::inverse_roundtrips ... ok test rename::tests::clash_numbers ... ok test diff::tests::edits_turn_old_into_new ... ok test diff::tests::edits_never_split_a_character ... ok test tests::acks::an_older_lineage_is_refused_before_anything_is_sent ... ok test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok test tests::acks::checks_are_answered_in_order ... ok test tests::acks::saved_means_the_change_is_in_history ... ok test tests::acks::lineage_survives_a_restart ... ok test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... ok test index::tests::answers_like_plain_maps ... ok test tests::kill9::child ... ok test index::tests::directory_counts_match_full_scan_after_moves_and_reload ... ok test tests::anchors::history_folds_typing_and_names_jobs ... ok test tests::fanout::bursts_converge_and_reach_history ... ok test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok test tests::fanout::a_version_always_matches_its_text ... ok test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok test tests::kill9::permanent_delete_after_restore_cannot_delete_the_live_note ... ok test tests::kill9::restore_delete_forget_does_not_resurrect_after_kill ... ok test tests::kill9::restore_killed_after_its_answer_finishes_once ... ok test tags::rewrite::tests::only_real_tags_change ... ok test tests::kill9::delete_killed_after_its_answer_finishes_once ... ok test tests::kill9::quick_delete_restore_survives_kill ... ok test tests::listing::filters_by_tag_kind_and_created_range ... ok test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok test tests::kill9::quick_restore_delete_survives_kill ... ok test tests::listing::pages_cover_every_note_once_in_a_stable_order ... ok test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok test tests::opening::identifying_an_already_indexed_file_never_makes_it_a_copy ... ok test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok test tests::fanout::collaborators_see_typing_before_the_disk ... ok test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... ok test tests::outside::missed_watcher_event_is_caught_before_saving ... ok test tests::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok test tests::outside::edit_while_closed_is_merged_on_open ... ok test tests::opening::shutting_down_leaves_the_list_log_empty ... ok test tests::opening::typing_saved_only_in_history_survives_a_restart_before_the_first_save ... ok test tests::outside::outside_edit_while_typing_merges ... ok test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok test tests::peek::reads_files_without_opening_rooms ... ok test tests::peek::an_open_room_answers_with_its_live_text ... ok test tests::pending::apply_places_changes_in_any_order ... ok test tests::outside::copied_note_gets_a_fresh_id ... ok test tests::pending::yrs_alone_loses_a_parked_change ... ok test tests::peek::returns_at_most_fifty ... ok test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok test tests::outside::outside_create_and_delete ... ok test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok test tests::renames::make_note_moves_the_block_and_undoes_as_one_step ... ok test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok test tests::renames::backlinks_list_linked_and_unlinked_mentions ... ok test tests::renames::move_block_to_another_note_and_back ... ok test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok test tests::rooms::late_joiner_gets_full_state ... ok test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok test tests::rooms::patches_use_utf16_positions ... ok test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok test tests::rooms::retried_create_makes_one_note ... ok test tests::rooms::retried_change_applies_once ... ok test tests::renames::rename_moves_the_file_and_repoints_every_link ... ok test tests::saving::a_write_error_keeps_the_change ... ok test tests::rooms::stale_replace_keeps_newer_typing ... ok test tests::rooms::typing_survives_a_concurrent_delete ... ok test tests::saving::failed_save_keeps_the_change ... ok test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok test tests::saving::line_endings_and_bom_are_kept ... ok test tests::outside::outside_rename_keeps_the_id ... ok test tests::saving::first_keystroke_creates_the_file ... ok test tests::renames::backlinks_follow_edits_and_deletes ... ok test tests::saving::title_and_h1_stay_in_step ... ok test tests::saving::crash_before_write_loses_nothing ... ok test tests::saving::crash_after_write_does_not_double_text ... ok test tests::listing::the_kept_count_follows_adds_and_deletes ... ok test tests::tags::bad_names_are_refused ... ok test tests::saving::opening_never_writes ... ok test tests::outside::own_saves_are_not_outside_edits ... ok test tests::outside::polling_finds_outside_changes ... ok test tests::tags::typing_during_a_tag_rename_is_kept ... ok test tests::trash::a_closed_note_is_trashed_without_opening_it ... ok test tests::saving::an_error_after_the_write_does_not_double_text ... ok test tests::trash::a_never_typed_note_is_simply_forgotten ... ok test tests::trash::delete_and_restore_answer_once_per_job_id ... ok test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok test tests::trash::a_note_deleted_before_its_first_save_keeps_its_text ... ok test tests::trash::delete_replay_with_a_stale_index_keeps_the_only_file ... ok test tests::trash::delete_moves_to_trash_and_undo_brings_it_back ... ok test tests::trash::half_written_trash_folders_never_hide_a_live_note ... ok test tests::trash::a_file_deleted_outside_goes_to_the_trash ... ok test tests::trash::forget_deletes_file_and_history_forever ... ok test tests::trash::restore_durably_indexes_a_note_without_an_embedded_id ... ok test tests::trash::folder_rename_and_outside_move_bursts_keep_every_descendant ... ok test tests::trash::restore_with_a_stale_index_really_moves_the_file_back ... ok test tests::trash::the_sweep_empties_only_notes_older_than_thirty_days ... ok test tests::trash::restore_keeps_id_and_history_and_takes_a_free_name ... ok test tests::trash::trash_ids_never_reach_another_home ... ok test tests::saving::saving_does_not_loop ... ok test tests::trash::trash_pages_newest_first ... ok test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok test tests::trash::trashed_notes_leave_search_lists_and_backlinks_and_come_back ... ok test text::tests::mixed_endings_take_the_majority ... ok test text::tests::styles_round_trip ... ok test text::tests::uniform_files_round_trip_exactly ... ok test trash::tests::a_note_without_details_still_reads ... ok test trash::tests::details_without_a_note_are_not_a_note ... ok test trash::tests::missing_details_never_age_trash_from_the_notes_old_mtime ... ok test versions::tests::folds_runs_by_author_kind_and_gap ... ok test ydoc::tests::fork_and_merge_keeps_concurrent_typing ... ok test ydoc::tests::reapplying_an_update_changes_nothing ... ok test ydoc::tests::utf16_offsets ... ok test tests::unloading::an_unused_home_unloads_and_answers_after ... ok test tests::unloading::a_connected_client_keeps_it ... ok test tests::unloading::an_open_note_keeps_it ... ok test tests::saving::nonstop_typing_still_saves ... ok test tests::tags::a_big_tag_rename_never_stalls_typing ... ok test tests::writers::every_writer_at_once_with_the_watcher ... ok test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok test tests::storm::outside_rewrites_during_a_storm_all_land ... ok ```
Author
Owner

Gate output verbatim at head be555c1dfc, part 2/2. Local heavy commands used the required build-slot wrapper and four Cargo jobs.

test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok
test tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok
test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok

test result: ok. 198 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 6.31s

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_perf-1052020ed1871574)

running 6 tests
test args::tests::parses_trash_only_mode ... ok
test scenarios::soak::tests::slope_of_a_line ... ok
test stats::tests::summary_max_is_the_largest_observed_sample_across_runs ... ok
test stats::tests::medians_of_runs_and_pooled_singles ... ok
test scenarios::storm::tests::typing_stops_before_the_newline_ahead_of_outside_lines ... ok
test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/bin/storage-bench.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/storage_bench-aaee1f6d1cd60c74)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_plugin_hello-53ca8ca6107399a0)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_prefs-34d1a5e6c699003e)

running 9 tests
test tests::keys_are_an_area_then_dotted_parts ... ok
test tests::people_do_not_share_preferences ... ok
test tests::a_change_on_one_device_reaches_the_other ... ok
test tests::bad_keys_and_big_values_get_friendly_errors ... ok
test tests::a_retry_with_the_same_key_acts_once ... ok
test tests::set_then_get_and_survive_a_restart ... ok
test tests::quick_saves_from_two_devices_all_land ... ok
test tests::saving_the_same_value_again_is_quiet ... ok
test tests::at_most_200_keys_but_existing_ones_can_still_change ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_search-ff67ffa340bd9f12)

running 13 tests
test fuzzy::tests::distance_counts_swaps_as_one ... ok
test query::tests::dates_cover_whole_periods ... ok
test query::tests::lone_symbols_are_ignored ... ok
test fuzzy::tests::common_typos_are_fixed ... ok
test read::tests::block_ids_are_found ... ok
test query::tests::words_filters_and_phrases ... ok
test read::tests::renumbering_shifts_placeholders ... ok
test read::tests::excerpts_mark_matches_in_context ... ok
test text::tests::bigrams_cover_unspaced_scripts ... ok
test read::tests::text_matches_like_the_index ... ok
test text::tests::fold_drops_accents_and_case ... ok
test text::tests::words_keep_indic_vowel_signs ... ok
test schema::tests::an_older_index_gets_its_titles_filled ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/search.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/search-8eb084de93ee7287)

running 12 tests
test searches_answer_while_indexing_runs ... ok
test results_show_why_they_matched_and_where ... ok
test an_empty_search_shows_recent_things ... ok
test every_script_is_searchable ... ok
test titles_first_then_recent_use_then_body ... ok
test filters_by_tag_kind_and_date ... ok
test prefixes_and_typos_are_forgiven ... ok
test odd_input_never_breaks_search ... ok
test behind_answers_at_once_and_catching_up_is_announced_once ... ok
test people_only_ever_find_their_own_things ... ok
test a_restart_heals_whatever_was_missed ... ok
test the_index_follows_changes_live ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.08s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_server-b018c8f458805a08)

running 2 tests
test compress::tests::big_answers_are_compressed_and_small_ones_are_not ... ok
test rooms::tests::frames_round_trip ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/access.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/access-b270c95875ec56fa)

running 1 test
test one_line_per_request_with_no_secrets ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/live-2ebb72560f7b157e)

running 6 tests
test signed_out_calls_get_a_friendly_refusal ... ok
test health_answers_without_signing_in ... ok
test errors_carry_codes_not_internals ... ok
test a_stranger_token_asks_for_a_refresh ... ok
test http_to_journal_to_websocket ... ok
test reconnecting_catches_up_from_a_token ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

     Running tests/signout.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/signout-3993512dadca5b39)

running 1 test
test signing_a_device_out_closes_its_live_socket ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s

     Running tests/web.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/web-4c0ff73bf5023b52)

running 3 tests
test precompressed_files_are_sent_as_they_are_to_whoever_accepts_them ... ok
test files_deep_links_and_the_api_live_side_by_side ... ok
test caching_and_security_headers_follow_what_each_file_is ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_store-dc5119e9b339ecbc)

running 8 tests
test tests::a_store_with_a_listener_or_a_copy_is_in_use ... ok
test tests::commits_are_read_back_in_order ... ok
test tests::idempotency_is_saved_with_the_events_or_not_at_all ... ok
test tests::live_entries_arrive_in_journal_order ... ok
test tests::tokens_survive_a_restart_and_reject_strangers ... ok
test tests::reads_are_capped ... ok
test tests::old_idempotency_records_are_swept_when_the_store_opens ... ok
test tests::old_idempotency_records_are_swept_after_commits ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_testkit-84605cced32b9d05)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_auth

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_backdrops

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_core

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_daily

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_engine

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_fixtures

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_fsio

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_memory

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_migrate_v0

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_notes

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_plugin_hello

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_prefs

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_search

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_server

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_store

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_testkit

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

exit=0
Gate output verbatim at head be555c1dfc1f1da75ac8bb9c74b3cadf3fcf793b, part 2/2. Local heavy commands used the required build-slot wrapper and four Cargo jobs. ```text test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok test tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok test result: ok. 198 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 6.31s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_perf-1052020ed1871574) running 6 tests test args::tests::parses_trash_only_mode ... ok test scenarios::soak::tests::slope_of_a_line ... ok test stats::tests::summary_max_is_the_largest_observed_sample_across_runs ... ok test stats::tests::medians_of_runs_and_pooled_singles ... ok test scenarios::storm::tests::typing_stops_before_the_newline_ahead_of_outside_lines ... ok test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/bin/storage-bench.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/storage_bench-aaee1f6d1cd60c74) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_plugin_hello-53ca8ca6107399a0) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_prefs-34d1a5e6c699003e) running 9 tests test tests::keys_are_an_area_then_dotted_parts ... ok test tests::people_do_not_share_preferences ... ok test tests::a_change_on_one_device_reaches_the_other ... ok test tests::bad_keys_and_big_values_get_friendly_errors ... ok test tests::a_retry_with_the_same_key_acts_once ... ok test tests::set_then_get_and_survive_a_restart ... ok test tests::quick_saves_from_two_devices_all_land ... ok test tests::saving_the_same_value_again_is_quiet ... ok test tests::at_most_200_keys_but_existing_ones_can_still_change ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_search-ff67ffa340bd9f12) running 13 tests test fuzzy::tests::distance_counts_swaps_as_one ... ok test query::tests::dates_cover_whole_periods ... ok test query::tests::lone_symbols_are_ignored ... ok test fuzzy::tests::common_typos_are_fixed ... ok test read::tests::block_ids_are_found ... ok test query::tests::words_filters_and_phrases ... ok test read::tests::renumbering_shifts_placeholders ... ok test read::tests::excerpts_mark_matches_in_context ... ok test text::tests::bigrams_cover_unspaced_scripts ... ok test read::tests::text_matches_like_the_index ... ok test text::tests::fold_drops_accents_and_case ... ok test text::tests::words_keep_indic_vowel_signs ... ok test schema::tests::an_older_index_gets_its_titles_filled ... ok test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running tests/search.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/search-8eb084de93ee7287) running 12 tests test searches_answer_while_indexing_runs ... ok test results_show_why_they_matched_and_where ... ok test an_empty_search_shows_recent_things ... ok test every_script_is_searchable ... ok test titles_first_then_recent_use_then_body ... ok test filters_by_tag_kind_and_date ... ok test prefixes_and_typos_are_forgiven ... ok test odd_input_never_breaks_search ... ok test behind_answers_at_once_and_catching_up_is_announced_once ... ok test people_only_ever_find_their_own_things ... ok test a_restart_heals_whatever_was_missed ... ok test the_index_follows_changes_live ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.08s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_server-b018c8f458805a08) running 2 tests test compress::tests::big_answers_are_compressed_and_small_ones_are_not ... ok test rooms::tests::frames_round_trip ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/access.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/access-b270c95875ec56fa) running 1 test test one_line_per_request_with_no_secrets ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/live-2ebb72560f7b157e) running 6 tests test signed_out_calls_get_a_friendly_refusal ... ok test health_answers_without_signing_in ... ok test errors_carry_codes_not_internals ... ok test a_stranger_token_asks_for_a_refresh ... ok test http_to_journal_to_websocket ... ok test reconnecting_catches_up_from_a_token ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running tests/signout.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/signout-3993512dadca5b39) running 1 test test signing_a_device_out_closes_its_live_socket ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s Running tests/web.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/web-4c0ff73bf5023b52) running 3 tests test precompressed_files_are_sent_as_they_are_to_whoever_accepts_them ... ok test files_deep_links_and_the_api_live_side_by_side ... ok test caching_and_security_headers_follow_what_each_file_is ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_store-dc5119e9b339ecbc) running 8 tests test tests::a_store_with_a_listener_or_a_copy_is_in_use ... ok test tests::commits_are_read_back_in_order ... ok test tests::idempotency_is_saved_with_the_events_or_not_at_all ... ok test tests::live_entries_arrive_in_journal_order ... ok test tests::tokens_survive_a_restart_and_reject_strangers ... ok test tests::reads_are_capped ... ok test tests::old_idempotency_records_are_swept_when_the_store_opens ... ok test tests::old_idempotency_records_are_swept_after_commits ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_testkit-84605cced32b9d05) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_auth running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_backdrops running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_core running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_daily running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_engine running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_fixtures running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_fsio running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_memory running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_migrate_v0 running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_notes running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_plugin_hello running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_prefs running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_search running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_server running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_store running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_testkit running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s exit=0 ```
Author
Owner

Allocation-only full-server finding, HDD / 100k, one run per binary so far. The component speedup did not translate to a faster first whole-server sample. These samples were not adjacent, so they do not establish a regression or a gain; the interleaved matrix is needed. No correctness failures.

metric unit base p50 / p95 / max allocation-only p50 / p95 / max
cold.index s 47.510 / 47.510 / 47.510 54.423 / 54.423 / 54.423
search.catch_up s 120.543 / 120.543 / 120.543 146.974 / 146.974 / 146.974
journal.catch_up ms 792.925 / 792.925 / 792.925 1120.947 / 1120.947 / 1120.947
home.page_big ms 232.739 / 431.525 / 431.525 436.631 / 863.694 / 863.694
search.query ms 5.676 / 11.311 / 689.350 5.429 / 13.525 / 658.636
sync.save_ack ms 13.721 / 84.914 / 1218.771 15.702 / 55.007 / 1549.367
mem.idle MB 13.156 / 13.156 / 13.156 12.930 / 12.930 / 12.930
mem.peak MB 95.859 / 95.859 / 95.859 90.473 / 90.473 / 90.473

Both final patches are now built. Continuing all five before/after passes on both disks and sizes; no performance budget is being relaxed.

Allocation-only full-server finding, HDD / 100k, one run per binary so far. The component speedup did not translate to a faster first whole-server sample. These samples were not adjacent, so they do not establish a regression or a gain; the interleaved matrix is needed. No correctness failures. | metric | unit | base p50 / p95 / max | allocation-only p50 / p95 / max | |---|---|---:|---:| | cold.index | s | 47.510 / 47.510 / 47.510 | 54.423 / 54.423 / 54.423 | | search.catch_up | s | 120.543 / 120.543 / 120.543 | 146.974 / 146.974 / 146.974 | | journal.catch_up | ms | 792.925 / 792.925 / 792.925 | 1120.947 / 1120.947 / 1120.947 | | home.page_big | ms | 232.739 / 431.525 / 431.525 | 436.631 / 863.694 / 863.694 | | search.query | ms | 5.676 / 11.311 / 689.350 | 5.429 / 13.525 / 658.636 | | sync.save_ack | ms | 13.721 / 84.914 / 1218.771 | 15.702 / 55.007 / 1549.367 | | mem.idle | MB | 13.156 / 13.156 / 13.156 | 12.930 / 12.930 / 12.930 | | mem.peak | MB | 95.859 / 95.859 / 95.859 | 90.473 / 90.473 / 90.473 | Both final patches are now built. Continuing all five before/after passes on both disks and sizes; no performance budget is being relaxed.
Author
Owner

Build comparability finding: cargo tree shows that building only -p calternal enables fewer features than the baseline build selecting -p calternal -p calternal-perf -p calternal-fixtures. The differences are futures-util async-await/default/macro features and getrandom std/sys_rng. Both the allocation-only server sample and the first final-binary sample used the single-package build. Those server samples are invalid for before/after comparison and will be excluded from the final table, while retaining their evidence here. The standalone component benchmarks compare both functions in one binary, so those remain valid.

Rebuilding the final product with the exact baseline command and toolchain. A separate final matrix will run five valid passes per disk and size against that binary; baseline runs continue unchanged. The invalid after driver is being allowed to exit through a job-private harness wrapper that refuses its old binary. No process was killed. The old concurrency probe also refuses that invalid binary. Product head remains be555c1dfc. No gate or budget is weakened.

Build comparability finding: cargo tree shows that building only -p calternal enables fewer features than the baseline build selecting -p calternal -p calternal-perf -p calternal-fixtures. The differences are futures-util async-await/default/macro features and getrandom std/sys_rng. Both the allocation-only server sample and the first final-binary sample used the single-package build. Those server samples are invalid for before/after comparison and will be excluded from the final table, while retaining their evidence here. The standalone component benchmarks compare both functions in one binary, so those remain valid. Rebuilding the final product with the exact baseline command and toolchain. A separate final matrix will run five valid passes per disk and size against that binary; baseline runs continue unchanged. The invalid after driver is being allowed to exit through a job-private harness wrapper that refuses its old binary. No process was killed. The old concurrency probe also refuses that invalid binary. Product head remains be555c1dfc1f1da75ac8bb9c74b3cadf3fcf793b. No gate or budget is weakened.
Author
Owner

The matching release build passed with the exact baseline command: cargo build --release --locked -j4 -p calternal -p calternal-perf -p calternal-fixtures. Valid measurements now use the calternal-final binary and final-* reports; the earlier after-* reports are excluded. Product head is unchanged.

First valid SSD / 10k result, with baseline drift shown explicitly:

run cold.index s search.catch_up s mem.idle MB mem.peak MB
before-ssd-10000-1 2.252 6.016 13.254 40.543
before-ssd-10000-3 1.530 4.012 13.414 37.137
final-ssd-10000-1 1.498 4.026 13.230 35.488

No correctness failures, and this valid final run passed the existing SSD budgets. The unchanged baseline itself moved from 2.252 to 1.530 seconds for cold indexing and from 6.016 to 4.012 seconds for search catch-up. No whole-server speedup claim from the first pair; finishing all five interleaved passes.

The matching release build passed with the exact baseline command: cargo build --release --locked -j4 -p calternal -p calternal-perf -p calternal-fixtures. Valid measurements now use the calternal-final binary and final-* reports; the earlier after-* reports are excluded. Product head is unchanged. First valid SSD / 10k result, with baseline drift shown explicitly: | run | cold.index s | search.catch_up s | mem.idle MB | mem.peak MB | |---|---:|---:|---:|---:| | before-ssd-10000-1 | 2.252 | 6.016 | 13.254 | 40.543 | | before-ssd-10000-3 | 1.530 | 4.012 | 13.414 | 37.137 | | final-ssd-10000-1 | 1.498 | 4.026 | 13.230 | 35.488 | No correctness failures, and this valid final run passed the existing SSD budgets. The unchanged baseline itself moved from 2.252 to 1.530 seconds for cold indexing and from 6.016 to 4.012 seconds for search catch-up. No whole-server speedup claim from the first pair; finishing all five interleaved passes.
Author
Owner

Testing an isolated follow-up hypothesis before deciding whether it belongs on the branch: search profiling showed heavy allocator/futex contention with 16 background file readers sharing the deployed two malloc arenas. A candidate with four readers will be built using the exact baseline package selection and measured at HDD / 100k. This changes only a concurrency bound, not durability or user isolation. The candidate lives in a private VM source directory; branch head and the valid final matrix remain unchanged. If it does not improve whole-server results, it will be rejected and recorded here.

Testing an isolated follow-up hypothesis before deciding whether it belongs on the branch: search profiling showed heavy allocator/futex contention with 16 background file readers sharing the deployed two malloc arenas. A candidate with four readers will be built using the exact baseline package selection and measured at HDD / 100k. This changes only a concurrency bound, not durability or user isolation. The candidate lives in a private VM source directory; branch head and the valid final matrix remain unchanged. If it does not improve whole-server results, it will be rejected and recorded here.
Author
Owner

First valid final HDD / 100k comparison (preliminary; n=1 final, not a five-run conclusion):

metric unit baseline run 1 p50 / p95 / max baseline run 2 p50 / p95 / max final run 1 p50 / p95 / max
cold.index s 47.510 / 47.510 / 47.510 49.445 / 49.445 / 49.445 42.414 / 42.414 / 42.414
search.catch_up s 120.543 / 120.543 / 120.543 132.778 / 132.778 / 132.778 126.644 / 126.644 / 126.644
journal.catch_up ms 792.925 / 792.925 / 792.925 1116.822 / 1116.822 / 1116.822 638.251 / 638.251 / 638.251
sync.save_ack ms 13.721 / 84.914 / 1218.771 12.920 / 60.756 / 295.159 14.386 / 58.937 / 1995.020
storm.save_ack ms 44.949 / 129.829 / 293.256 46.756 / 131.014 / 285.369 41.442 / 111.034 / 381.548
mem.idle MB 13.156 / 13.156 / 13.156 13.051 / 13.051 / 13.051 13.223 / 13.223 / 13.223
mem.peak MB 95.859 / 95.859 / 95.859 91.766 / 91.766 / 91.766 92.629 / 92.629 / 92.629

No correctness failures. Cold indexing is lower than both initial baselines, search catch-up is within their range, and save acknowledgement still has a large outlier. Existing HDD budget breaches remain visible. Continuing the matrix and the isolated four-reader experiment.

First valid final HDD / 100k comparison (preliminary; n=1 final, not a five-run conclusion): | metric | unit | baseline run 1 p50 / p95 / max | baseline run 2 p50 / p95 / max | final run 1 p50 / p95 / max | |---|---|---:|---:|---:| | cold.index | s | 47.510 / 47.510 / 47.510 | 49.445 / 49.445 / 49.445 | 42.414 / 42.414 / 42.414 | | search.catch_up | s | 120.543 / 120.543 / 120.543 | 132.778 / 132.778 / 132.778 | 126.644 / 126.644 / 126.644 | | journal.catch_up | ms | 792.925 / 792.925 / 792.925 | 1116.822 / 1116.822 / 1116.822 | 638.251 / 638.251 / 638.251 | | sync.save_ack | ms | 13.721 / 84.914 / 1218.771 | 12.920 / 60.756 / 295.159 | 14.386 / 58.937 / 1995.020 | | storm.save_ack | ms | 44.949 / 129.829 / 293.256 | 46.756 / 131.014 / 285.369 | 41.442 / 111.034 / 381.548 | | mem.idle | MB | 13.156 / 13.156 / 13.156 | 13.051 / 13.051 / 13.051 | 13.223 / 13.223 / 13.223 | | mem.peak | MB | 95.859 / 95.859 / 95.859 | 91.766 / 91.766 / 91.766 | 92.629 / 92.629 / 92.629 | No correctness failures. Cold indexing is lower than both initial baselines, search catch-up is within their range, and save acknowledgement still has a large outlier. Existing HDD budget breaches remain visible. Continuing the matrix and the isolated four-reader experiment.
Author
Owner

Rejected the four-reader candidate; branch remains be555c1dfc with the two measured component fixes. One HDD / 100k sample for each bound does not show a worthwhile whole-server gain. Cold indexing and API p95 were worse with four, search catch-up was nearly unchanged. No correctness failures.

metric unit 16 readers p50 / p95 / max 4 readers p50 / p95 / max
cold.index s 42.414 / 42.414 / 42.414 46.783 / 46.783 / 46.783
search.catch_up s 126.644 / 126.644 / 126.644 124.447 / 124.447 / 124.447
open.api_get ms 39.631 / 79.826 / 298.186 40.036 / 101.095 / 257.117
sync.save_ack ms 14.386 / 58.937 / 1995.020 14.755 / 53.311 / 898.562
mem.idle MB 13.223 / 13.223 / 13.223 13.160 / 13.160 / 13.160
mem.peak MB 92.629 / 92.629 / 92.629 91.141 / 91.141 / 91.141
cold.mem_peak MB 116.281 / 116.281 / 116.281 119.113 / 119.113 / 119.113

Independent review also noted that the limit is process-wide, so lowering it may amplify cold-discovery and cross-user queue delays if throughput does not improve. Keeping sixteen is the safer choice. The candidate was tested only in private VM sources and was never committed. Continuing the existing five-pass before/final matrix and the scheduled 20-client probes.

Rejected the four-reader candidate; branch remains be555c1dfc1f1da75ac8bb9c74b3cadf3fcf793b with the two measured component fixes. One HDD / 100k sample for each bound does not show a worthwhile whole-server gain. Cold indexing and API p95 were worse with four, search catch-up was nearly unchanged. No correctness failures. | metric | unit | 16 readers p50 / p95 / max | 4 readers p50 / p95 / max | |---|---|---:|---:| | cold.index | s | 42.414 / 42.414 / 42.414 | 46.783 / 46.783 / 46.783 | | search.catch_up | s | 126.644 / 126.644 / 126.644 | 124.447 / 124.447 / 124.447 | | open.api_get | ms | 39.631 / 79.826 / 298.186 | 40.036 / 101.095 / 257.117 | | sync.save_ack | ms | 14.386 / 58.937 / 1995.020 | 14.755 / 53.311 / 898.562 | | mem.idle | MB | 13.223 / 13.223 / 13.223 | 13.160 / 13.160 / 13.160 | | mem.peak | MB | 92.629 / 92.629 / 92.629 | 91.141 / 91.141 / 91.141 | | cold.mem_peak | MB | 116.281 / 116.281 / 116.281 | 119.113 / 119.113 / 119.113 | Independent review also noted that the limit is process-wide, so lowering it may amplify cold-discovery and cross-user queue delays if throughput does not improve. Keeping sixteen is the safer choice. The candidate was tested only in private VM sources and was never committed. Continuing the existing five-pass before/final matrix and the scheduled 20-client probes.
Author
Owner

The first full idle sample is complete: baseline dev 312bc892, SSD, 10k notes, pass 5. After the Home settled and rooms closed, the 300-second window recorded idle.cpu_ticks = 0, idle.cpu_pct = 0.0%, idle.wakeups_per_s = 0.0, idle.rss = 26.53515625 MB and 11 threads. The harness reports no correctness failures. This is RSS after use; startup mem.idle is measured separately. The other idle cells and after comparison are still running under the VM lock.

The first full idle sample is complete: baseline dev 312bc892, SSD, 10k notes, pass 5. After the Home settled and rooms closed, the 300-second window recorded idle.cpu_ticks = 0, idle.cpu_pct = 0.0%, idle.wakeups_per_s = 0.0, idle.rss = 26.53515625 MB and 11 threads. The harness reports no correctness failures. This is RSS after use; startup mem.idle is measured separately. The other idle cells and after comparison are still running under the VM lock.
Author
Owner

Baseline complete at dev 312bc892ae: five interleaved runs per disk and Home size, 20 reports total. Each run includes cold indexing and the full warm workload. Page cache was dropped before starts. Pass 5 adds the stock 60-second typing load and 300-second idle sample after rooms settle. All reports contain the required metrics, fixture sizes match, and there are no correctness failures.

Per-run p50/p95 values use the harness median rule; single-value metrics pool the five runs, and max is the largest sample. Idle metrics have one sample per cell. Memory follows the harness MB label (MiB). Search catch-up includes the extra quiet checks around typing and idle in pass 5.

before: ssd, 10000 notes, 5 interleaved runs

Metric Unit p50 p95 max Runs
startup.healthz ms 32.293 46.417 46.417 5
home.first_page ms 12.030 26.745 26.745 5
home.page ms 1.379 2.096 7.982 5
home.page_title ms 1.238 3.118 5.634 5
home.page_tag ms 9.242 12.737 182.386 5
home.page_next ms 1.417 2.107 4.798 5
home.page_big ms 28.815 34.508 50.323 5
search.query ms 3.554 7.285 65.865 5
search.first_query ms 27.849 43.668 43.668 5
search.catch_up s 4.012 6.016 6.027 5
open.note ms 1.254 2.620 8.883 5
open.api_get ms 7.650 9.381 14.894 5
sync.save_ack ms 5.985 8.562 92.444 5
storm.save_ack ms 10.403 23.176 113.846 5
journal.catch_up ms 62.046 94.674 94.674 5
cold.index s 2.056 2.267 2.267 5
cold.startup ms 97.708 134.832 134.832 5
open.long_note ms 9.570 12.641 12.641 5
journal.page ms 5.588 7.392 14.115 5
shutdown ms 66.128 67.453 67.453 5
storm.edits_per_s edits/s 2217.073 3214.040 3214.040 5
storm.disk_written MB 50.520 54.227 54.227 5
trash.delete ms 13.784 23.300 78.310 5
trash.restore ms 16.036 26.539 174.210 5
trash.forget ms 7.604 12.991 47.241 5
mem.idle MB 13.199 13.414 13.414 5
mem.peak MB 38.957 40.543 40.543 5
cold.mem_peak MB 50.082 50.875 50.875 5
idle.rss MB 26.535 26.535 26.535 1
idle.cpu_pct % 0.000 0.000 0.000 1
idle.wakeups_per_s /s 0.000 0.000 0.000 1

before: ssd, 100000 notes, 5 interleaved runs

Metric Unit p50 p95 max Runs
startup.healthz ms 47.894 89.280 89.280 5
home.first_page ms 55.071 99.624 99.624 5
home.page ms 2.361 3.694 8.512 5
home.page_title ms 2.588 7.041 11.183 5
home.page_tag ms 6.699 11.686 299.157 5
home.page_next ms 2.708 5.130 14.808 5
home.page_big ms 411.416 643.016 1049.351 5
search.query ms 5.773 13.903 760.582 5
search.first_query ms 61.681 77.668 77.668 5
search.catch_up s 92.739 98.791 104.979 5
open.note ms 2.274 5.296 34.235 5
open.api_get ms 12.275 16.739 32.028 5
sync.save_ack ms 9.602 35.688 209.367 5
storm.save_ack ms 17.587 44.747 937.979 5
journal.catch_up ms 1126.472 1309.691 1309.691 5
cold.index s 33.190 39.207 39.207 5
cold.startup ms 169.768 213.792 213.792 5
open.long_note ms 13.182 23.185 23.185 5
journal.page ms 9.220 14.758 50.788 5
shutdown ms 88.419 93.827 93.827 5
storm.edits_per_s edits/s 1281.929 2471.487 2471.487 5
storm.disk_written MB 49.512 56.533 56.533 5
trash.delete ms 18.098 28.986 287.089 5
trash.restore ms 23.266 39.272 301.490 5
trash.forget ms 11.330 24.394 77.260 5
mem.idle MB 13.109 13.328 13.328 5
mem.peak MB 96.254 99.703 99.703 5
cold.mem_peak MB 119.871 121.469 121.469 5
idle.rss MB 41.789 41.789 41.789 1
idle.cpu_pct % 0.000 0.000 0.000 1
idle.wakeups_per_s /s 0.000 0.000 0.000 1

before: hdd, 10000 notes, 5 interleaved runs

Metric Unit p50 p95 max Runs
startup.healthz ms 41.033 178.483 178.483 5
home.first_page ms 31.201 43.028 43.028 5
home.page ms 1.816 3.533 18.805 5
home.page_title ms 1.517 2.152 14.762 5
home.page_tag ms 11.141 16.243 542.228 5
home.page_next ms 1.913 3.674 23.067 5
home.page_big ms 33.585 46.160 131.010 5
search.query ms 3.738 8.538 88.265 5
search.first_query ms 184.362 199.424 199.424 5
search.catch_up s 10.035 10.035 12.078 5
open.note ms 1.351 3.433 25.293 5
open.api_get ms 35.976 60.643 96.257 5
sync.save_ack ms 15.036 56.526 1516.069 5
storm.save_ack ms 47.024 134.363 741.346 5
journal.catch_up ms 66.749 194.828 194.828 5
cold.index s 4.100 5.092 5.092 5
cold.startup ms 432.376 690.480 690.480 5
open.long_note ms 18.735 36.723 36.723 5
journal.page ms 5.897 7.721 31.740 5
shutdown ms 89.005 228.973 228.973 5
storm.edits_per_s edits/s 497.648 633.855 633.855 5
storm.disk_written MB 81.326 91.574 91.574 5
trash.delete ms 52.399 115.189 262.883 5
trash.restore ms 72.064 179.774 494.562 5
trash.forget ms 36.029 85.912 318.037 5
mem.idle MB 13.242 13.336 13.336 5
mem.peak MB 39.695 40.633 40.633 5
cold.mem_peak MB 50.340 53.176 53.176 5
idle.rss MB 26.441 26.441 26.441 1
idle.cpu_pct % 0.000 0.000 0.000 1
idle.wakeups_per_s /s 0.000 0.000 0.000 1

before: hdd, 100000 notes, 5 interleaved runs

Metric Unit p50 p95 max Runs
startup.healthz ms 104.669 157.592 157.592 5
home.first_page ms 120.894 136.916 136.916 5
home.page ms 2.490 10.606 19.555 5
home.page_title ms 2.074 5.776 26.489 5
home.page_tag ms 6.993 14.752 252.036 5
home.page_next ms 2.784 5.371 18.184 5
home.page_big ms 453.527 668.061 1358.472 5
search.query ms 5.676 12.601 730.219 5
search.first_query ms 338.579 434.254 434.254 5
search.catch_up s 132.778 142.799 144.976 5
open.note ms 1.308 6.811 151.554 5
open.api_get ms 41.418 114.401 349.620 5
sync.save_ack ms 14.212 82.811 1218.771 5
storm.save_ack ms 44.949 129.829 418.613 5
journal.catch_up ms 901.677 1127.429 1127.429 5
cold.index s 49.445 56.417 56.417 5
cold.startup ms 862.585 2513.378 2513.378 5
open.long_note ms 11.796 26.785 26.785 5
journal.page ms 7.448 13.184 32.491 5
shutdown ms 2414.701 3082.647 3082.647 5
storm.edits_per_s edits/s 545.469 622.575 622.575 5
storm.disk_written MB 65.839 67.592 67.592 5
trash.delete ms 75.191 128.685 239.133 5
trash.restore ms 87.383 171.128 307.504 5
trash.forget ms 49.332 101.264 148.389 5
mem.idle MB 13.289 13.316 13.316 5
mem.peak MB 93.508 95.859 95.859 5
cold.mem_peak MB 131.770 136.805 136.805 5
idle.rss MB 37.938 37.938 37.938 1
idle.cpu_pct % 0.000 0.000 0.000 1
idle.wakeups_per_s /s 0.003 0.003 0.003 1

Baseline budget messages below are verbatim. Baseline runs did not use --gate, so exit 0 means the harness completed; it does not mean all budgets passed.

before-ssd-10000-1: exit=0
before-ssd-100000-1: exit=0
before-hdd-10000-1: exit=0
over budget: 10000 notes: open.api_get p95 60.3 > 50
over budget: 10000 notes: storm.save_ack p95 183 > 150
over budget: 10000 notes: sync.save_ack p95 63.6 > 40
before-hdd-100000-1: exit=0
over budget: 100000 notes: cold.startup p95 1383 > 500
over budget: 100000 notes: open.api_get p95 76.0 > 50
over budget: 100000 notes: shutdown p95 2415 > 1000
over budget: 100000 notes: sync.save_ack p95 84.9 > 40
before-ssd-10000-2: exit=0
before-ssd-100000-2: exit=0
over budget: 100000 notes: sync.save_ack p95 42.5 > 40
before-hdd-10000-2: exit=0
over budget: 10000 notes: open.api_get p95 64.3 > 50
over budget: 10000 notes: sync.save_ack p95 53.1 > 40
before-hdd-100000-2: exit=0
over budget: 100000 notes: cold.startup p95 626 > 500
over budget: 100000 notes: home.first_page p95 121 > 100
over budget: 100000 notes: open.api_get p95 139 > 50
over budget: 100000 notes: shutdown p95 1665 > 1000
over budget: 100000 notes: sync.save_ack p95 60.8 > 40
before-ssd-10000-3: exit=0
before-ssd-100000-3: exit=0
over budget: 100000 notes: open.note p95 16.2 > 15
before-hdd-10000-3: exit=0
over budget: 10000 notes: cold.startup p95 536 > 500
over budget: 10000 notes: open.api_get p95 63.6 > 50
over budget: 10000 notes: sync.save_ack p95 60.3 > 40
before-hdd-100000-3: exit=0
over budget: 100000 notes: cold.startup p95 2513 > 500
over budget: 100000 notes: open.api_get p95 128 > 50
over budget: 100000 notes: shutdown p95 3083 > 1000
over budget: 100000 notes: sync.save_ack p95 49.7 > 40
before-ssd-10000-4: exit=0
before-ssd-100000-4: exit=0
over budget: 100000 notes: sync.save_ack p95 43.5 > 40
before-hdd-10000-4: exit=0
over budget: 10000 notes: cold.startup p95 690 > 500
over budget: 10000 notes: open.api_get p95 56.5 > 50
over budget: 10000 notes: sync.save_ack p95 44.5 > 40
before-hdd-100000-4: exit=0
over budget: 100000 notes: cold.startup p95 611 > 500
over budget: 100000 notes: home.first_page p95 137 > 100
over budget: 100000 notes: open.api_get p95 114 > 50
over budget: 100000 notes: shutdown p95 3013 > 1000
over budget: 100000 notes: sync.save_ack p95 82.8 > 40
before-ssd-10000-5: exit=0
before-ssd-100000-5: exit=0
before-hdd-10000-5: exit=0
over budget: 10000 notes: open.api_get p95 60.6 > 50
over budget: 10000 notes: sync.save_ack p95 56.5 > 40
before-hdd-100000-5: exit=0
over budget: 100000 notes: cold.startup p95 863 > 500
over budget: 100000 notes: home.first_page p95 134 > 100
over budget: 100000 notes: open.api_get p95 65.8 > 50
over budget: 100000 notes: shutdown p95 2281 > 1000
over budget: 100000 notes: sync.save_ack p95 123 > 40
Baseline complete at dev 312bc892ae17f513f141cd8d09abb62ed864c6d5: five interleaved runs per disk and Home size, 20 reports total. Each run includes cold indexing and the full warm workload. Page cache was dropped before starts. Pass 5 adds the stock 60-second typing load and 300-second idle sample after rooms settle. All reports contain the required metrics, fixture sizes match, and there are no correctness failures. Per-run p50/p95 values use the harness median rule; single-value metrics pool the five runs, and max is the largest sample. Idle metrics have one sample per cell. Memory follows the harness MB label (MiB). Search catch-up includes the extra quiet checks around typing and idle in pass 5. before: ssd, 10000 notes, 5 interleaved runs | Metric | Unit | p50 | p95 | max | Runs | |---|---|---:|---:|---:|---:| | startup.healthz | ms | 32.293 | 46.417 | 46.417 | 5 | | home.first_page | ms | 12.030 | 26.745 | 26.745 | 5 | | home.page | ms | 1.379 | 2.096 | 7.982 | 5 | | home.page_title | ms | 1.238 | 3.118 | 5.634 | 5 | | home.page_tag | ms | 9.242 | 12.737 | 182.386 | 5 | | home.page_next | ms | 1.417 | 2.107 | 4.798 | 5 | | home.page_big | ms | 28.815 | 34.508 | 50.323 | 5 | | search.query | ms | 3.554 | 7.285 | 65.865 | 5 | | search.first_query | ms | 27.849 | 43.668 | 43.668 | 5 | | search.catch_up | s | 4.012 | 6.016 | 6.027 | 5 | | open.note | ms | 1.254 | 2.620 | 8.883 | 5 | | open.api_get | ms | 7.650 | 9.381 | 14.894 | 5 | | sync.save_ack | ms | 5.985 | 8.562 | 92.444 | 5 | | storm.save_ack | ms | 10.403 | 23.176 | 113.846 | 5 | | journal.catch_up | ms | 62.046 | 94.674 | 94.674 | 5 | | cold.index | s | 2.056 | 2.267 | 2.267 | 5 | | cold.startup | ms | 97.708 | 134.832 | 134.832 | 5 | | open.long_note | ms | 9.570 | 12.641 | 12.641 | 5 | | journal.page | ms | 5.588 | 7.392 | 14.115 | 5 | | shutdown | ms | 66.128 | 67.453 | 67.453 | 5 | | storm.edits_per_s | edits/s | 2217.073 | 3214.040 | 3214.040 | 5 | | storm.disk_written | MB | 50.520 | 54.227 | 54.227 | 5 | | trash.delete | ms | 13.784 | 23.300 | 78.310 | 5 | | trash.restore | ms | 16.036 | 26.539 | 174.210 | 5 | | trash.forget | ms | 7.604 | 12.991 | 47.241 | 5 | | mem.idle | MB | 13.199 | 13.414 | 13.414 | 5 | | mem.peak | MB | 38.957 | 40.543 | 40.543 | 5 | | cold.mem_peak | MB | 50.082 | 50.875 | 50.875 | 5 | | idle.rss | MB | 26.535 | 26.535 | 26.535 | 1 | | idle.cpu_pct | % | 0.000 | 0.000 | 0.000 | 1 | | idle.wakeups_per_s | /s | 0.000 | 0.000 | 0.000 | 1 | before: ssd, 100000 notes, 5 interleaved runs | Metric | Unit | p50 | p95 | max | Runs | |---|---|---:|---:|---:|---:| | startup.healthz | ms | 47.894 | 89.280 | 89.280 | 5 | | home.first_page | ms | 55.071 | 99.624 | 99.624 | 5 | | home.page | ms | 2.361 | 3.694 | 8.512 | 5 | | home.page_title | ms | 2.588 | 7.041 | 11.183 | 5 | | home.page_tag | ms | 6.699 | 11.686 | 299.157 | 5 | | home.page_next | ms | 2.708 | 5.130 | 14.808 | 5 | | home.page_big | ms | 411.416 | 643.016 | 1049.351 | 5 | | search.query | ms | 5.773 | 13.903 | 760.582 | 5 | | search.first_query | ms | 61.681 | 77.668 | 77.668 | 5 | | search.catch_up | s | 92.739 | 98.791 | 104.979 | 5 | | open.note | ms | 2.274 | 5.296 | 34.235 | 5 | | open.api_get | ms | 12.275 | 16.739 | 32.028 | 5 | | sync.save_ack | ms | 9.602 | 35.688 | 209.367 | 5 | | storm.save_ack | ms | 17.587 | 44.747 | 937.979 | 5 | | journal.catch_up | ms | 1126.472 | 1309.691 | 1309.691 | 5 | | cold.index | s | 33.190 | 39.207 | 39.207 | 5 | | cold.startup | ms | 169.768 | 213.792 | 213.792 | 5 | | open.long_note | ms | 13.182 | 23.185 | 23.185 | 5 | | journal.page | ms | 9.220 | 14.758 | 50.788 | 5 | | shutdown | ms | 88.419 | 93.827 | 93.827 | 5 | | storm.edits_per_s | edits/s | 1281.929 | 2471.487 | 2471.487 | 5 | | storm.disk_written | MB | 49.512 | 56.533 | 56.533 | 5 | | trash.delete | ms | 18.098 | 28.986 | 287.089 | 5 | | trash.restore | ms | 23.266 | 39.272 | 301.490 | 5 | | trash.forget | ms | 11.330 | 24.394 | 77.260 | 5 | | mem.idle | MB | 13.109 | 13.328 | 13.328 | 5 | | mem.peak | MB | 96.254 | 99.703 | 99.703 | 5 | | cold.mem_peak | MB | 119.871 | 121.469 | 121.469 | 5 | | idle.rss | MB | 41.789 | 41.789 | 41.789 | 1 | | idle.cpu_pct | % | 0.000 | 0.000 | 0.000 | 1 | | idle.wakeups_per_s | /s | 0.000 | 0.000 | 0.000 | 1 | before: hdd, 10000 notes, 5 interleaved runs | Metric | Unit | p50 | p95 | max | Runs | |---|---|---:|---:|---:|---:| | startup.healthz | ms | 41.033 | 178.483 | 178.483 | 5 | | home.first_page | ms | 31.201 | 43.028 | 43.028 | 5 | | home.page | ms | 1.816 | 3.533 | 18.805 | 5 | | home.page_title | ms | 1.517 | 2.152 | 14.762 | 5 | | home.page_tag | ms | 11.141 | 16.243 | 542.228 | 5 | | home.page_next | ms | 1.913 | 3.674 | 23.067 | 5 | | home.page_big | ms | 33.585 | 46.160 | 131.010 | 5 | | search.query | ms | 3.738 | 8.538 | 88.265 | 5 | | search.first_query | ms | 184.362 | 199.424 | 199.424 | 5 | | search.catch_up | s | 10.035 | 10.035 | 12.078 | 5 | | open.note | ms | 1.351 | 3.433 | 25.293 | 5 | | open.api_get | ms | 35.976 | 60.643 | 96.257 | 5 | | sync.save_ack | ms | 15.036 | 56.526 | 1516.069 | 5 | | storm.save_ack | ms | 47.024 | 134.363 | 741.346 | 5 | | journal.catch_up | ms | 66.749 | 194.828 | 194.828 | 5 | | cold.index | s | 4.100 | 5.092 | 5.092 | 5 | | cold.startup | ms | 432.376 | 690.480 | 690.480 | 5 | | open.long_note | ms | 18.735 | 36.723 | 36.723 | 5 | | journal.page | ms | 5.897 | 7.721 | 31.740 | 5 | | shutdown | ms | 89.005 | 228.973 | 228.973 | 5 | | storm.edits_per_s | edits/s | 497.648 | 633.855 | 633.855 | 5 | | storm.disk_written | MB | 81.326 | 91.574 | 91.574 | 5 | | trash.delete | ms | 52.399 | 115.189 | 262.883 | 5 | | trash.restore | ms | 72.064 | 179.774 | 494.562 | 5 | | trash.forget | ms | 36.029 | 85.912 | 318.037 | 5 | | mem.idle | MB | 13.242 | 13.336 | 13.336 | 5 | | mem.peak | MB | 39.695 | 40.633 | 40.633 | 5 | | cold.mem_peak | MB | 50.340 | 53.176 | 53.176 | 5 | | idle.rss | MB | 26.441 | 26.441 | 26.441 | 1 | | idle.cpu_pct | % | 0.000 | 0.000 | 0.000 | 1 | | idle.wakeups_per_s | /s | 0.000 | 0.000 | 0.000 | 1 | before: hdd, 100000 notes, 5 interleaved runs | Metric | Unit | p50 | p95 | max | Runs | |---|---|---:|---:|---:|---:| | startup.healthz | ms | 104.669 | 157.592 | 157.592 | 5 | | home.first_page | ms | 120.894 | 136.916 | 136.916 | 5 | | home.page | ms | 2.490 | 10.606 | 19.555 | 5 | | home.page_title | ms | 2.074 | 5.776 | 26.489 | 5 | | home.page_tag | ms | 6.993 | 14.752 | 252.036 | 5 | | home.page_next | ms | 2.784 | 5.371 | 18.184 | 5 | | home.page_big | ms | 453.527 | 668.061 | 1358.472 | 5 | | search.query | ms | 5.676 | 12.601 | 730.219 | 5 | | search.first_query | ms | 338.579 | 434.254 | 434.254 | 5 | | search.catch_up | s | 132.778 | 142.799 | 144.976 | 5 | | open.note | ms | 1.308 | 6.811 | 151.554 | 5 | | open.api_get | ms | 41.418 | 114.401 | 349.620 | 5 | | sync.save_ack | ms | 14.212 | 82.811 | 1218.771 | 5 | | storm.save_ack | ms | 44.949 | 129.829 | 418.613 | 5 | | journal.catch_up | ms | 901.677 | 1127.429 | 1127.429 | 5 | | cold.index | s | 49.445 | 56.417 | 56.417 | 5 | | cold.startup | ms | 862.585 | 2513.378 | 2513.378 | 5 | | open.long_note | ms | 11.796 | 26.785 | 26.785 | 5 | | journal.page | ms | 7.448 | 13.184 | 32.491 | 5 | | shutdown | ms | 2414.701 | 3082.647 | 3082.647 | 5 | | storm.edits_per_s | edits/s | 545.469 | 622.575 | 622.575 | 5 | | storm.disk_written | MB | 65.839 | 67.592 | 67.592 | 5 | | trash.delete | ms | 75.191 | 128.685 | 239.133 | 5 | | trash.restore | ms | 87.383 | 171.128 | 307.504 | 5 | | trash.forget | ms | 49.332 | 101.264 | 148.389 | 5 | | mem.idle | MB | 13.289 | 13.316 | 13.316 | 5 | | mem.peak | MB | 93.508 | 95.859 | 95.859 | 5 | | cold.mem_peak | MB | 131.770 | 136.805 | 136.805 | 5 | | idle.rss | MB | 37.938 | 37.938 | 37.938 | 1 | | idle.cpu_pct | % | 0.000 | 0.000 | 0.000 | 1 | | idle.wakeups_per_s | /s | 0.003 | 0.003 | 0.003 | 1 | Baseline budget messages below are verbatim. Baseline runs did not use --gate, so exit 0 means the harness completed; it does not mean all budgets passed. ```text before-ssd-10000-1: exit=0 before-ssd-100000-1: exit=0 before-hdd-10000-1: exit=0 over budget: 10000 notes: open.api_get p95 60.3 > 50 over budget: 10000 notes: storm.save_ack p95 183 > 150 over budget: 10000 notes: sync.save_ack p95 63.6 > 40 before-hdd-100000-1: exit=0 over budget: 100000 notes: cold.startup p95 1383 > 500 over budget: 100000 notes: open.api_get p95 76.0 > 50 over budget: 100000 notes: shutdown p95 2415 > 1000 over budget: 100000 notes: sync.save_ack p95 84.9 > 40 before-ssd-10000-2: exit=0 before-ssd-100000-2: exit=0 over budget: 100000 notes: sync.save_ack p95 42.5 > 40 before-hdd-10000-2: exit=0 over budget: 10000 notes: open.api_get p95 64.3 > 50 over budget: 10000 notes: sync.save_ack p95 53.1 > 40 before-hdd-100000-2: exit=0 over budget: 100000 notes: cold.startup p95 626 > 500 over budget: 100000 notes: home.first_page p95 121 > 100 over budget: 100000 notes: open.api_get p95 139 > 50 over budget: 100000 notes: shutdown p95 1665 > 1000 over budget: 100000 notes: sync.save_ack p95 60.8 > 40 before-ssd-10000-3: exit=0 before-ssd-100000-3: exit=0 over budget: 100000 notes: open.note p95 16.2 > 15 before-hdd-10000-3: exit=0 over budget: 10000 notes: cold.startup p95 536 > 500 over budget: 10000 notes: open.api_get p95 63.6 > 50 over budget: 10000 notes: sync.save_ack p95 60.3 > 40 before-hdd-100000-3: exit=0 over budget: 100000 notes: cold.startup p95 2513 > 500 over budget: 100000 notes: open.api_get p95 128 > 50 over budget: 100000 notes: shutdown p95 3083 > 1000 over budget: 100000 notes: sync.save_ack p95 49.7 > 40 before-ssd-10000-4: exit=0 before-ssd-100000-4: exit=0 over budget: 100000 notes: sync.save_ack p95 43.5 > 40 before-hdd-10000-4: exit=0 over budget: 10000 notes: cold.startup p95 690 > 500 over budget: 10000 notes: open.api_get p95 56.5 > 50 over budget: 10000 notes: sync.save_ack p95 44.5 > 40 before-hdd-100000-4: exit=0 over budget: 100000 notes: cold.startup p95 611 > 500 over budget: 100000 notes: home.first_page p95 137 > 100 over budget: 100000 notes: open.api_get p95 114 > 50 over budget: 100000 notes: shutdown p95 3013 > 1000 over budget: 100000 notes: sync.save_ack p95 82.8 > 40 before-ssd-10000-5: exit=0 before-ssd-100000-5: exit=0 before-hdd-10000-5: exit=0 over budget: 10000 notes: open.api_get p95 60.6 > 50 over budget: 10000 notes: sync.save_ack p95 56.5 > 40 before-hdd-100000-5: exit=0 over budget: 100000 notes: cold.startup p95 863 > 500 over budget: 100000 notes: home.first_page p95 134 > 100 over budget: 100000 notes: open.api_get p95 65.8 > 50 over budget: 100000 notes: shutdown p95 2281 > 1000 over budget: 100000 notes: sync.save_ack p95 123 > 40 ```
Author
Owner

Baseline 20-client mixed reads and writes is complete on both disks, at dev 312bc892. Each probe starts a fresh server on the indexed 100k-note Home after its matrix finishes, waits for note and search indexes to settle, then runs 20 clients without think time. Each client makes 50 rounds of page, note, search and durable append requests, rotating the order. There are 1,000 samples per operation and disk. All 1,000 appended markers per disk were found exactly once. Each run held the perf VM lock.

Disk Action p50 ms p95 ms p99 ms Max ms
ssd notes.list 23.954 62.956 81.148 106.318
ssd notes.get 10.323 36.480 74.479 140.765
ssd search.query 76.503 184.521 245.662 286.207
ssd notes.append 55.499 112.510 155.103 236.001
hdd notes.list 7.750 17.816 22.687 25.815
hdd notes.get 3.937 13.103 566.419 698.729
hdd search.query 32.810 322.049 1113.187 1707.499
hdd notes.append 81.628 499.968 872.065 879.829

The HDD search tail reaches 1.707 seconds and durable append reaches 879.829 ms. The full before/after tail table will be added after the final probes. This is a closed-loop mixed workload: slower writes reduce the rate of subsequent reads, so the disks should be compared within the same phase and operation rather than ranked from read latency alone.

Baseline 20-client mixed reads and writes is complete on both disks, at dev 312bc892. Each probe starts a fresh server on the indexed 100k-note Home after its matrix finishes, waits for note and search indexes to settle, then runs 20 clients without think time. Each client makes 50 rounds of page, note, search and durable append requests, rotating the order. There are 1,000 samples per operation and disk. All 1,000 appended markers per disk were found exactly once. Each run held the perf VM lock. | Disk | Action | p50 ms | p95 ms | p99 ms | Max ms | |---|---|---:|---:|---:|---:| | ssd | notes.list | 23.954 | 62.956 | 81.148 | 106.318 | | ssd | notes.get | 10.323 | 36.480 | 74.479 | 140.765 | | ssd | search.query | 76.503 | 184.521 | 245.662 | 286.207 | | ssd | notes.append | 55.499 | 112.510 | 155.103 | 236.001 | | hdd | notes.list | 7.750 | 17.816 | 22.687 | 25.815 | | hdd | notes.get | 3.937 | 13.103 | 566.419 | 698.729 | | hdd | search.query | 32.810 | 322.049 | 1113.187 | 1707.499 | | hdd | notes.append | 81.628 | 499.968 | 872.065 | 879.829 | The HDD search tail reaches 1.707 seconds and durable append reaches 879.829 ms. The full before/after tail table will be added after the final probes. This is a closed-loop mixed workload: slower writes reduce the rate of subsequent reads, so the disks should be compared within the same phase and operation rather than ranked from read latency alone.
Author
Owner

Startup RSS check at base 312bc892 and head be555c1 is complete. Twenty interleaved starts per binary, alternating order, after one discarded warmup pair. Both binaries use the same indexed 10k Home and stock allocator/log settings. RSS is sampled immediately after healthz, without opening a Home. The entire comparison held the perf VM lock.

Binary Minimum MiB Median MiB p95 MiB Maximum MiB Run spread
before 13.148438 13.671875 13.871094 14.031250 6.457%
final 13.253906 13.722656 14.207031 14.699219 10.532%

The median difference is 0.050781 MiB (0.371%), within the observed process-to-process spread. Baseline also produced a 14.03125 MiB sample. The higher single sample in the full matrix does not show a sustained startup memory increase. All maxima remain visible above.

The first after 300-second idle sample (SSD, 10k notes) recorded 0 CPU ticks, 0 wakeups/s, 11 threads and 26.7578125 MiB RSS after use, versus baseline 26.53515625 MiB. The other three after idle cells are still running.

Startup RSS check at base 312bc892 and head be555c1 is complete. Twenty interleaved starts per binary, alternating order, after one discarded warmup pair. Both binaries use the same indexed 10k Home and stock allocator/log settings. RSS is sampled immediately after healthz, without opening a Home. The entire comparison held the perf VM lock. | Binary | Minimum MiB | Median MiB | p95 MiB | Maximum MiB | Run spread | |---|---:|---:|---:|---:|---:| | before | 13.148438 | 13.671875 | 13.871094 | 14.031250 | 6.457% | | final | 13.253906 | 13.722656 | 14.207031 | 14.699219 | 10.532% | The median difference is 0.050781 MiB (0.371%), within the observed process-to-process spread. Baseline also produced a 14.03125 MiB sample. The higher single sample in the full matrix does not show a sustained startup memory increase. All maxima remain visible above. The first after 300-second idle sample (SSD, 10k notes) recorded 0 CPU ticks, 0 wakeups/s, 11 threads and 26.7578125 MiB RSS after use, versus baseline 26.53515625 MiB. The other three after idle cells are still running.
Author
Owner

The primary HDD/100k after cell is complete (five runs). Cold-index median is 42.414 s versus 49.445 s before; save-ack p95 is 58.937 ms versus 82.811 ms, while its maximum is worse: 1995.020 ms versus 1218.771 ms. Shutdown maximum is also worse (3331.564 versus 3082.647 ms). These maxima will remain in the report.

The 300-second idle window recorded zero CPU ticks and wakeups, but RSS after use is 43.30859375 MiB versus baseline 37.9375 MiB. Startup mem.idle medians remain 13.22265625 versus 13.2890625 MiB. A single after-use RSS sample is insufficient to decide whether the 5.37109375 MiB difference is allocator variation or a regression. I have queued one additional full HDD/100k run per binary, each with the same 300-second idle window, under the VM lock. These validation repeats are separate from the primary five-run table and use the completed baseline work directory, leaving the final mixed-probe input untouched.

The primary HDD/100k after cell is complete (five runs). Cold-index median is 42.414 s versus 49.445 s before; save-ack p95 is 58.937 ms versus 82.811 ms, while its maximum is worse: 1995.020 ms versus 1218.771 ms. Shutdown maximum is also worse (3331.564 versus 3082.647 ms). These maxima will remain in the report. The 300-second idle window recorded zero CPU ticks and wakeups, but RSS after use is 43.30859375 MiB versus baseline 37.9375 MiB. Startup mem.idle medians remain 13.22265625 versus 13.2890625 MiB. A single after-use RSS sample is insufficient to decide whether the 5.37109375 MiB difference is allocator variation or a regression. I have queued one additional full HDD/100k run per binary, each with the same 300-second idle window, under the VM lock. These validation repeats are separate from the primary five-run table and use the completed baseline work directory, leaving the final mixed-probe input untouched.
Author
Owner

The primary SSD/100k after idle sample is complete: 0 CPU ticks, 0 wakeups/s, 11 threads and 39.5078125 MiB RSS after use, versus baseline 41.7890625 MiB. Thus the primary after-use RSS change has opposite signs on SSD (-2.28125 MiB) and HDD (+5.37109375 MiB). Both 100k cases remain asleep when idle. The additional full HDD before/after validation pair is now running to check process-to-process variation; no conclusion about the HDD RSS difference is being hidden or assumed.

The primary SSD/100k after idle sample is complete: 0 CPU ticks, 0 wakeups/s, 11 threads and 39.5078125 MiB RSS after use, versus baseline 41.7890625 MiB. Thus the primary after-use RSS change has opposite signs on SSD (-2.28125 MiB) and HDD (+5.37109375 MiB). Both 100k cases remain asleep when idle. The additional full HDD before/after validation pair is now running to check process-to-process variation; no conclusion about the HDD RSS difference is being hidden or assumed.
Author
Owner

The additional full baseline HDD/100k run is complete, with no correctness failures. Its 300-second idle sample recorded 0 CPU ticks, 0 wakeups/s and 47.19921875 MiB RSS after use. The unchanged baseline therefore spans 37.9375 to 47.19921875 MiB across its two full idle samples (9.26171875 MiB spread). The primary after sample, 43.30859375 MiB, falls inside that observed baseline range. This supports process-to-process allocator variation rather than a sustained RSS increase; the matching after repeat is still queued and will be reported too.

The repeat also shows why wall times need care: baseline cold indexing was 43.431 s in this run, versus the primary five-run median 49.444537 s. Save-ack p95 was 66.096 ms and maximum 211.471 ms. The primary maxima, including the worse after maximum, remain in the report. Direct same-executable CPU benchmarks are the clearest evidence for the individual fixes.

The additional full baseline HDD/100k run is complete, with no correctness failures. Its 300-second idle sample recorded 0 CPU ticks, 0 wakeups/s and 47.19921875 MiB RSS after use. The unchanged baseline therefore spans 37.9375 to 47.19921875 MiB across its two full idle samples (9.26171875 MiB spread). The primary after sample, 43.30859375 MiB, falls inside that observed baseline range. This supports process-to-process allocator variation rather than a sustained RSS increase; the matching after repeat is still queued and will be reported too. The repeat also shows why wall times need care: baseline cold indexing was 43.431 s in this run, versus the primary five-run median 49.444537 s. Save-ack p95 was 66.096 ms and maximum 211.471 ms. The primary maxima, including the worse after maximum, remain in the report. Direct same-executable CPU benchmarks are the clearest evidence for the individual fixes.
Author
Owner

The primary before/after matrix is complete and audited: 40 reports, five per phase/disk/size, matching fixtures, required metrics present and no correctness failures. Only the comparable before-* and final-* builds are used. Aggregate gated budgets pass on SSD; HDD still exceeds cold startup, API get, save ack and (100k) shutdown limits. Eleven individual after invocations returned gate exit 1; ten were HDD and one was an SSD API-get sample.

Before/after server performance. Base 312bc892ae; head be555c1dfc. Same release toolchain, fixture seed and harness; dropped page cache before each start. Five interleaved runs per cell. Latency distributions use the median of per-run p50/p95, and max is the largest sample. Single-value metrics pool the runs. Idle measurements use one 300-second sample per cell after rooms settle. Both binaries were built with matching Cargo feature unification: cargo build --release --locked -j4 -p calternal -p calternal-perf -p calternal-fixtures. Each invocation resets from the pristine seed-1 fixture and includes one cold and one warm run; pass 5 also includes the stock 60-second typing load and extra quiet checks. Memory follows the harness MB label (MiB).

ssd-10000

Metric Unit Before p50 Before p95 Before max After p50 After p95 After max
startup.healthz ms 32.293 46.417 46.417 30.235 37.659 37.659
home.first_page ms 12.030 26.745 26.745 11.365 14.541 14.541
home.page ms 1.379 2.096 7.982 1.405 1.693 4.276
home.page_title ms 1.238 3.118 5.634 1.150 1.705 4.975
home.page_tag ms 9.242 12.737 182.386 8.669 11.246 87.584
home.page_next ms 1.417 2.107 4.798 1.281 1.773 3.552
home.page_big ms 28.815 34.508 50.323 28.390 29.420 34.461
search.query ms 3.554 7.285 65.865 3.678 10.086 75.070
search.first_query ms 27.849 43.668 43.668 27.526 79.223 79.223
search.catch_up s 4.012 6.016 6.027 4.026 4.026 6.034
open.note ms 1.254 2.620 8.883 1.073 2.803 5.073
open.api_get ms 7.650 9.381 14.894 7.199 8.571 14.859
sync.save_ack ms 5.985 8.562 92.444 5.903 10.210 348.306
storm.save_ack ms 10.403 23.176 113.846 8.138 22.508 141.278
journal.catch_up ms 62.046 94.674 94.674 61.780 65.217 65.217
cold.index s 2.056 2.267 2.267 1.498 1.677 1.677
cold.startup ms 97.708 134.832 134.832 70.602 79.012 79.012
open.long_note ms 9.570 12.641 12.641 9.955 12.699 12.699
journal.page ms 5.588 7.392 14.115 5.398 6.435 6.830
shutdown ms 66.128 67.453 67.453 45.918 67.229 67.229
storm.edits_per_s edits/s 2217.073 3214.040 3214.040 2501.178 3980.039 3980.039
storm.disk_written MB 50.520 54.227 54.227 50.901 52.302 52.302
trash.delete ms 13.784 23.300 78.310 12.287 20.364 73.600
trash.restore ms 16.036 26.539 174.210 15.090 27.179 60.917
trash.forget ms 7.604 12.991 47.241 7.399 11.601 29.835
mem.idle MB 13.199 13.414 13.414 13.230 14.031 14.031
mem.peak MB 38.957 40.543 40.543 37.152 40.902 40.902
cold.mem_peak MB 50.082 50.875 50.875 51.672 51.711 51.711
idle.rss MB 26.535 26.535 26.535 26.758 26.758 26.758
idle.cpu_pct % 0.000 0.000 0.000 0.000 0.000 0.000
idle.wakeups_per_s /s 0.000 0.000 0.000 0.000 0.000 0.000

ssd-100000

Metric Unit Before p50 Before p95 Before max After p50 After p95 After max
startup.healthz ms 47.894 89.280 89.280 37.325 49.970 49.970
home.first_page ms 55.071 99.624 99.624 18.709 41.162 41.162
home.page ms 2.361 3.694 8.512 2.088 2.767 5.372
home.page_title ms 2.588 7.041 11.183 1.893 4.152 55.433
home.page_tag ms 6.699 11.686 299.157 5.668 7.760 176.247
home.page_next ms 2.708 5.130 14.808 2.125 3.301 11.855
home.page_big ms 411.416 643.016 1049.351 133.137 220.357 914.898
search.query ms 5.773 13.903 760.582 4.587 9.729 801.232
search.first_query ms 61.681 77.668 77.668 41.368 72.185 72.185
search.catch_up s 92.739 98.791 104.979 68.355 68.355 92.909
open.note ms 2.274 5.296 34.235 1.368 4.234 12.606
open.api_get ms 12.275 16.739 32.028 9.572 19.706 340.469
sync.save_ack ms 9.602 35.688 209.367 8.629 14.916 115.846
storm.save_ack ms 17.587 44.747 937.979 13.730 31.191 736.756
journal.catch_up ms 1126.472 1309.691 1309.691 771.246 1541.604 1541.604
cold.index s 33.190 39.207 39.207 22.963 32.186 32.186
cold.startup ms 169.768 213.792 213.792 85.390 110.088 110.088
open.long_note ms 13.182 23.185 23.185 13.927 17.811 17.811
journal.page ms 9.220 14.758 50.788 6.558 10.514 93.871
shutdown ms 88.419 93.827 93.827 65.785 115.179 115.179
storm.edits_per_s edits/s 1281.929 2471.487 2471.487 1555.176 4283.820 4283.820
storm.disk_written MB 49.512 56.533 56.533 44.257 44.376 44.376
trash.delete ms 18.098 28.986 287.089 19.575 33.131 68.809
trash.restore ms 23.266 39.272 301.490 23.498 36.498 298.570
trash.forget ms 11.330 24.394 77.260 11.017 19.061 57.756
mem.idle MB 13.109 13.328 13.328 13.289 13.352 13.352
mem.peak MB 96.254 99.703 99.703 91.637 96.473 96.473
cold.mem_peak MB 119.871 121.469 121.469 117.426 121.172 121.172
idle.rss MB 41.789 41.789 41.789 39.508 39.508 39.508
idle.cpu_pct % 0.000 0.000 0.000 0.000 0.000 0.000
idle.wakeups_per_s /s 0.000 0.000 0.000 0.000 0.000 0.000

hdd-10000

Metric Unit Before p50 Before p95 Before max After p50 After p95 After max
startup.healthz ms 41.033 178.483 178.483 33.838 61.189 61.189
home.first_page ms 31.201 43.028 43.028 18.645 68.831 68.831
home.page ms 1.816 3.533 18.805 1.364 1.815 7.108
home.page_title ms 1.517 2.152 14.762 1.229 2.578 12.484
home.page_tag ms 11.141 16.243 542.228 8.503 17.351 243.223
home.page_next ms 1.913 3.674 23.067 1.496 1.759 24.673
home.page_big ms 33.585 46.160 131.010 33.118 36.892 114.975
search.query ms 3.738 8.538 88.265 4.871 8.764 90.615
search.first_query ms 184.362 199.424 199.424 153.797 266.908 266.908
search.catch_up s 10.035 10.035 12.078 8.024 8.034 10.047
open.note ms 1.351 3.433 25.293 1.310 4.802 32.175
open.api_get ms 35.976 60.643 96.257 37.224 60.436 236.259
sync.save_ack ms 15.036 56.526 1516.069 14.427 49.491 1321.199
storm.save_ack ms 47.024 134.363 741.346 42.665 114.206 496.167
journal.catch_up ms 66.749 194.828 194.828 66.972 135.687 135.687
cold.index s 4.100 5.092 5.092 3.860 4.078 4.078
cold.startup ms 432.376 690.480 690.480 466.030 623.636 623.636
open.long_note ms 18.735 36.723 36.723 17.182 51.035 51.035
journal.page ms 5.897 7.721 31.740 6.140 7.196 16.690
shutdown ms 89.005 228.973 228.973 193.058 263.189 263.189
storm.edits_per_s edits/s 497.648 633.855 633.855 585.738 611.050 611.050
storm.disk_written MB 81.326 91.574 91.574 71.856 80.327 80.327
trash.delete ms 52.399 115.189 262.883 56.079 91.103 245.028
trash.restore ms 72.064 179.774 494.562 73.554 151.461 466.337
trash.forget ms 36.029 85.912 318.037 34.219 61.051 204.856
mem.idle MB 13.242 13.336 13.336 13.199 13.332 13.332
mem.peak MB 39.695 40.633 40.633 39.121 41.074 41.074
cold.mem_peak MB 50.340 53.176 53.176 50.715 51.609 51.609
idle.rss MB 26.441 26.441 26.441 26.727 26.727 26.727
idle.cpu_pct % 0.000 0.000 0.000 0.000 0.000 0.000
idle.wakeups_per_s /s 0.000 0.000 0.000 0.000 0.000 0.000

hdd-100000

Metric Unit Before p50 Before p95 Before max After p50 After p95 After max
startup.healthz ms 104.669 157.592 157.592 66.592 85.778 85.778
home.first_page ms 120.894 136.916 136.916 67.718 86.076 86.076
home.page ms 2.490 10.606 19.555 1.619 2.174 5.770
home.page_title ms 2.074 5.776 26.489 1.327 1.868 12.102
home.page_tag ms 6.993 14.752 252.036 4.923 6.160 183.359
home.page_next ms 2.784 5.371 18.184 1.604 2.346 12.684
home.page_big ms 453.527 668.061 1358.472 193.059 283.536 1016.940
search.query ms 5.676 12.601 730.219 4.606 12.972 707.446
search.first_query ms 338.579 434.254 434.254 402.598 406.983 406.983
search.catch_up s 132.778 142.799 144.976 118.419 118.419 136.895
open.note ms 1.308 6.811 151.554 1.117 2.667 10.359
open.api_get ms 41.418 114.401 349.620 40.827 89.825 298.186
sync.save_ack ms 14.212 82.811 1218.771 14.824 58.937 1995.020
storm.save_ack ms 44.949 129.829 418.613 38.313 101.175 381.548
journal.catch_up ms 901.677 1127.429 1127.429 639.896 1217.029 1217.029
cold.index s 49.445 56.417 56.417 42.414 53.068 53.068
cold.startup ms 862.585 2513.378 2513.378 664.830 1053.712 1053.712
open.long_note ms 11.796 26.785 26.785 9.764 44.867 44.867
journal.page ms 7.448 13.184 32.491 5.727 8.130 29.115
shutdown ms 2414.701 3082.647 3082.647 2179.835 3331.564 3331.564
storm.edits_per_s edits/s 545.469 622.575 622.575 661.722 705.388 705.388
storm.disk_written MB 65.839 67.592 67.592 57.516 63.365 63.365
trash.delete ms 75.191 128.685 239.133 74.444 149.597 403.720
trash.restore ms 87.383 171.128 307.504 90.418 164.083 337.787
trash.forget ms 49.332 101.264 148.389 44.311 101.103 174.414
mem.idle MB 13.289 13.316 13.316 13.223 13.438 13.438
mem.peak MB 93.508 95.859 95.859 91.848 94.980 94.980
cold.mem_peak MB 131.770 136.805 136.805 129.691 136.598 136.598
idle.rss MB 37.938 37.938 37.938 43.309 43.309 43.309
idle.cpu_pct % 0.000 0.000 0.000 0.000 0.000 0.000
idle.wakeups_per_s /s 0.003 0.003 0.003 0.000 0.000 0.000

Aggregate budget findings (same percentile method as the harness):

before aggregated gated breaches (same percentile method as the harness):
ssd-10000: none
ssd-100000: none
hdd-10000: cold.startup: p95 690.480 > 500; p50 run spread 76.1%; open.api_get: p95 60.643 > 50; p50 run spread 25.1%; sync.save_ack: p95 56.526 > 40; p50 run spread 58.9%
hdd-100000: cold.startup: p95 2513.378 > 500; p50 run spread 220.6%; home.first_page: p95 136.916 > 100; p50 run spread 64.4%; open.api_get: p95 114.401 > 50; p50 run spread 40.5%; shutdown: p95 3082.647 > 1000; p50 run spread 58.7%; sync.save_ack: p95 82.811 > 40; p50 run spread 27.9%
final aggregated gated breaches (same percentile method as the harness):
ssd-10000: none
ssd-100000: none
hdd-10000: cold.startup: p95 623.636 > 500; p50 run spread 65.6%; open.api_get: p95 60.436 > 50; p50 run spread 10.4%; sync.save_ack: p95 49.491 > 40; p50 run spread 17.7%
hdd-100000: cold.startup: p95 1053.712 > 500; p50 run spread 120.2%; open.api_get: p95 89.825 > 50; p50 run spread 16.7%; shutdown: p95 3331.564 > 1000; p50 run spread 144.9%; sync.save_ack: p95 58.937 > 40; p50 run spread 22.0%

After gate messages below are verbatim. These are budget failures, not correctness failures.

final-ssd-10000-1: exit=0
final-ssd-100000-1: exit=0
final-hdd-10000-1: exit=1
over budget: 10000 notes: open.api_get p95 60.4 > 50
over budget: 10000 notes: sync.save_ack p95 45.9 > 40
final-hdd-100000-1: exit=1
over budget: 100000 notes: cold.startup p95 719 > 500
over budget: 100000 notes: open.api_get p95 79.8 > 50
over budget: 100000 notes: shutdown p95 3332 > 1000
over budget: 100000 notes: sync.save_ack p95 58.9 > 40
final-ssd-10000-2: exit=0
final-ssd-100000-2: exit=0
final-hdd-10000-2: exit=1
over budget: 10000 notes: cold.startup p95 624 > 500
over budget: 10000 notes: open.api_get p95 67.7 > 50
over budget: 10000 notes: open.note p95 15.9 > 15
over budget: 10000 notes: sync.save_ack p95 61.5 > 40
final-hdd-100000-2: exit=1
over budget: 100000 notes: open.api_get p95 130 > 50
over budget: 100000 notes: shutdown p95 3226 > 1000
over budget: 100000 notes: sync.save_ack p95 42.8 > 40
final-ssd-10000-3: exit=0
final-ssd-100000-3: exit=0
final-hdd-10000-3: exit=1
over budget: 10000 notes: cold.startup p95 542 > 500
over budget: 10000 notes: open.api_get p95 75.1 > 50
over budget: 10000 notes: sync.save_ack p95 49.5 > 40
final-hdd-100000-3: exit=1
over budget: 100000 notes: open.api_get p95 77.7 > 50
over budget: 100000 notes: sync.save_ack p95 50.6 > 40
final-ssd-10000-4: exit=0
final-ssd-100000-4: exit=1
over budget: 100000 notes: open.api_get p95 58.6 > 50
final-hdd-10000-4: exit=1
over budget: 10000 notes: sync.save_ack p95 51.8 > 40
final-hdd-100000-4: exit=1
over budget: 100000 notes: cold.startup p95 1054 > 500
over budget: 100000 notes: open.api_get p95 89.8 > 50
over budget: 100000 notes: sync.save_ack p95 65.8 > 40
final-ssd-10000-5: exit=0
final-ssd-100000-5: exit=0
final-hdd-10000-5: exit=1
over budget: 10000 notes: open.api_get p95 56.6 > 50
over budget: 10000 notes: open.note p95 19.9 > 15
over budget: 10000 notes: sync.save_ack p95 43.8 > 40
final-hdd-100000-5: exit=1
over budget: 100000 notes: cold.startup p95 665 > 500
over budget: 100000 notes: open.api_get p95 102 > 50
over budget: 100000 notes: shutdown p95 2180 > 1000
over budget: 100000 notes: sync.save_ack p95 89.4 > 40

The additional full HDD/100k validation after run and final 20-client probes are still running. Their complete results will follow before the PR is opened.

The primary before/after matrix is complete and audited: 40 reports, five per phase/disk/size, matching fixtures, required metrics present and no correctness failures. Only the comparable before-* and final-* builds are used. Aggregate gated budgets pass on SSD; HDD still exceeds cold startup, API get, save ack and (100k) shutdown limits. Eleven individual after invocations returned gate exit 1; ten were HDD and one was an SSD API-get sample. Before/after server performance. Base 312bc892ae17f513f141cd8d09abb62ed864c6d5; head be555c1dfc1f1da75ac8bb9c74b3cadf3fcf793b. Same release toolchain, fixture seed and harness; dropped page cache before each start. Five interleaved runs per cell. Latency distributions use the median of per-run p50/p95, and max is the largest sample. Single-value metrics pool the runs. Idle measurements use one 300-second sample per cell after rooms settle. Both binaries were built with matching Cargo feature unification: `cargo build --release --locked -j4 -p calternal -p calternal-perf -p calternal-fixtures`. Each invocation resets from the pristine seed-1 fixture and includes one cold and one warm run; pass 5 also includes the stock 60-second typing load and extra quiet checks. Memory follows the harness MB label (MiB). ssd-10000 | Metric | Unit | Before p50 | Before p95 | Before max | After p50 | After p95 | After max | |---|---|---:|---:|---:|---:|---:|---:| | startup.healthz | ms | 32.293 | 46.417 | 46.417 | 30.235 | 37.659 | 37.659 | | home.first_page | ms | 12.030 | 26.745 | 26.745 | 11.365 | 14.541 | 14.541 | | home.page | ms | 1.379 | 2.096 | 7.982 | 1.405 | 1.693 | 4.276 | | home.page_title | ms | 1.238 | 3.118 | 5.634 | 1.150 | 1.705 | 4.975 | | home.page_tag | ms | 9.242 | 12.737 | 182.386 | 8.669 | 11.246 | 87.584 | | home.page_next | ms | 1.417 | 2.107 | 4.798 | 1.281 | 1.773 | 3.552 | | home.page_big | ms | 28.815 | 34.508 | 50.323 | 28.390 | 29.420 | 34.461 | | search.query | ms | 3.554 | 7.285 | 65.865 | 3.678 | 10.086 | 75.070 | | search.first_query | ms | 27.849 | 43.668 | 43.668 | 27.526 | 79.223 | 79.223 | | search.catch_up | s | 4.012 | 6.016 | 6.027 | 4.026 | 4.026 | 6.034 | | open.note | ms | 1.254 | 2.620 | 8.883 | 1.073 | 2.803 | 5.073 | | open.api_get | ms | 7.650 | 9.381 | 14.894 | 7.199 | 8.571 | 14.859 | | sync.save_ack | ms | 5.985 | 8.562 | 92.444 | 5.903 | 10.210 | 348.306 | | storm.save_ack | ms | 10.403 | 23.176 | 113.846 | 8.138 | 22.508 | 141.278 | | journal.catch_up | ms | 62.046 | 94.674 | 94.674 | 61.780 | 65.217 | 65.217 | | cold.index | s | 2.056 | 2.267 | 2.267 | 1.498 | 1.677 | 1.677 | | cold.startup | ms | 97.708 | 134.832 | 134.832 | 70.602 | 79.012 | 79.012 | | open.long_note | ms | 9.570 | 12.641 | 12.641 | 9.955 | 12.699 | 12.699 | | journal.page | ms | 5.588 | 7.392 | 14.115 | 5.398 | 6.435 | 6.830 | | shutdown | ms | 66.128 | 67.453 | 67.453 | 45.918 | 67.229 | 67.229 | | storm.edits_per_s | edits/s | 2217.073 | 3214.040 | 3214.040 | 2501.178 | 3980.039 | 3980.039 | | storm.disk_written | MB | 50.520 | 54.227 | 54.227 | 50.901 | 52.302 | 52.302 | | trash.delete | ms | 13.784 | 23.300 | 78.310 | 12.287 | 20.364 | 73.600 | | trash.restore | ms | 16.036 | 26.539 | 174.210 | 15.090 | 27.179 | 60.917 | | trash.forget | ms | 7.604 | 12.991 | 47.241 | 7.399 | 11.601 | 29.835 | | mem.idle | MB | 13.199 | 13.414 | 13.414 | 13.230 | 14.031 | 14.031 | | mem.peak | MB | 38.957 | 40.543 | 40.543 | 37.152 | 40.902 | 40.902 | | cold.mem_peak | MB | 50.082 | 50.875 | 50.875 | 51.672 | 51.711 | 51.711 | | idle.rss | MB | 26.535 | 26.535 | 26.535 | 26.758 | 26.758 | 26.758 | | idle.cpu_pct | % | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | | idle.wakeups_per_s | /s | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | ssd-100000 | Metric | Unit | Before p50 | Before p95 | Before max | After p50 | After p95 | After max | |---|---|---:|---:|---:|---:|---:|---:| | startup.healthz | ms | 47.894 | 89.280 | 89.280 | 37.325 | 49.970 | 49.970 | | home.first_page | ms | 55.071 | 99.624 | 99.624 | 18.709 | 41.162 | 41.162 | | home.page | ms | 2.361 | 3.694 | 8.512 | 2.088 | 2.767 | 5.372 | | home.page_title | ms | 2.588 | 7.041 | 11.183 | 1.893 | 4.152 | 55.433 | | home.page_tag | ms | 6.699 | 11.686 | 299.157 | 5.668 | 7.760 | 176.247 | | home.page_next | ms | 2.708 | 5.130 | 14.808 | 2.125 | 3.301 | 11.855 | | home.page_big | ms | 411.416 | 643.016 | 1049.351 | 133.137 | 220.357 | 914.898 | | search.query | ms | 5.773 | 13.903 | 760.582 | 4.587 | 9.729 | 801.232 | | search.first_query | ms | 61.681 | 77.668 | 77.668 | 41.368 | 72.185 | 72.185 | | search.catch_up | s | 92.739 | 98.791 | 104.979 | 68.355 | 68.355 | 92.909 | | open.note | ms | 2.274 | 5.296 | 34.235 | 1.368 | 4.234 | 12.606 | | open.api_get | ms | 12.275 | 16.739 | 32.028 | 9.572 | 19.706 | 340.469 | | sync.save_ack | ms | 9.602 | 35.688 | 209.367 | 8.629 | 14.916 | 115.846 | | storm.save_ack | ms | 17.587 | 44.747 | 937.979 | 13.730 | 31.191 | 736.756 | | journal.catch_up | ms | 1126.472 | 1309.691 | 1309.691 | 771.246 | 1541.604 | 1541.604 | | cold.index | s | 33.190 | 39.207 | 39.207 | 22.963 | 32.186 | 32.186 | | cold.startup | ms | 169.768 | 213.792 | 213.792 | 85.390 | 110.088 | 110.088 | | open.long_note | ms | 13.182 | 23.185 | 23.185 | 13.927 | 17.811 | 17.811 | | journal.page | ms | 9.220 | 14.758 | 50.788 | 6.558 | 10.514 | 93.871 | | shutdown | ms | 88.419 | 93.827 | 93.827 | 65.785 | 115.179 | 115.179 | | storm.edits_per_s | edits/s | 1281.929 | 2471.487 | 2471.487 | 1555.176 | 4283.820 | 4283.820 | | storm.disk_written | MB | 49.512 | 56.533 | 56.533 | 44.257 | 44.376 | 44.376 | | trash.delete | ms | 18.098 | 28.986 | 287.089 | 19.575 | 33.131 | 68.809 | | trash.restore | ms | 23.266 | 39.272 | 301.490 | 23.498 | 36.498 | 298.570 | | trash.forget | ms | 11.330 | 24.394 | 77.260 | 11.017 | 19.061 | 57.756 | | mem.idle | MB | 13.109 | 13.328 | 13.328 | 13.289 | 13.352 | 13.352 | | mem.peak | MB | 96.254 | 99.703 | 99.703 | 91.637 | 96.473 | 96.473 | | cold.mem_peak | MB | 119.871 | 121.469 | 121.469 | 117.426 | 121.172 | 121.172 | | idle.rss | MB | 41.789 | 41.789 | 41.789 | 39.508 | 39.508 | 39.508 | | idle.cpu_pct | % | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | | idle.wakeups_per_s | /s | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | hdd-10000 | Metric | Unit | Before p50 | Before p95 | Before max | After p50 | After p95 | After max | |---|---|---:|---:|---:|---:|---:|---:| | startup.healthz | ms | 41.033 | 178.483 | 178.483 | 33.838 | 61.189 | 61.189 | | home.first_page | ms | 31.201 | 43.028 | 43.028 | 18.645 | 68.831 | 68.831 | | home.page | ms | 1.816 | 3.533 | 18.805 | 1.364 | 1.815 | 7.108 | | home.page_title | ms | 1.517 | 2.152 | 14.762 | 1.229 | 2.578 | 12.484 | | home.page_tag | ms | 11.141 | 16.243 | 542.228 | 8.503 | 17.351 | 243.223 | | home.page_next | ms | 1.913 | 3.674 | 23.067 | 1.496 | 1.759 | 24.673 | | home.page_big | ms | 33.585 | 46.160 | 131.010 | 33.118 | 36.892 | 114.975 | | search.query | ms | 3.738 | 8.538 | 88.265 | 4.871 | 8.764 | 90.615 | | search.first_query | ms | 184.362 | 199.424 | 199.424 | 153.797 | 266.908 | 266.908 | | search.catch_up | s | 10.035 | 10.035 | 12.078 | 8.024 | 8.034 | 10.047 | | open.note | ms | 1.351 | 3.433 | 25.293 | 1.310 | 4.802 | 32.175 | | open.api_get | ms | 35.976 | 60.643 | 96.257 | 37.224 | 60.436 | 236.259 | | sync.save_ack | ms | 15.036 | 56.526 | 1516.069 | 14.427 | 49.491 | 1321.199 | | storm.save_ack | ms | 47.024 | 134.363 | 741.346 | 42.665 | 114.206 | 496.167 | | journal.catch_up | ms | 66.749 | 194.828 | 194.828 | 66.972 | 135.687 | 135.687 | | cold.index | s | 4.100 | 5.092 | 5.092 | 3.860 | 4.078 | 4.078 | | cold.startup | ms | 432.376 | 690.480 | 690.480 | 466.030 | 623.636 | 623.636 | | open.long_note | ms | 18.735 | 36.723 | 36.723 | 17.182 | 51.035 | 51.035 | | journal.page | ms | 5.897 | 7.721 | 31.740 | 6.140 | 7.196 | 16.690 | | shutdown | ms | 89.005 | 228.973 | 228.973 | 193.058 | 263.189 | 263.189 | | storm.edits_per_s | edits/s | 497.648 | 633.855 | 633.855 | 585.738 | 611.050 | 611.050 | | storm.disk_written | MB | 81.326 | 91.574 | 91.574 | 71.856 | 80.327 | 80.327 | | trash.delete | ms | 52.399 | 115.189 | 262.883 | 56.079 | 91.103 | 245.028 | | trash.restore | ms | 72.064 | 179.774 | 494.562 | 73.554 | 151.461 | 466.337 | | trash.forget | ms | 36.029 | 85.912 | 318.037 | 34.219 | 61.051 | 204.856 | | mem.idle | MB | 13.242 | 13.336 | 13.336 | 13.199 | 13.332 | 13.332 | | mem.peak | MB | 39.695 | 40.633 | 40.633 | 39.121 | 41.074 | 41.074 | | cold.mem_peak | MB | 50.340 | 53.176 | 53.176 | 50.715 | 51.609 | 51.609 | | idle.rss | MB | 26.441 | 26.441 | 26.441 | 26.727 | 26.727 | 26.727 | | idle.cpu_pct | % | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | | idle.wakeups_per_s | /s | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | hdd-100000 | Metric | Unit | Before p50 | Before p95 | Before max | After p50 | After p95 | After max | |---|---|---:|---:|---:|---:|---:|---:| | startup.healthz | ms | 104.669 | 157.592 | 157.592 | 66.592 | 85.778 | 85.778 | | home.first_page | ms | 120.894 | 136.916 | 136.916 | 67.718 | 86.076 | 86.076 | | home.page | ms | 2.490 | 10.606 | 19.555 | 1.619 | 2.174 | 5.770 | | home.page_title | ms | 2.074 | 5.776 | 26.489 | 1.327 | 1.868 | 12.102 | | home.page_tag | ms | 6.993 | 14.752 | 252.036 | 4.923 | 6.160 | 183.359 | | home.page_next | ms | 2.784 | 5.371 | 18.184 | 1.604 | 2.346 | 12.684 | | home.page_big | ms | 453.527 | 668.061 | 1358.472 | 193.059 | 283.536 | 1016.940 | | search.query | ms | 5.676 | 12.601 | 730.219 | 4.606 | 12.972 | 707.446 | | search.first_query | ms | 338.579 | 434.254 | 434.254 | 402.598 | 406.983 | 406.983 | | search.catch_up | s | 132.778 | 142.799 | 144.976 | 118.419 | 118.419 | 136.895 | | open.note | ms | 1.308 | 6.811 | 151.554 | 1.117 | 2.667 | 10.359 | | open.api_get | ms | 41.418 | 114.401 | 349.620 | 40.827 | 89.825 | 298.186 | | sync.save_ack | ms | 14.212 | 82.811 | 1218.771 | 14.824 | 58.937 | 1995.020 | | storm.save_ack | ms | 44.949 | 129.829 | 418.613 | 38.313 | 101.175 | 381.548 | | journal.catch_up | ms | 901.677 | 1127.429 | 1127.429 | 639.896 | 1217.029 | 1217.029 | | cold.index | s | 49.445 | 56.417 | 56.417 | 42.414 | 53.068 | 53.068 | | cold.startup | ms | 862.585 | 2513.378 | 2513.378 | 664.830 | 1053.712 | 1053.712 | | open.long_note | ms | 11.796 | 26.785 | 26.785 | 9.764 | 44.867 | 44.867 | | journal.page | ms | 7.448 | 13.184 | 32.491 | 5.727 | 8.130 | 29.115 | | shutdown | ms | 2414.701 | 3082.647 | 3082.647 | 2179.835 | 3331.564 | 3331.564 | | storm.edits_per_s | edits/s | 545.469 | 622.575 | 622.575 | 661.722 | 705.388 | 705.388 | | storm.disk_written | MB | 65.839 | 67.592 | 67.592 | 57.516 | 63.365 | 63.365 | | trash.delete | ms | 75.191 | 128.685 | 239.133 | 74.444 | 149.597 | 403.720 | | trash.restore | ms | 87.383 | 171.128 | 307.504 | 90.418 | 164.083 | 337.787 | | trash.forget | ms | 49.332 | 101.264 | 148.389 | 44.311 | 101.103 | 174.414 | | mem.idle | MB | 13.289 | 13.316 | 13.316 | 13.223 | 13.438 | 13.438 | | mem.peak | MB | 93.508 | 95.859 | 95.859 | 91.848 | 94.980 | 94.980 | | cold.mem_peak | MB | 131.770 | 136.805 | 136.805 | 129.691 | 136.598 | 136.598 | | idle.rss | MB | 37.938 | 37.938 | 37.938 | 43.309 | 43.309 | 43.309 | | idle.cpu_pct | % | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | | idle.wakeups_per_s | /s | 0.003 | 0.003 | 0.003 | 0.000 | 0.000 | 0.000 | Aggregate budget findings (same percentile method as the harness): ```text before aggregated gated breaches (same percentile method as the harness): ssd-10000: none ssd-100000: none hdd-10000: cold.startup: p95 690.480 > 500; p50 run spread 76.1%; open.api_get: p95 60.643 > 50; p50 run spread 25.1%; sync.save_ack: p95 56.526 > 40; p50 run spread 58.9% hdd-100000: cold.startup: p95 2513.378 > 500; p50 run spread 220.6%; home.first_page: p95 136.916 > 100; p50 run spread 64.4%; open.api_get: p95 114.401 > 50; p50 run spread 40.5%; shutdown: p95 3082.647 > 1000; p50 run spread 58.7%; sync.save_ack: p95 82.811 > 40; p50 run spread 27.9% final aggregated gated breaches (same percentile method as the harness): ssd-10000: none ssd-100000: none hdd-10000: cold.startup: p95 623.636 > 500; p50 run spread 65.6%; open.api_get: p95 60.436 > 50; p50 run spread 10.4%; sync.save_ack: p95 49.491 > 40; p50 run spread 17.7% hdd-100000: cold.startup: p95 1053.712 > 500; p50 run spread 120.2%; open.api_get: p95 89.825 > 50; p50 run spread 16.7%; shutdown: p95 3331.564 > 1000; p50 run spread 144.9%; sync.save_ack: p95 58.937 > 40; p50 run spread 22.0% ``` After gate messages below are verbatim. These are budget failures, not correctness failures. ```text final-ssd-10000-1: exit=0 final-ssd-100000-1: exit=0 final-hdd-10000-1: exit=1 over budget: 10000 notes: open.api_get p95 60.4 > 50 over budget: 10000 notes: sync.save_ack p95 45.9 > 40 final-hdd-100000-1: exit=1 over budget: 100000 notes: cold.startup p95 719 > 500 over budget: 100000 notes: open.api_get p95 79.8 > 50 over budget: 100000 notes: shutdown p95 3332 > 1000 over budget: 100000 notes: sync.save_ack p95 58.9 > 40 final-ssd-10000-2: exit=0 final-ssd-100000-2: exit=0 final-hdd-10000-2: exit=1 over budget: 10000 notes: cold.startup p95 624 > 500 over budget: 10000 notes: open.api_get p95 67.7 > 50 over budget: 10000 notes: open.note p95 15.9 > 15 over budget: 10000 notes: sync.save_ack p95 61.5 > 40 final-hdd-100000-2: exit=1 over budget: 100000 notes: open.api_get p95 130 > 50 over budget: 100000 notes: shutdown p95 3226 > 1000 over budget: 100000 notes: sync.save_ack p95 42.8 > 40 final-ssd-10000-3: exit=0 final-ssd-100000-3: exit=0 final-hdd-10000-3: exit=1 over budget: 10000 notes: cold.startup p95 542 > 500 over budget: 10000 notes: open.api_get p95 75.1 > 50 over budget: 10000 notes: sync.save_ack p95 49.5 > 40 final-hdd-100000-3: exit=1 over budget: 100000 notes: open.api_get p95 77.7 > 50 over budget: 100000 notes: sync.save_ack p95 50.6 > 40 final-ssd-10000-4: exit=0 final-ssd-100000-4: exit=1 over budget: 100000 notes: open.api_get p95 58.6 > 50 final-hdd-10000-4: exit=1 over budget: 10000 notes: sync.save_ack p95 51.8 > 40 final-hdd-100000-4: exit=1 over budget: 100000 notes: cold.startup p95 1054 > 500 over budget: 100000 notes: open.api_get p95 89.8 > 50 over budget: 100000 notes: sync.save_ack p95 65.8 > 40 final-ssd-10000-5: exit=0 final-ssd-100000-5: exit=0 final-hdd-10000-5: exit=1 over budget: 10000 notes: open.api_get p95 56.6 > 50 over budget: 10000 notes: open.note p95 19.9 > 15 over budget: 10000 notes: sync.save_ack p95 43.8 > 40 final-hdd-100000-5: exit=1 over budget: 100000 notes: cold.startup p95 665 > 500 over budget: 100000 notes: open.api_get p95 102 > 50 over budget: 100000 notes: shutdown p95 2180 > 1000 over budget: 100000 notes: sync.save_ack p95 89.4 > 40 ``` The additional full HDD/100k validation after run and final 20-client probes are still running. Their complete results will follow before the PR is opened.
Author
Owner

All measurements are complete at be555c1dfc: 40 primary cold/warm invocations plus two full HDD validation invocations, with no correctness failures. All four 20-client probes verified their 1,000 durable appends exactly once. All 10 full idle windows met CPU and wakeup budgets (zero CPU ticks throughout; at most one wakeup in 300 seconds).

The full paired HDD validation idle RSS is 47.19921875 MiB before and 47.2109375 MiB after, a 0.01171875 MiB difference. The primary after RSS lies within the observed unchanged-baseline variation. Together with the 20 interleaved startup checks, the measurements do not show a sustained idle RSS increase.

Worst-case results remain mixed. SSD append p99 rose from 155.103 to 302.955 ms, and HDD search p99 from 1113.187 to 1851.468 ms. HDD append p99 improved from 872.065 to 593.469 ms. These are single concurrency probes per phase/disk in a closed-loop workload. Faster reads can increase the subsequent write rate, so the table is evidence of observed behavior rather than proof that every tail improved. The PR will be marked work in progress for these tail regressions and the remaining HDD gate failures.

20 concurrent clients on an indexed 100k-note Home, after note and search indexes settle. No think time. Each client runs 50 mixed rounds with page, note, search and durable append operations. Each operation has 1,000 samples per phase and disk; all 1,000 appended markers were verified exactly once. Latencies are milliseconds.

Disk Operation Before p50 Before p95 Before p99 Before max After p50 After p95 After p99 After max
ssd notes.list 23.954 62.956 81.148 106.318 12.379 30.373 44.321 73.946
ssd notes.get 10.323 36.480 74.479 140.765 5.324 18.200 47.674 104.773
ssd search.query 76.503 184.521 245.662 286.207 56.592 121.839 171.461 275.802
ssd notes.append 55.499 112.510 155.103 236.001 31.102 202.308 302.955 363.992
hdd notes.list 7.750 17.816 22.687 25.815 12.669 29.402 36.163 50.615
hdd notes.get 3.937 13.103 566.419 698.729 6.451 20.525 100.471 581.054
hdd search.query 32.810 322.049 1113.187 1707.499 54.615 244.054 1851.468 1972.262
hdd notes.append 81.628 499.968 872.065 879.829 91.105 325.264 593.469 646.600

ssd post-load RSS / peak RSS (MiB): before 102.371 / 102.371; after 91.383 / 91.383.

hdd post-load RSS / peak RSS (MiB): before 97.363 / 97.363; after 103.289 / 103.289.

Additional HDD/100k validation pair. One full cold and warm run per binary, including the same 60-second typing load and 300-second idle window. Both runs reset the completed baseline work directory from the same pristine fixture. These are separate from the primary five-run table. Each run held the VM lock.

Metric Unit Before p50 Before p95 Before max After p50 After p95 After max
cold.disk_written MB 1304.728 1304.728 1304.728 1305.670 1305.670 1305.670
cold.first_page ms 373.639 373.639 373.639 367.434 367.434 367.434
cold.index s 43.431 43.431 43.431 39.059 39.059 39.059
cold.mem_peak MB 131.043 131.043 131.043 117.648 117.648 117.648
cold.notes_per_s notes/s 2302.512 2302.512 2302.512 2560.259 2560.259 2560.259
cold.startup ms 593.246 593.246 593.246 667.550 667.550 667.550
home.first_page ms 15.643 15.643 15.643 73.544 73.544 73.544
home.page ms 1.405 1.628 1.906 3.082 8.089 11.156
home.page_big ms 122.757 176.882 176.882 743.395 1099.204 1099.204
home.page_next ms 1.384 1.605 1.630 3.979 7.157 7.837
home.page_tag ms 3.125 4.816 34.484 7.390 12.739 323.881
home.page_title ms 1.035 1.339 2.133 3.563 6.703 11.092
idle.cpu_pct % 0.000 0.000 0.000 0.000 0.000 0.000
idle.cpu_ticks ticks 0.000 0.000 0.000 0.000 0.000 0.000
idle.rss MB 47.199 47.199 47.199 47.211 47.211 47.211
idle.threads count 11.000 11.000 11.000 11.000 11.000 11.000
idle.wakeups_per_s /s 0.000 0.000 0.000 0.000 0.000 0.000
journal.catch_up ms 542.410 542.410 542.410 1221.514 1221.514 1221.514
journal.entries count 100000.000 100000.000 100000.000 100000.000 100000.000 100000.000
journal.page ms 4.681 6.579 27.054 10.609 16.773 23.871
load.typing_cpu_pct % 0.783 0.783 0.783 0.567 0.567 0.567
load.typing_wakeups_per_s /s 55.332 55.332 55.332 55.265 55.265 55.265
mem.after_first_page MB 17.133 17.133 17.133 18.059 18.059 18.059
mem.after_opens MB 95.359 95.359 95.359 66.531 66.531 66.531
mem.after_search MB 78.797 78.797 78.797 80.504 80.504 80.504
mem.idle MB 12.961 12.961 12.961 13.043 13.043 13.043
mem.peak MB 95.090 95.090 95.090 92.934 92.934 92.934
open.api_get ms 40.115 71.687 236.115 38.124 156.442 163.155
open.long_note ms 10.495 10.495 10.495 15.291 15.291 15.291
open.note ms 1.018 4.523 5.245 3.205 16.219 71.493
search.catch_up s 2.016 120.514 120.514 2.014 128.568 128.568
search.first_query ms 395.933 395.933 395.933 175.176 175.176 175.176
search.query ms 6.598 18.225 811.361 3.694 16.190 586.389
shutdown ms 2702.634 2702.634 2702.634 5314.935 5314.935 5314.935
startup.healthz ms 57.926 57.926 57.926 79.256 79.256 79.256
storm.converge ms 269.426 269.426 269.426 191.659 191.659 191.659
storm.disk_written MB 64.700 64.700 64.700 59.011 59.011 59.011
storm.dropped_clients count 0.000 0.000 0.000 0.000 0.000 0.000
storm.edits_per_s edits/s 601.255 601.255 601.255 650.046 650.046 650.046
storm.outside_edits count 34.000 34.000 34.000 31.000 31.000 31.000
storm.save_ack ms 41.215 108.736 372.109 37.137 109.080 300.442
storm.typing s 16.632 16.632 16.632 15.384 15.384 15.384
sync.round_trip ms 0.845 3.511 138.724 0.516 0.645 192.934
sync.save_ack ms 13.696 66.096 211.471 11.229 62.093 382.697
trash.delete ms 67.022 229.238 286.516 102.947 178.605 297.824
trash.forget ms 43.300 79.738 95.129 60.023 133.964 141.339
trash.restore ms 96.112 160.759 177.909 108.134 228.827 339.569

Validation gate output, verbatim:

memory-before-hdd-100000: exit=1
over budget: 100000 notes: cold.startup p95 593 > 500
over budget: 100000 notes: open.api_get p95 71.7 > 50
over budget: 100000 notes: shutdown p95 2703 > 1000
over budget: 100000 notes: sync.save_ack p95 66.1 > 40
memory-final-hdd-100000: exit=1
over budget: 100000 notes: cold.startup p95 668 > 500
over budget: 100000 notes: open.api_get p95 156 > 50
over budget: 100000 notes: open.note p95 16.2 > 15
over budget: 100000 notes: shutdown p95 5315 > 1000
over budget: 100000 notes: sync.save_ack p95 62.1 > 40
All measurements are complete at be555c1dfc1f1da75ac8bb9c74b3cadf3fcf793b: 40 primary cold/warm invocations plus two full HDD validation invocations, with no correctness failures. All four 20-client probes verified their 1,000 durable appends exactly once. All 10 full idle windows met CPU and wakeup budgets (zero CPU ticks throughout; at most one wakeup in 300 seconds). The full paired HDD validation idle RSS is 47.19921875 MiB before and 47.2109375 MiB after, a 0.01171875 MiB difference. The primary after RSS lies within the observed unchanged-baseline variation. Together with the 20 interleaved startup checks, the measurements do not show a sustained idle RSS increase. Worst-case results remain mixed. SSD append p99 rose from 155.103 to 302.955 ms, and HDD search p99 from 1113.187 to 1851.468 ms. HDD append p99 improved from 872.065 to 593.469 ms. These are single concurrency probes per phase/disk in a closed-loop workload. Faster reads can increase the subsequent write rate, so the table is evidence of observed behavior rather than proof that every tail improved. The PR will be marked work in progress for these tail regressions and the remaining HDD gate failures. 20 concurrent clients on an indexed 100k-note Home, after note and search indexes settle. No think time. Each client runs 50 mixed rounds with page, note, search and durable append operations. Each operation has 1,000 samples per phase and disk; all 1,000 appended markers were verified exactly once. Latencies are milliseconds. | Disk | Operation | Before p50 | Before p95 | Before p99 | Before max | After p50 | After p95 | After p99 | After max | |---|---|---:|---:|---:|---:|---:|---:|---:|---:| | ssd | notes.list | 23.954 | 62.956 | 81.148 | 106.318 | 12.379 | 30.373 | 44.321 | 73.946 | | ssd | notes.get | 10.323 | 36.480 | 74.479 | 140.765 | 5.324 | 18.200 | 47.674 | 104.773 | | ssd | search.query | 76.503 | 184.521 | 245.662 | 286.207 | 56.592 | 121.839 | 171.461 | 275.802 | | ssd | notes.append | 55.499 | 112.510 | 155.103 | 236.001 | 31.102 | 202.308 | 302.955 | 363.992 | | hdd | notes.list | 7.750 | 17.816 | 22.687 | 25.815 | 12.669 | 29.402 | 36.163 | 50.615 | | hdd | notes.get | 3.937 | 13.103 | 566.419 | 698.729 | 6.451 | 20.525 | 100.471 | 581.054 | | hdd | search.query | 32.810 | 322.049 | 1113.187 | 1707.499 | 54.615 | 244.054 | 1851.468 | 1972.262 | | hdd | notes.append | 81.628 | 499.968 | 872.065 | 879.829 | 91.105 | 325.264 | 593.469 | 646.600 | ssd post-load RSS / peak RSS (MiB): before 102.371 / 102.371; after 91.383 / 91.383. hdd post-load RSS / peak RSS (MiB): before 97.363 / 97.363; after 103.289 / 103.289. Additional HDD/100k validation pair. One full cold and warm run per binary, including the same 60-second typing load and 300-second idle window. Both runs reset the completed baseline work directory from the same pristine fixture. These are separate from the primary five-run table. Each run held the VM lock. | Metric | Unit | Before p50 | Before p95 | Before max | After p50 | After p95 | After max | |---|---|---:|---:|---:|---:|---:|---:| | cold.disk_written | MB | 1304.728 | 1304.728 | 1304.728 | 1305.670 | 1305.670 | 1305.670 | | cold.first_page | ms | 373.639 | 373.639 | 373.639 | 367.434 | 367.434 | 367.434 | | cold.index | s | 43.431 | 43.431 | 43.431 | 39.059 | 39.059 | 39.059 | | cold.mem_peak | MB | 131.043 | 131.043 | 131.043 | 117.648 | 117.648 | 117.648 | | cold.notes_per_s | notes/s | 2302.512 | 2302.512 | 2302.512 | 2560.259 | 2560.259 | 2560.259 | | cold.startup | ms | 593.246 | 593.246 | 593.246 | 667.550 | 667.550 | 667.550 | | home.first_page | ms | 15.643 | 15.643 | 15.643 | 73.544 | 73.544 | 73.544 | | home.page | ms | 1.405 | 1.628 | 1.906 | 3.082 | 8.089 | 11.156 | | home.page_big | ms | 122.757 | 176.882 | 176.882 | 743.395 | 1099.204 | 1099.204 | | home.page_next | ms | 1.384 | 1.605 | 1.630 | 3.979 | 7.157 | 7.837 | | home.page_tag | ms | 3.125 | 4.816 | 34.484 | 7.390 | 12.739 | 323.881 | | home.page_title | ms | 1.035 | 1.339 | 2.133 | 3.563 | 6.703 | 11.092 | | idle.cpu_pct | % | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | | idle.cpu_ticks | ticks | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | | idle.rss | MB | 47.199 | 47.199 | 47.199 | 47.211 | 47.211 | 47.211 | | idle.threads | count | 11.000 | 11.000 | 11.000 | 11.000 | 11.000 | 11.000 | | idle.wakeups_per_s | /s | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | | journal.catch_up | ms | 542.410 | 542.410 | 542.410 | 1221.514 | 1221.514 | 1221.514 | | journal.entries | count | 100000.000 | 100000.000 | 100000.000 | 100000.000 | 100000.000 | 100000.000 | | journal.page | ms | 4.681 | 6.579 | 27.054 | 10.609 | 16.773 | 23.871 | | load.typing_cpu_pct | % | 0.783 | 0.783 | 0.783 | 0.567 | 0.567 | 0.567 | | load.typing_wakeups_per_s | /s | 55.332 | 55.332 | 55.332 | 55.265 | 55.265 | 55.265 | | mem.after_first_page | MB | 17.133 | 17.133 | 17.133 | 18.059 | 18.059 | 18.059 | | mem.after_opens | MB | 95.359 | 95.359 | 95.359 | 66.531 | 66.531 | 66.531 | | mem.after_search | MB | 78.797 | 78.797 | 78.797 | 80.504 | 80.504 | 80.504 | | mem.idle | MB | 12.961 | 12.961 | 12.961 | 13.043 | 13.043 | 13.043 | | mem.peak | MB | 95.090 | 95.090 | 95.090 | 92.934 | 92.934 | 92.934 | | open.api_get | ms | 40.115 | 71.687 | 236.115 | 38.124 | 156.442 | 163.155 | | open.long_note | ms | 10.495 | 10.495 | 10.495 | 15.291 | 15.291 | 15.291 | | open.note | ms | 1.018 | 4.523 | 5.245 | 3.205 | 16.219 | 71.493 | | search.catch_up | s | 2.016 | 120.514 | 120.514 | 2.014 | 128.568 | 128.568 | | search.first_query | ms | 395.933 | 395.933 | 395.933 | 175.176 | 175.176 | 175.176 | | search.query | ms | 6.598 | 18.225 | 811.361 | 3.694 | 16.190 | 586.389 | | shutdown | ms | 2702.634 | 2702.634 | 2702.634 | 5314.935 | 5314.935 | 5314.935 | | startup.healthz | ms | 57.926 | 57.926 | 57.926 | 79.256 | 79.256 | 79.256 | | storm.converge | ms | 269.426 | 269.426 | 269.426 | 191.659 | 191.659 | 191.659 | | storm.disk_written | MB | 64.700 | 64.700 | 64.700 | 59.011 | 59.011 | 59.011 | | storm.dropped_clients | count | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | | storm.edits_per_s | edits/s | 601.255 | 601.255 | 601.255 | 650.046 | 650.046 | 650.046 | | storm.outside_edits | count | 34.000 | 34.000 | 34.000 | 31.000 | 31.000 | 31.000 | | storm.save_ack | ms | 41.215 | 108.736 | 372.109 | 37.137 | 109.080 | 300.442 | | storm.typing | s | 16.632 | 16.632 | 16.632 | 15.384 | 15.384 | 15.384 | | sync.round_trip | ms | 0.845 | 3.511 | 138.724 | 0.516 | 0.645 | 192.934 | | sync.save_ack | ms | 13.696 | 66.096 | 211.471 | 11.229 | 62.093 | 382.697 | | trash.delete | ms | 67.022 | 229.238 | 286.516 | 102.947 | 178.605 | 297.824 | | trash.forget | ms | 43.300 | 79.738 | 95.129 | 60.023 | 133.964 | 141.339 | | trash.restore | ms | 96.112 | 160.759 | 177.909 | 108.134 | 228.827 | 339.569 | Validation gate output, verbatim: ```text memory-before-hdd-100000: exit=1 over budget: 100000 notes: cold.startup p95 593 > 500 over budget: 100000 notes: open.api_get p95 71.7 > 50 over budget: 100000 notes: shutdown p95 2703 > 1000 over budget: 100000 notes: sync.save_ack p95 66.1 > 40 memory-final-hdd-100000: exit=1 over budget: 100000 notes: cold.startup p95 668 > 500 over budget: 100000 notes: open.api_get p95 156 > 50 over budget: 100000 notes: open.note p95 16.2 > 15 over budget: 100000 notes: shutdown p95 5315 > 1000 over budget: 100000 notes: sync.save_ack p95 62.1 > 40 ```
Author
Owner

Finished the perf squeeze job at head be555c1dfc, on issue/perf-squeeze, based on dev 312bc892ae. The branch is pushed and one PR is open into dev: #514

The PR is marked WIP because HDD performance gates remain red and some concurrent p99/max results worsened. It contains the complete primary before/after table, concurrent tails and validation memory/tail results. Two product commits reduce search-text allocation and skip tag parsing on lines without hashes. Direct same-executable benchmark times fell 63.9% and 59.1%, with identical output. These are function benchmarks, not a claim that every endpoint or tail improved.

All 40 primary reports and both full HDD validation reports have no correctness failures. All four 20-client probes verified 1,000 appends each exactly once. All 10 full idle windows met CPU/wakeup budgets. The paired full idle RSS was 47.199 versus 47.211 MiB; the separate 20-start checks found a 0.051 MiB median difference within process variation.

The before/after perf table: #512 (comment)
Concurrent and additional full validation tables: #512 (comment)

Code gate output below is verbatim for this head. All local heavy code gates ran through the approved build-slot wrapper with four Cargo jobs and the requested external target directory.

cargo fmt --all --check
exit=0

cargo clippy --workspace --all-targets -- -D warnings
    Checking calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/notes)
    Checking calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/daily)
    Checking calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/perf)
    Checking calternal v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/calternal)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.57s
exit=0

cargo test --workspace
   Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/notes)
   Compiling calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/daily)
   Compiling calternal v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/calternal)
   Compiling calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/perf)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 15.22s
     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal-0e2524b9e83bd935)

running 11 tests
test args::tests::defaults_and_flags ... ok
test args::tests::origin_defaults_to_the_local_port ... ok
test args::tests::fix_commands ... ok
test args::tests::migrate_v0 ... ok
test args::tests::user_create ... ok
test args::tests::web_folder ... ok
test args::tests::dev_user_never_on_a_public_address ... ok
test args::tests::user_recover ... ok
test plugins::tests::contract_matches_the_server ... ok
test isolation::bob_reaches_nothing_of_alices_through_any_action ... ok
test isolation::bob_cannot_join_alices_note_room ... ok

test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s

     Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/fix_tz_live-bc5a4bf6584d2af7)

running 2 tests
test fix_without_a_running_server_says_so ... ok
test strip_tz_markers_on_a_live_home_with_a_client_typing ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s

     Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_crash-93cd7b159b871449)

running 2 tests
test kill_nine_mid_tag_rename_renames_each_tag_once ... ok
test kill_nine_never_loses_or_doubles ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.51s

     Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_crash_typing-5a864935c1e5064a)

running 1 test
test kill_nine_while_people_type_loses_and_doubles_nothing ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.37s

     Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_live-c8da14e6fd2209fb)

running 2 tests
test joining_a_missing_note_fails_politely ... ok
test type_over_the_websocket_and_read_it_back ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s

     Running tests/prefs_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/prefs_live-bdf7e4ca59cd64dc)

running 1 test
test preferences_are_saved_checked_and_kept ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s

     Running tests/search_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/search_live-d2de52bf0874bbe2)

running 1 test
test notes_from_everywhere_are_found ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.08s

     Running tests/startup.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/startup-c9f9cd5b7d6ab6fa)

running 5 tests
test a_new_server_prints_a_setup_token ... ok
test recover_only_knows_real_people ... ok
test refuses_dev_user_on_a_public_address ... ok
test refuses_plain_http_on_a_public_origin ... ok
test answers_within_budget ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_auth-5e8eb246e070ea06)

running 12 tests
test config::tests::origins ... ok
test limit::tests::stops_after_the_limit ... ok
test passkeys::tests::ids_round_trip ... ok
test passkeys::tests::names_are_trimmed_short_and_never_empty ... ok
test session::tests::names_are_cleaned ... ok
test setup::tests::names ... ok
test setup::tests::usernames ... ok
test token::tests::setup_tokens_round_trip_through_pasting ... ok
test token::tests::junk_is_not_a_token ... ok
test db::tests::a_version_1_database_gets_passkey_names ... ok
test setup::tests::recover_needs_a_known_person ... ok
test db::tests::opens_twice_and_keeps_schema ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/abuse.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/abuse-5b62c855d6367504)

running 9 tests
test non_json_requests_are_refused ... ok
test oversized_bodies_are_refused ... ok
test open_prompts_are_capped ... ok
test junk_setup_tokens_are_refused_then_rate_limited ... ok
test bad_json_and_unknown_fields_are_refused ... ok
test forged_sessions_get_nowhere ... ok
test nothing_about_the_server_leaks_before_sign_in ... ok
test garbage_credentials_never_crash ... ok
test other_sites_cannot_act_for_you ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s

     Running tests/create.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/create-94fcea8192201cea)

running 6 tests
test an_expired_enrolment_token_is_refused ... ok
test an_earlier_first_owner_token_stops_working ... ok
test names_must_be_usable_and_unique ... ok
test nothing_about_the_person_leaks_before_sign_in ... ok
test an_enrolment_token_works_exactly_once_under_a_storm ... ok
test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s

     Running tests/isolation.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/isolation-e5c44b0d42bee2d9)

running 3 tests
test a_cookie_sent_from_another_sites_page_does_not_count ... ok
test another_persons_passkey_prompt_cannot_be_used_or_cancelled ... ok
test devices_and_passkeys_of_another_person_are_not_found ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s

     Running tests/login.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/login-346109f79b33176b)

running 9 tests
test bearer_tokens_work_like_cookies ... ok
test a_sign_in_answer_cannot_be_replayed ... ok
test sign_in_with_a_passkey_creates_a_new_installation ... ok
test signing_in_shows_up_live_on_another_device ... ok
test sign_out_ends_the_session_immediately ... ok
test signing_out_shows_up_live_on_another_device ... ok
test revoking_another_device_signs_it_out ... ok
test an_unknown_passkey_is_refused ... ok
test sessions_expire_when_unused ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s

     Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/passkeys-841c914424a5e188)

running 7 tests
test the_same_device_cannot_be_added_twice ... ok
test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok
test an_empty_name_is_refused_and_a_long_one_is_cut ... ok
test adding_needs_a_sign_in_and_an_add_prompt_works_once ... ok
test a_removed_passkey_that_is_gone_or_unknown_is_not_found ... ok
test the_last_passkey_cannot_be_removed ... ok
test add_rename_and_remove_each_leave_a_journal_event ... ok

test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s

     Running tests/setup.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/setup-1d2b08d963b28fff)

running 8 tests
test first_owner_needs_a_name ... ok
test a_restart_replaces_the_first_owner_token ... ok
test a_finished_prompt_cannot_be_replayed ... ok
test session_cookie_is_locked_down ... ok
test first_owner_signs_up_with_the_printed_token ... ok
test recovery_adds_a_new_passkey_for_the_same_person ... ok
test a_token_works_exactly_once_under_a_storm ... ok
test an_expired_setup_token_is_refused ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_backdrops-e474982e40fe3a4d)

running 19 tests
test tests::an_upload_is_private_to_the_person_who_made_it ... ok
test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok
test tests::changes_need_our_own_page_and_a_signed_in_person ... ok
test tests::a_photo_unknown_to_us_is_looked_up ... ok
test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok
test tests::bad_ids_never_reach_the_disk_or_the_network ... ok
test tests::picking_is_reported_to_unsplash_once ... ok
test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet
test tests::pictures_from_other_hosts_are_refused ... ok
test tests::nobody_can_read_or_list_someone_elses_uploads ... ok
test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok
test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok
test tests::an_upload_is_kept_once_and_served_back ... ok
test tests::without_a_key_photos_are_off_but_uploads_work ... ok
test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok
test tests::the_same_search_is_answered_once ... ok
test tests::the_real_client_sends_the_key_and_caps_the_size ... ok
test tests::too_many_pixels_are_refused_but_big_files_are_not ... ok
test tests::the_cache_drops_the_oldest_files_past_its_cap ... ok

test result: ok. 18 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.04s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_core-22753e58953721f1)

running 7 tests
test action::tests::namespace_is_enforced ... ok
test error::tests::every_code_has_a_friendly_message ... ok
test batch::tests::stops_at_the_first_error ... ok
test journal::tests::tokens_round_trip ... ok
test batch::tests::visits_everything_once_in_order ... ok
test journal::tests::junk_tokens_ask_for_a_refresh ... ok
test plugin::tests::plugins_stay_in_their_namespace ... ok

test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_daily-253fcac5eaa1e5e5)

running 21 tests
test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok
test day::tests::midnight_follows_the_device_in_ist ... ok
test day::tests::titles_read_like_the_web_app ... ok
test day::tests::names_and_ids ... ok
test tests::shared_vectors ... ok
test tests::any_text_is_safe_to_read_and_plan ... ok
test tests::close_turns_one_open_entry_into_a_range ... ok
test times_tests::a_line_with_only_tags_stays_words ... ok
test times_tests::only_a_day_note_has_times ... ok
test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok
test tests::bad_input_is_refused_kindly ... ok
test times_tests::trailing_tags_on_any_line ... ok
test times_tests::any_line_is_safe ... ok
test tests::an_existing_day_file_is_reused_whatever_its_id ... ok
test tests::opening_the_same_day_at_once_makes_one_note ... ok
test tests::today_follows_the_device_offset ... ok
test tests::log_add_then_close_makes_a_range ... ok
test times_tests::a_log_line_splits_into_times_words_and_tags ... ok
test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok
test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok
test tests::no_file_until_the_first_keystroke ... ok

test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_engine-ff3aa4aa42431a1a)

running 13 tests
test hash::tests::key_order_does_not_matter_but_content_does ... ok
test tests::changes_need_a_key_reads_do_not ... ok
test tests::connected_follows_live_views ... ok
test tests::bad_input_and_unknown_actions_are_friendly ... ok
test tests::a_plugin_cannot_write_outside_its_namespace ... ok
test tests::journal_pages_continue_where_they_stopped ... ok
test tests::a_retry_runs_once_and_replays_the_result ... ok
test tests::users_never_see_each_other ... ok
test tests::identical_calls_at_the_same_moment_run_once ... ok
test tests::no_write_is_lost_while_users_are_released_and_reopened ... ok
test tests::a_huge_job_never_delays_anyone ... ok
test tests::a_user_with_a_live_view_or_a_running_action_is_kept ... ok
test tests::an_idle_user_is_released_and_comes_back_with_nothing_lost ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.51s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fixtures-6f98542429b58355)

running 4 tests
test dates::tests::round_trips_and_formats ... ok
test rng::tests::same_seed_same_numbers ... ok
test tests::same_seed_same_bytes_other_seed_other_bytes ... ok
test tests::looks_like_a_real_home ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fixtures-f234eac8403fa749)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fsio-0087f3cf3ed3c80d)

running 9 tests
test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok
test tests::names_fold_case_and_unicode_form ... ok
test tests::failed_write_keeps_the_old_file ... ok
test tests::only_one_process_owns_a_data_folder ... ok
test tests::case_only_rename_works_and_other_clashes_are_refused ... ok
test tests::unique_names_skip_case_and_form_clashes ... ok
test tests::prepared_writes_land_only_when_placed ... ok
test tests::write_unless_changed_keeps_someone_elses_version ... ok
test tests::big_writes_arrive_whole ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_memory-3b65467e6e94a530)

running 2 tests
test tests::huge_pages_go_off ... ok
test tests::trimming_is_harmless ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_migrate_v0-bd794bebe756a3e2)

running 36 tests
test tests::rules::dry_run_writes_nothing ... ok
test tests::rules::m1_custom_daily_title_and_heading_stay ... ok
test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok
test tests::rules::m10_tz_markers_go_and_other_zones_convert_to_the_notes_zone ... ok
test tests::rules::edited_files_are_never_overwritten_without_asking ... ok
test tests::rules::m2_code_is_never_rewritten ... ok
test tests::rules::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok
test tests::rules::m2_wikilinks_always_become_standard_links ... ok
test tests::rules::m1_daily_notes_get_day_names_ids_and_lose_generated_headings ... ok
test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok
test tests::rules::m2_attachments_that_exist_are_copied_and_relinked ... ok
test tests::units::links_parse_in_every_shape ... ok
test tests::rules::m8_only_notes_and_linked_files_move ... ok
test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok
test tests::rules::m6_conflict_copies_are_not_migrated ... ok
test tests::units::unix_times_become_india_time ... ok
test tzmarker::tests::a_conversion_that_leaves_the_day_is_kept_and_reported ... ok
test tzmarker::tests::code_is_never_touched ... ok
test tests::rules::m5_unreadable_dates_fall_back ... ok
test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok
test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok
test tzmarker::tests::berlin_converts_inside_the_day ... ok
test tests::rules::m7_tasks_blocks_are_stripped_and_listed ... ok
test tests::units::file_names_give_titles ... ok
test tests::units::every_v0_time_shape_converts ... ok
test tzmarker::tests::day_from_a_date_value ... ok
test tzmarker::tests::eu_summer_time_edges ... ok
test tzmarker::tests::no_zone_in_the_note_means_strip_only ... ok
test tzmarker::tests::marker_at_the_end_or_tight_leaves_no_stray_space ... ok
test tzmarker::tests::not_a_marker_is_left_alone ... ok
test tzmarker::tests::same_zone_just_goes ... ok
test tzmarker::tests::second_run_changes_nothing ... ok
test tzmarker::tests::styles_survive_conversion ... ok
test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... ok
test tests::rules::running_twice_gives_the_same_bytes ... ok
test tests::no_new_markers::nothing_writes_a_tz_marker ... ok

test result: ok. 36 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_notes-deecfda7a8462cc2)

running 199 tests
test anchor::tests::lines_by_utf16_index ... ok
test anchor::tests::hash_is_plain_sha256_hex ... ok
test backlinks::tests::links_are_fold_keys_and_lines ... ok
test blocks::tests::finds_list_children_and_heading_sections ... ok
test backlinks::tests::snippets_are_the_trimmed_line ... ok
test blocks::tests::line_edits ... ok
test blocks::tests::titles_from_the_first_sentence ... ok
test blocks::tests::shapes_keep_markers ... ok
test diff::tests::an_inserted_line_starts_at_a_line_start ... ok
test frontmatter::tests::reads_keys ... ok
test diff::tests::small_change_is_a_small_edit ... ok
test frontmatter::tests::set_adds_a_line_or_a_block ... ok
test bulk::undo::tests::inverse_restores_the_text ... ok
test frontmatter::tests::h1_skips_code_and_frontmatter ... ok
test diff::tests::emoji_positions_are_utf16 ... ok
test frontmatter::tests::set_is_utf16_aware ... ok
test frontmatter::tests::set_changes_only_the_value ... ok
test index::tests::a_shared_path_answers_with_the_newest_note ... ok
test index::tests::reload_speed ... ignored
test frontmatter::tests::quoting ... ok
test index::tests::a_torn_tail_cannot_swallow_the_next_durable_mapping ... ok
test index::tests::compacts_when_it_grows ... ok
test links::tests::finds_standard_and_old_style_links ... ok
test index::tests::under_finds_exact_paths_and_descendants_with_folded_names ... ok
test index::tests::survives_reload_renames_and_torn_lines ... ok
test history::tests::appends_are_ordered_and_readable ... ok
test links::tests::nested_brackets_in_text ... ok
test history::tests::pending_save_promotes_to_base ... ok
test links::tests::relative_paths ... ok
test links::tests::resolves_relative_to_the_linking_note ... ok
test links::tests::retarget_follows_the_title_and_keeps_custom_text ... ok
test links::tests::retarget_matches_case_and_unicode_forms ... ok
test links::tests::retarget_from_a_subfolder ... ok
test links::tests::skips_code_images_and_the_web ... ok
test meta::tests::cursors_round_trip_and_reject_junk ... ok
test meta::tests::snippets_skip_frontmatter_and_headings ... ok
test rename::tests::daily_names ... ok
test rename::tests::h1_is_set_or_added ... ok
test room::acks::tests::varuints_round_trip ... ok
test room::edit::tests::checks_bounds_overlap_and_surrogates ... ok
test scan::tests::day_ids_name_their_files ... ok
test search::tests::plain_search_lines_borrow_their_text ... ok
test search::tests::search_lines_keep_link_text_and_replacement_order ... ok
test scan::tests::state_round_trips_and_skips_odd_names ... ok
test search::tests::a_note_becomes_a_document ... ok
test index::tests::unloads_and_reloads ... ok
test smartline::tests::a_plain_line ... ok
test search::tests::titles_fall_back_to_the_file_name ... ok
test tags::front::tests::every_way_of_writing_tags ... ok
test smartline::tests::only_tags_are_words ... ok
test stamp::tests::formats_with_offset ... ok
test smartline::tests::trailing_tags_only ... ok
test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok
test tags::merge::tests::text_tags_go_with_one_space ... ok
test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok
test tags::rewrite::tests::positions_count_utf16 ... ok
test tags::rewrite::tests::properties_change_name_only ... ok
test tags::rewrite::tests::renames_tags_and_nested_tags_only ... ok
test tags::rewrite::tests::renaming_onto_an_existing_tag_merges ... ok
test tags::rewrite::tests::words_code_links_and_headings ... ok
test tags::scan::tests::code_is_never_tags ... ok
test tags::scan::tests::headings_and_quotes_keep_their_tags ... ok
test index::tests::under_keeps_shadowed_paths_for_watcher_removal ... ok
test tags::scan::tests::hash_free_lines_still_open_and_close_code_fences ... ok
test tags::scan::tests::link_targets_and_addresses_are_never_tags ... ok
test tags::scan::tests::not_tags ... ok
test tags::scan::tests::plain_tags ... ok
test tags::tests::nesting_and_cleaning ... ok
test tags::tests::properties_and_text ... ok
test bulk::undo::tests::inverse_roundtrips ... ok
test rename::tests::clash_numbers ... ok
test diff::tests::edits_turn_old_into_new ... ok
test diff::tests::edits_never_split_a_character ... ok
test tests::acks::an_older_lineage_is_refused_before_anything_is_sent ... ok
test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok
test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok
test tests::acks::checks_are_answered_in_order ... ok
test tests::acks::saved_means_the_change_is_in_history ... ok
test tests::acks::lineage_survives_a_restart ... ok
test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok
test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok
test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... ok
test index::tests::answers_like_plain_maps ... ok
test tests::kill9::child ... ok
test index::tests::directory_counts_match_full_scan_after_moves_and_reload ... ok
test tests::anchors::history_folds_typing_and_names_jobs ... ok
test tests::fanout::bursts_converge_and_reach_history ... ok
test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok
test tests::fanout::a_version_always_matches_its_text ... ok
test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok
test tests::kill9::permanent_delete_after_restore_cannot_delete_the_live_note ... ok
test tests::kill9::restore_delete_forget_does_not_resurrect_after_kill ... ok
test tests::kill9::restore_killed_after_its_answer_finishes_once ... ok
test tags::rewrite::tests::only_real_tags_change ... ok
test tests::kill9::delete_killed_after_its_answer_finishes_once ... ok
test tests::kill9::quick_delete_restore_survives_kill ... ok
test tests::listing::filters_by_tag_kind_and_created_range ... ok
test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok
test tests::kill9::quick_restore_delete_survives_kill ... ok
test tests::listing::pages_cover_every_note_once_in_a_stable_order ... ok
test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok
test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok
test tests::opening::identifying_an_already_indexed_file_never_makes_it_a_copy ... ok
test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok
test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok
test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok
test tests::fanout::collaborators_see_typing_before_the_disk ... ok
test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... ok
test tests::outside::missed_watcher_event_is_caught_before_saving ... ok
test tests::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok
test tests::outside::edit_while_closed_is_merged_on_open ... ok
test tests::opening::shutting_down_leaves_the_list_log_empty ... ok
test tests::opening::typing_saved_only_in_history_survives_a_restart_before_the_first_save ... ok
test tests::outside::outside_edit_while_typing_merges ... ok
test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok
test tests::peek::reads_files_without_opening_rooms ... ok
test tests::peek::an_open_room_answers_with_its_live_text ... ok
test tests::pending::apply_places_changes_in_any_order ... ok
test tests::outside::copied_note_gets_a_fresh_id ... ok
test tests::pending::yrs_alone_loses_a_parked_change ... ok
test tests::peek::returns_at_most_fifty ... ok
test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok
test tests::outside::outside_create_and_delete ... ok
test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok
test tests::renames::make_note_moves_the_block_and_undoes_as_one_step ... ok
test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok
test tests::renames::backlinks_list_linked_and_unlinked_mentions ... ok
test tests::renames::move_block_to_another_note_and_back ... ok
test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok
test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok
test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok
test tests::rooms::late_joiner_gets_full_state ... ok
test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok
test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok
test tests::rooms::patches_use_utf16_positions ... ok
test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok
test tests::rooms::retried_create_makes_one_note ... ok
test tests::rooms::retried_change_applies_once ... ok
test tests::renames::rename_moves_the_file_and_repoints_every_link ... ok
test tests::saving::a_write_error_keeps_the_change ... ok
test tests::rooms::stale_replace_keeps_newer_typing ... ok
test tests::rooms::typing_survives_a_concurrent_delete ... ok
test tests::saving::failed_save_keeps_the_change ... ok
test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok
test tests::saving::line_endings_and_bom_are_kept ... ok
test tests::outside::outside_rename_keeps_the_id ... ok
test tests::saving::first_keystroke_creates_the_file ... ok
test tests::renames::backlinks_follow_edits_and_deletes ... ok
test tests::saving::title_and_h1_stay_in_step ... ok
test tests::saving::crash_before_write_loses_nothing ... ok
test tests::saving::crash_after_write_does_not_double_text ... ok
test tests::listing::the_kept_count_follows_adds_and_deletes ... ok
test tests::tags::bad_names_are_refused ... ok
test tests::saving::opening_never_writes ... ok
test tests::outside::own_saves_are_not_outside_edits ... ok
test tests::outside::polling_finds_outside_changes ... ok
test tests::tags::typing_during_a_tag_rename_is_kept ... ok
test tests::trash::a_closed_note_is_trashed_without_opening_it ... ok
test tests::saving::an_error_after_the_write_does_not_double_text ... ok
test tests::trash::a_never_typed_note_is_simply_forgotten ... ok
test tests::trash::delete_and_restore_answer_once_per_job_id ... ok
test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok
test tests::trash::a_note_deleted_before_its_first_save_keeps_its_text ... ok
test tests::trash::delete_replay_with_a_stale_index_keeps_the_only_file ... ok
test tests::trash::delete_moves_to_trash_and_undo_brings_it_back ... ok
test tests::trash::half_written_trash_folders_never_hide_a_live_note ... ok
test tests::trash::a_file_deleted_outside_goes_to_the_trash ... ok
test tests::trash::forget_deletes_file_and_history_forever ... ok
test tests::trash::restore_durably_indexes_a_note_without_an_embedded_id ... ok
test tests::trash::folder_rename_and_outside_move_bursts_keep_every_descendant ... ok
test tests::trash::restore_with_a_stale_index_really_moves_the_file_back ... ok
test tests::trash::the_sweep_empties_only_notes_older_than_thirty_days ... ok
test tests::trash::restore_keeps_id_and_history_and_takes_a_free_name ... ok
test tests::trash::trash_ids_never_reach_another_home ... ok
test tests::saving::saving_does_not_loop ... ok
test tests::trash::trash_pages_newest_first ... ok
test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok
test tests::trash::trashed_notes_leave_search_lists_and_backlinks_and_come_back ... ok
test text::tests::mixed_endings_take_the_majority ... ok
test text::tests::styles_round_trip ... ok
test text::tests::uniform_files_round_trip_exactly ... ok
test trash::tests::a_note_without_details_still_reads ... ok
test trash::tests::details_without_a_note_are_not_a_note ... ok
test trash::tests::missing_details_never_age_trash_from_the_notes_old_mtime ... ok
test versions::tests::folds_runs_by_author_kind_and_gap ... ok
test ydoc::tests::fork_and_merge_keeps_concurrent_typing ... ok
test ydoc::tests::reapplying_an_update_changes_nothing ... ok
test ydoc::tests::utf16_offsets ... ok
test tests::unloading::an_unused_home_unloads_and_answers_after ... ok
test tests::unloading::a_connected_client_keeps_it ... ok
test tests::unloading::an_open_note_keeps_it ... ok
test tests::saving::nonstop_typing_still_saves ... ok
test tests::tags::a_big_tag_rename_never_stalls_typing ... ok
test tests::writers::every_writer_at_once_with_the_watcher ... ok
test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok
test tests::storm::outside_rewrites_during_a_storm_all_land ... ok
test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok
test tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok
test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok

test result: ok. 198 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 6.31s

     Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_perf-1052020ed1871574)

running 6 tests
test args::tests::parses_trash_only_mode ... ok
test scenarios::soak::tests::slope_of_a_line ... ok
test stats::tests::summary_max_is_the_largest_observed_sample_across_runs ... ok
test stats::tests::medians_of_runs_and_pooled_singles ... ok
test scenarios::storm::tests::typing_stops_before_the_newline_ahead_of_outside_lines ... ok
test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/bin/storage-bench.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/storage_bench-aaee1f6d1cd60c74)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_plugin_hello-53ca8ca6107399a0)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_prefs-34d1a5e6c699003e)

running 9 tests
test tests::keys_are_an_area_then_dotted_parts ... ok
test tests::people_do_not_share_preferences ... ok
test tests::a_change_on_one_device_reaches_the_other ... ok
test tests::bad_keys_and_big_values_get_friendly_errors ... ok
test tests::a_retry_with_the_same_key_acts_once ... ok
test tests::set_then_get_and_survive_a_restart ... ok
test tests::quick_saves_from_two_devices_all_land ... ok
test tests::saving_the_same_value_again_is_quiet ... ok
test tests::at_most_200_keys_but_existing_ones_can_still_change ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_search-ff67ffa340bd9f12)

running 13 tests
test fuzzy::tests::distance_counts_swaps_as_one ... ok
test query::tests::dates_cover_whole_periods ... ok
test query::tests::lone_symbols_are_ignored ... ok
test fuzzy::tests::common_typos_are_fixed ... ok
test read::tests::block_ids_are_found ... ok
test query::tests::words_filters_and_phrases ... ok
test read::tests::renumbering_shifts_placeholders ... ok
test read::tests::excerpts_mark_matches_in_context ... ok
test text::tests::bigrams_cover_unspaced_scripts ... ok
test read::tests::text_matches_like_the_index ... ok
test text::tests::fold_drops_accents_and_case ... ok
test text::tests::words_keep_indic_vowel_signs ... ok
test schema::tests::an_older_index_gets_its_titles_filled ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/search.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/search-8eb084de93ee7287)

running 12 tests
test searches_answer_while_indexing_runs ... ok
test results_show_why_they_matched_and_where ... ok
test an_empty_search_shows_recent_things ... ok
test every_script_is_searchable ... ok
test titles_first_then_recent_use_then_body ... ok
test filters_by_tag_kind_and_date ... ok
test prefixes_and_typos_are_forgiven ... ok
test odd_input_never_breaks_search ... ok
test behind_answers_at_once_and_catching_up_is_announced_once ... ok
test people_only_ever_find_their_own_things ... ok
test a_restart_heals_whatever_was_missed ... ok
test the_index_follows_changes_live ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.08s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_server-b018c8f458805a08)

running 2 tests
test compress::tests::big_answers_are_compressed_and_small_ones_are_not ... ok
test rooms::tests::frames_round_trip ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/access.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/access-b270c95875ec56fa)

running 1 test
test one_line_per_request_with_no_secrets ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/live-2ebb72560f7b157e)

running 6 tests
test signed_out_calls_get_a_friendly_refusal ... ok
test health_answers_without_signing_in ... ok
test errors_carry_codes_not_internals ... ok
test a_stranger_token_asks_for_a_refresh ... ok
test http_to_journal_to_websocket ... ok
test reconnecting_catches_up_from_a_token ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

     Running tests/signout.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/signout-3993512dadca5b39)

running 1 test
test signing_a_device_out_closes_its_live_socket ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s

     Running tests/web.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/web-4c0ff73bf5023b52)

running 3 tests
test precompressed_files_are_sent_as_they_are_to_whoever_accepts_them ... ok
test files_deep_links_and_the_api_live_side_by_side ... ok
test caching_and_security_headers_follow_what_each_file_is ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_store-dc5119e9b339ecbc)

running 8 tests
test tests::a_store_with_a_listener_or_a_copy_is_in_use ... ok
test tests::commits_are_read_back_in_order ... ok
test tests::idempotency_is_saved_with_the_events_or_not_at_all ... ok
test tests::live_entries_arrive_in_journal_order ... ok
test tests::tokens_survive_a_restart_and_reject_strangers ... ok
test tests::reads_are_capped ... ok
test tests::old_idempotency_records_are_swept_when_the_store_opens ... ok
test tests::old_idempotency_records_are_swept_after_commits ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s

     Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_testkit-84605cced32b9d05)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_auth

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_backdrops

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_core

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_daily

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_engine

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_fixtures

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_fsio

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_memory

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_migrate_v0

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_notes

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_plugin_hello

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_prefs

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_search

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_server

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_store

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests calternal_testkit

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

exit=0

Primary after perf gate output, verbatim:

final-ssd-10000-1: exit=0
final-ssd-100000-1: exit=0
final-hdd-10000-1: exit=1
over budget: 10000 notes: open.api_get p95 60.4 > 50
over budget: 10000 notes: sync.save_ack p95 45.9 > 40
final-hdd-100000-1: exit=1
over budget: 100000 notes: cold.startup p95 719 > 500
over budget: 100000 notes: open.api_get p95 79.8 > 50
over budget: 100000 notes: shutdown p95 3332 > 1000
over budget: 100000 notes: sync.save_ack p95 58.9 > 40
final-ssd-10000-2: exit=0
final-ssd-100000-2: exit=0
final-hdd-10000-2: exit=1
over budget: 10000 notes: cold.startup p95 624 > 500
over budget: 10000 notes: open.api_get p95 67.7 > 50
over budget: 10000 notes: open.note p95 15.9 > 15
over budget: 10000 notes: sync.save_ack p95 61.5 > 40
final-hdd-100000-2: exit=1
over budget: 100000 notes: open.api_get p95 130 > 50
over budget: 100000 notes: shutdown p95 3226 > 1000
over budget: 100000 notes: sync.save_ack p95 42.8 > 40
final-ssd-10000-3: exit=0
final-ssd-100000-3: exit=0
final-hdd-10000-3: exit=1
over budget: 10000 notes: cold.startup p95 542 > 500
over budget: 10000 notes: open.api_get p95 75.1 > 50
over budget: 10000 notes: sync.save_ack p95 49.5 > 40
final-hdd-100000-3: exit=1
over budget: 100000 notes: open.api_get p95 77.7 > 50
over budget: 100000 notes: sync.save_ack p95 50.6 > 40
final-ssd-10000-4: exit=0
final-ssd-100000-4: exit=1
over budget: 100000 notes: open.api_get p95 58.6 > 50
final-hdd-10000-4: exit=1
over budget: 10000 notes: sync.save_ack p95 51.8 > 40
final-hdd-100000-4: exit=1
over budget: 100000 notes: cold.startup p95 1054 > 500
over budget: 100000 notes: open.api_get p95 89.8 > 50
over budget: 100000 notes: sync.save_ack p95 65.8 > 40
final-ssd-10000-5: exit=0
final-ssd-100000-5: exit=0
final-hdd-10000-5: exit=1
over budget: 10000 notes: open.api_get p95 56.6 > 50
over budget: 10000 notes: open.note p95 19.9 > 15
over budget: 10000 notes: sync.save_ack p95 43.8 > 40
final-hdd-100000-5: exit=1
over budget: 100000 notes: cold.startup p95 665 > 500
over budget: 100000 notes: open.api_get p95 102 > 50
over budget: 100000 notes: shutdown p95 2180 > 1000
over budget: 100000 notes: sync.save_ack p95 89.4 > 40

Additional full validation perf gate output, verbatim:

memory-before-hdd-100000: exit=1
over budget: 100000 notes: cold.startup p95 593 > 500
over budget: 100000 notes: open.api_get p95 71.7 > 50
over budget: 100000 notes: shutdown p95 2703 > 1000
over budget: 100000 notes: sync.save_ack p95 66.1 > 40
memory-final-hdd-100000: exit=1
over budget: 100000 notes: cold.startup p95 668 > 500
over budget: 100000 notes: open.api_get p95 156 > 50
over budget: 100000 notes: open.note p95 16.2 > 15
over budget: 100000 notes: shutdown p95 5315 > 1000
over budget: 100000 notes: sync.save_ack p95 62.1 > 40

The issue remains open. The PR has not been merged.

Finished the perf squeeze job at head be555c1dfc1f1da75ac8bb9c74b3cadf3fcf793b, on issue/perf-squeeze, based on dev 312bc892ae17f513f141cd8d09abb62ed864c6d5. The branch is pushed and one PR is open into dev: https://git.kayg.org/kayg/calternal/pulls/514 The PR is marked WIP because HDD performance gates remain red and some concurrent p99/max results worsened. It contains the complete primary before/after table, concurrent tails and validation memory/tail results. Two product commits reduce search-text allocation and skip tag parsing on lines without hashes. Direct same-executable benchmark times fell 63.9% and 59.1%, with identical output. These are function benchmarks, not a claim that every endpoint or tail improved. All 40 primary reports and both full HDD validation reports have no correctness failures. All four 20-client probes verified 1,000 appends each exactly once. All 10 full idle windows met CPU/wakeup budgets. The paired full idle RSS was 47.199 versus 47.211 MiB; the separate 20-start checks found a 0.051 MiB median difference within process variation. The before/after perf table: https://git.kayg.org/kayg/calternal/issues/512#issuecomment-55859 Concurrent and additional full validation tables: https://git.kayg.org/kayg/calternal/issues/512#issuecomment-55895 Code gate output below is verbatim for this head. All local heavy code gates ran through the approved build-slot wrapper with four Cargo jobs and the requested external target directory. ```text cargo fmt --all --check exit=0 cargo clippy --workspace --all-targets -- -D warnings Checking calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/notes) Checking calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/daily) Checking calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/perf) Checking calternal v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/calternal) Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.57s exit=0 cargo test --workspace Compiling calternal-notes v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/notes) Compiling calternal-daily v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/daily) Compiling calternal v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/calternal) Compiling calternal-perf v0.1.0 (/home/kayg/Developer/calternal-wt-perfsq/crates/perf) Finished `test` profile [unoptimized + debuginfo] target(s) in 15.22s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal-0e2524b9e83bd935) running 11 tests test args::tests::defaults_and_flags ... ok test args::tests::origin_defaults_to_the_local_port ... ok test args::tests::fix_commands ... ok test args::tests::migrate_v0 ... ok test args::tests::user_create ... ok test args::tests::web_folder ... ok test args::tests::dev_user_never_on_a_public_address ... ok test args::tests::user_recover ... ok test plugins::tests::contract_matches_the_server ... ok test isolation::bob_reaches_nothing_of_alices_through_any_action ... ok test isolation::bob_cannot_join_alices_note_room ... ok test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s Running tests/fix_tz_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/fix_tz_live-bc5a4bf6584d2af7) running 2 tests test fix_without_a_running_server_says_so ... ok test strip_tz_markers_on_a_live_home_with_a_client_typing ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s Running tests/notes_crash.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_crash-93cd7b159b871449) running 2 tests test kill_nine_mid_tag_rename_renames_each_tag_once ... ok test kill_nine_never_loses_or_doubles ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.51s Running tests/notes_crash_typing.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_crash_typing-5a864935c1e5064a) running 1 test test kill_nine_while_people_type_loses_and_doubles_nothing ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.37s Running tests/notes_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/notes_live-c8da14e6fd2209fb) running 2 tests test joining_a_missing_note_fails_politely ... ok test type_over_the_websocket_and_read_it_back ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s Running tests/prefs_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/prefs_live-bdf7e4ca59cd64dc) running 1 test test preferences_are_saved_checked_and_kept ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s Running tests/search_live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/search_live-d2de52bf0874bbe2) running 1 test test notes_from_everywhere_are_found ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.08s Running tests/startup.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/startup-c9f9cd5b7d6ab6fa) running 5 tests test a_new_server_prints_a_setup_token ... ok test recover_only_knows_real_people ... ok test refuses_dev_user_on_a_public_address ... ok test refuses_plain_http_on_a_public_origin ... ok test answers_within_budget ... ok test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_auth-5e8eb246e070ea06) running 12 tests test config::tests::origins ... ok test limit::tests::stops_after_the_limit ... ok test passkeys::tests::ids_round_trip ... ok test passkeys::tests::names_are_trimmed_short_and_never_empty ... ok test session::tests::names_are_cleaned ... ok test setup::tests::names ... ok test setup::tests::usernames ... ok test token::tests::setup_tokens_round_trip_through_pasting ... ok test token::tests::junk_is_not_a_token ... ok test db::tests::a_version_1_database_gets_passkey_names ... ok test setup::tests::recover_needs_a_known_person ... ok test db::tests::opens_twice_and_keeps_schema ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running tests/abuse.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/abuse-5b62c855d6367504) running 9 tests test non_json_requests_are_refused ... ok test oversized_bodies_are_refused ... ok test open_prompts_are_capped ... ok test junk_setup_tokens_are_refused_then_rate_limited ... ok test bad_json_and_unknown_fields_are_refused ... ok test forged_sessions_get_nowhere ... ok test nothing_about_the_server_leaks_before_sign_in ... ok test garbage_credentials_never_crash ... ok test other_sites_cannot_act_for_you ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s Running tests/create.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/create-94fcea8192201cea) running 6 tests test an_expired_enrolment_token_is_refused ... ok test an_earlier_first_owner_token_stops_working ... ok test names_must_be_usable_and_unique ... ok test nothing_about_the_person_leaks_before_sign_in ... ok test an_enrolment_token_works_exactly_once_under_a_storm ... ok test a_created_person_enrolls_their_first_passkey_and_is_the_same_person ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s Running tests/isolation.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/isolation-e5c44b0d42bee2d9) running 3 tests test a_cookie_sent_from_another_sites_page_does_not_count ... ok test another_persons_passkey_prompt_cannot_be_used_or_cancelled ... ok test devices_and_passkeys_of_another_person_are_not_found ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s Running tests/login.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/login-346109f79b33176b) running 9 tests test bearer_tokens_work_like_cookies ... ok test a_sign_in_answer_cannot_be_replayed ... ok test sign_in_with_a_passkey_creates_a_new_installation ... ok test signing_in_shows_up_live_on_another_device ... ok test sign_out_ends_the_session_immediately ... ok test signing_out_shows_up_live_on_another_device ... ok test revoking_another_device_signs_it_out ... ok test an_unknown_passkey_is_refused ... ok test sessions_expire_when_unused ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s Running tests/passkeys.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/passkeys-841c914424a5e188) running 7 tests test the_same_device_cannot_be_added_twice ... ok test the_first_passkey_is_listed_with_the_device_it_was_made_on ... ok test an_empty_name_is_refused_and_a_long_one_is_cut ... ok test adding_needs_a_sign_in_and_an_add_prompt_works_once ... ok test a_removed_passkey_that_is_gone_or_unknown_is_not_found ... ok test the_last_passkey_cannot_be_removed ... ok test add_rename_and_remove_each_leave_a_journal_event ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s Running tests/setup.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/setup-1d2b08d963b28fff) running 8 tests test first_owner_needs_a_name ... ok test a_restart_replaces_the_first_owner_token ... ok test a_finished_prompt_cannot_be_replayed ... ok test session_cookie_is_locked_down ... ok test first_owner_signs_up_with_the_printed_token ... ok test recovery_adds_a_new_passkey_for_the_same_person ... ok test a_token_works_exactly_once_under_a_storm ... ok test an_expired_setup_token_is_refused ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_backdrops-e474982e40fe3a4d) running 19 tests test tests::an_upload_is_private_to_the_person_who_made_it ... ok test tests::an_answer_that_is_not_a_picture_is_refused_and_not_kept ... ok test tests::changes_need_our_own_page_and_a_signed_in_person ... ok test tests::a_photo_unknown_to_us_is_looked_up ... ok test tests::pictures_are_proxied_cached_and_never_given_the_key ... ok test tests::bad_ids_never_reach_the_disk_or_the_network ... ok test tests::picking_is_reported_to_unsplash_once ... ok test tests::the_real_client_speaks_https_to_unsplash ... ignored, needs the internet test tests::pictures_from_other_hosts_are_refused ... ok test tests::nobody_can_read_or_list_someone_elses_uploads ... ok test tests::unsplash_running_out_of_requests_is_a_plain_slow_down ... ok test tests::search_lists_photos_with_our_own_addresses_and_credit ... ok test tests::an_upload_is_kept_once_and_served_back ... ok test tests::without_a_key_photos_are_off_but_uploads_work ... ok test tests::uploads_are_checked_by_content_not_by_what_they_claim ... ok test tests::the_same_search_is_answered_once ... ok test tests::the_real_client_sends_the_key_and_caps_the_size ... ok test tests::too_many_pixels_are_refused_but_big_files_are_not ... ok test tests::the_cache_drops_the_oldest_files_past_its_cap ... ok test result: ok. 18 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.04s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_core-22753e58953721f1) running 7 tests test action::tests::namespace_is_enforced ... ok test error::tests::every_code_has_a_friendly_message ... ok test batch::tests::stops_at_the_first_error ... ok test journal::tests::tokens_round_trip ... ok test batch::tests::visits_everything_once_in_order ... ok test journal::tests::junk_tokens_ask_for_a_refresh ... ok test plugin::tests::plugins_stay_in_their_namespace ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_daily-253fcac5eaa1e5e5) running 21 tests test day::tests::daylight_saving_uses_the_offset_the_device_sends ... ok test day::tests::midnight_follows_the_device_in_ist ... ok test day::tests::titles_read_like_the_web_app ... ok test day::tests::names_and_ids ... ok test tests::shared_vectors ... ok test tests::any_text_is_safe_to_read_and_plan ... ok test tests::close_turns_one_open_entry_into_a_range ... ok test times_tests::a_line_with_only_tags_stays_words ... ok test times_tests::only_a_day_note_has_times ... ok test tests::add_inserts_exactly_one_entry_and_keeps_the_rest ... ok test tests::bad_input_is_refused_kindly ... ok test times_tests::trailing_tags_on_any_line ... ok test times_tests::any_line_is_safe ... ok test tests::an_existing_day_file_is_reused_whatever_its_id ... ok test tests::opening_the_same_day_at_once_makes_one_note ... ok test tests::today_follows_the_device_offset ... ok test tests::log_add_then_close_makes_a_range ... ok test times_tests::a_log_line_splits_into_times_words_and_tags ... ok test tests::two_offline_devices_starting_the_same_day_merge_into_one_note ... ok test tests::make_note_on_a_log_line_keeps_times_and_tags ... ok test tests::no_file_until_the_first_keystroke ... ok test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_engine-ff3aa4aa42431a1a) running 13 tests test hash::tests::key_order_does_not_matter_but_content_does ... ok test tests::changes_need_a_key_reads_do_not ... ok test tests::connected_follows_live_views ... ok test tests::bad_input_and_unknown_actions_are_friendly ... ok test tests::a_plugin_cannot_write_outside_its_namespace ... ok test tests::journal_pages_continue_where_they_stopped ... ok test tests::a_retry_runs_once_and_replays_the_result ... ok test tests::users_never_see_each_other ... ok test tests::identical_calls_at_the_same_moment_run_once ... ok test tests::no_write_is_lost_while_users_are_released_and_reopened ... ok test tests::a_huge_job_never_delays_anyone ... ok test tests::a_user_with_a_live_view_or_a_running_action_is_kept ... ok test tests::an_idle_user_is_released_and_comes_back_with_nothing_lost ... ok test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.51s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fixtures-6f98542429b58355) running 4 tests test dates::tests::round_trips_and_formats ... ok test rng::tests::same_seed_same_numbers ... ok test tests::same_seed_same_bytes_other_seed_other_bytes ... ok test tests::looks_like_a_real_home ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fixtures-f234eac8403fa749) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_fsio-0087f3cf3ed3c80d) running 9 tests test tests::atomic_write_replaces_and_leaves_no_temp_files ... ok test tests::names_fold_case_and_unicode_form ... ok test tests::failed_write_keeps_the_old_file ... ok test tests::only_one_process_owns_a_data_folder ... ok test tests::case_only_rename_works_and_other_clashes_are_refused ... ok test tests::unique_names_skip_case_and_form_clashes ... ok test tests::prepared_writes_land_only_when_placed ... ok test tests::write_unless_changed_keeps_someone_elses_version ... ok test tests::big_writes_arrive_whole ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_memory-3b65467e6e94a530) running 2 tests test tests::huge_pages_go_off ... ok test tests::trimming_is_harmless ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_migrate_v0-bd794bebe756a3e2) running 36 tests test tests::rules::dry_run_writes_nothing ... ok test tests::rules::m1_custom_daily_title_and_heading_stay ... ok test tests::rules::m2_unresolved_links_stay_as_written_and_are_reported ... ok test tests::rules::m10_tz_markers_go_and_other_zones_convert_to_the_notes_zone ... ok test tests::rules::edited_files_are_never_overwritten_without_asking ... ok test tests::rules::m2_code_is_never_rewritten ... ok test tests::rules::m1_titles_come_from_title_then_h1_then_file_name_and_stay_unique ... ok test tests::rules::m2_wikilinks_always_become_standard_links ... ok test tests::rules::m1_daily_notes_get_day_names_ids_and_lose_generated_headings ... ok test tests::rules::m4_unreferenced_block_ids_go_and_referenced_ones_stay ... ok test tests::rules::m2_attachments_that_exist_are_copied_and_relinked ... ok test tests::units::links_parse_in_every_shape ... ok test tests::rules::m8_only_notes_and_linked_files_move ... ok test tests::units::keys_ignore_case_encoding_quotes_and_md ... ok test tests::rules::m6_conflict_copies_are_not_migrated ... ok test tests::units::unix_times_become_india_time ... ok test tzmarker::tests::a_conversion_that_leaves_the_day_is_kept_and_reported ... ok test tzmarker::tests::code_is_never_touched ... ok test tests::rules::m5_unreadable_dates_fall_back ... ok test tests::rules::m3_m5_frontmatter_keys_drop_and_times_convert ... ok test tests::rules::m2_links_are_repaired_by_name_date_title_and_slug ... ok test tzmarker::tests::berlin_converts_inside_the_day ... ok test tests::rules::m7_tasks_blocks_are_stripped_and_listed ... ok test tests::units::file_names_give_titles ... ok test tests::units::every_v0_time_shape_converts ... ok test tzmarker::tests::day_from_a_date_value ... ok test tzmarker::tests::eu_summer_time_edges ... ok test tzmarker::tests::no_zone_in_the_note_means_strip_only ... ok test tzmarker::tests::marker_at_the_end_or_tight_leaves_no_stray_space ... ok test tzmarker::tests::not_a_marker_is_left_alone ... ok test tzmarker::tests::same_zone_just_goes ... ok test tzmarker::tests::second_run_changes_nothing ... ok test tzmarker::tests::styles_survive_conversion ... ok test tzmarker::tests::unknown_zone_or_a_non_log_line_is_kept_and_counted ... ok test tests::rules::running_twice_gives_the_same_bytes ... ok test tests::no_new_markers::nothing_writes_a_tz_marker ... ok test result: ok. 36 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_notes-deecfda7a8462cc2) running 199 tests test anchor::tests::lines_by_utf16_index ... ok test anchor::tests::hash_is_plain_sha256_hex ... ok test backlinks::tests::links_are_fold_keys_and_lines ... ok test blocks::tests::finds_list_children_and_heading_sections ... ok test backlinks::tests::snippets_are_the_trimmed_line ... ok test blocks::tests::line_edits ... ok test blocks::tests::titles_from_the_first_sentence ... ok test blocks::tests::shapes_keep_markers ... ok test diff::tests::an_inserted_line_starts_at_a_line_start ... ok test frontmatter::tests::reads_keys ... ok test diff::tests::small_change_is_a_small_edit ... ok test frontmatter::tests::set_adds_a_line_or_a_block ... ok test bulk::undo::tests::inverse_restores_the_text ... ok test frontmatter::tests::h1_skips_code_and_frontmatter ... ok test diff::tests::emoji_positions_are_utf16 ... ok test frontmatter::tests::set_is_utf16_aware ... ok test frontmatter::tests::set_changes_only_the_value ... ok test index::tests::a_shared_path_answers_with_the_newest_note ... ok test index::tests::reload_speed ... ignored test frontmatter::tests::quoting ... ok test index::tests::a_torn_tail_cannot_swallow_the_next_durable_mapping ... ok test index::tests::compacts_when_it_grows ... ok test links::tests::finds_standard_and_old_style_links ... ok test index::tests::under_finds_exact_paths_and_descendants_with_folded_names ... ok test index::tests::survives_reload_renames_and_torn_lines ... ok test history::tests::appends_are_ordered_and_readable ... ok test links::tests::nested_brackets_in_text ... ok test history::tests::pending_save_promotes_to_base ... ok test links::tests::relative_paths ... ok test links::tests::resolves_relative_to_the_linking_note ... ok test links::tests::retarget_follows_the_title_and_keeps_custom_text ... ok test links::tests::retarget_matches_case_and_unicode_forms ... ok test links::tests::retarget_from_a_subfolder ... ok test links::tests::skips_code_images_and_the_web ... ok test meta::tests::cursors_round_trip_and_reject_junk ... ok test meta::tests::snippets_skip_frontmatter_and_headings ... ok test rename::tests::daily_names ... ok test rename::tests::h1_is_set_or_added ... ok test room::acks::tests::varuints_round_trip ... ok test room::edit::tests::checks_bounds_overlap_and_surrogates ... ok test scan::tests::day_ids_name_their_files ... ok test search::tests::plain_search_lines_borrow_their_text ... ok test search::tests::search_lines_keep_link_text_and_replacement_order ... ok test scan::tests::state_round_trips_and_skips_odd_names ... ok test search::tests::a_note_becomes_a_document ... ok test index::tests::unloads_and_reloads ... ok test smartline::tests::a_plain_line ... ok test search::tests::titles_fall_back_to_the_file_name ... ok test tags::front::tests::every_way_of_writing_tags ... ok test smartline::tests::only_tags_are_words ... ok test stamp::tests::formats_with_offset ... ok test smartline::tests::trailing_tags_only ... ok test tags::merge::tests::property_tags_go_with_their_comma_or_line ... ok test tags::merge::tests::text_tags_go_with_one_space ... ok test tags::rewrite::tests::nothing_to_do_is_no_edits ... ok test tags::rewrite::tests::positions_count_utf16 ... ok test tags::rewrite::tests::properties_change_name_only ... ok test tags::rewrite::tests::renames_tags_and_nested_tags_only ... ok test tags::rewrite::tests::renaming_onto_an_existing_tag_merges ... ok test tags::rewrite::tests::words_code_links_and_headings ... ok test tags::scan::tests::code_is_never_tags ... ok test tags::scan::tests::headings_and_quotes_keep_their_tags ... ok test index::tests::under_keeps_shadowed_paths_for_watcher_removal ... ok test tags::scan::tests::hash_free_lines_still_open_and_close_code_fences ... ok test tags::scan::tests::link_targets_and_addresses_are_never_tags ... ok test tags::scan::tests::not_tags ... ok test tags::scan::tests::plain_tags ... ok test tags::tests::nesting_and_cleaning ... ok test tags::tests::properties_and_text ... ok test bulk::undo::tests::inverse_roundtrips ... ok test rename::tests::clash_numbers ... ok test diff::tests::edits_turn_old_into_new ... ok test diff::tests::edits_never_split_a_character ... ok test tests::acks::an_older_lineage_is_refused_before_anything_is_sent ... ok test tests::anchors::an_edited_block_is_refused_never_the_wrong_one ... ok test tests::anchors::an_anchor_follows_its_block_when_lines_shift ... ok test tests::acks::checks_are_answered_in_order ... ok test tests::acks::saved_means_the_change_is_in_history ... ok test tests::acks::lineage_survives_a_restart ... ok test tests::anchors::anchors_need_a_hash_and_block_ids_work ... ok test tags::rewrite::tests::rename_and_back_is_the_same_text ... ok test tags::rewrite::tests::merging_keeps_every_tag_once_at_most ... ok test index::tests::answers_like_plain_maps ... ok test tests::kill9::child ... ok test index::tests::directory_counts_match_full_scan_after_moves_and_reload ... ok test tests::anchors::history_folds_typing_and_names_jobs ... ok test tests::fanout::bursts_converge_and_reach_history ... ok test tests::fanout::a_crash_before_the_seed_is_durable_never_doubles_text ... ok test tests::fanout::a_version_always_matches_its_text ... ok test tests::fresh::a_note_made_with_text_opens_with_its_frontmatter ... ok test tests::kill9::permanent_delete_after_restore_cannot_delete_the_live_note ... ok test tests::kill9::restore_delete_forget_does_not_resurrect_after_kill ... ok test tests::kill9::restore_killed_after_its_answer_finishes_once ... ok test tags::rewrite::tests::only_real_tags_change ... ok test tests::kill9::delete_killed_after_its_answer_finishes_once ... ok test tests::kill9::quick_delete_restore_survives_kill ... ok test tests::listing::filters_by_tag_kind_and_created_range ... ok test tests::listing::the_first_page_never_waits_for_the_home_to_open ... ok test tests::kill9::quick_restore_delete_survives_kill ... ok test tests::listing::pages_cover_every_note_once_in_a_stable_order ... ok test tests::opening::a_note_never_typed_in_is_still_forgotten_on_restart ... ok test tests::fanout::a_first_open_does_not_wait_for_the_disk ... ok test tests::opening::identifying_an_already_indexed_file_never_makes_it_a_copy ... ok test tests::opening::a_cold_fill_ends_with_every_index_and_right_answers ... ok test tests::fanout::a_crash_between_fan_out_and_disk_loses_nothing ... ok test tests::listing::pinning_shows_in_the_list_and_unpinning_leaves_no_trace ... ok test tests::fanout::collaborators_see_typing_before_the_disk ... ok test tests::opening::a_warm_open_announces_only_what_changed_while_closed ... ok test tests::outside::missed_watcher_event_is_caught_before_saving ... ok test tests::opening::upgrading_without_a_saved_scan_announces_nothing_for_known_notes ... ok test tests::outside::edit_while_closed_is_merged_on_open ... ok test tests::opening::shutting_down_leaves_the_list_log_empty ... ok test tests::opening::typing_saved_only_in_history_survives_a_restart_before_the_first_save ... ok test tests::outside::outside_edit_while_typing_merges ... ok test tests::opening::a_cold_home_indexes_every_file_once_with_its_own_id ... ok test tests::peek::reads_files_without_opening_rooms ... ok test tests::peek::an_open_room_answers_with_its_live_text ... ok test tests::pending::apply_places_changes_in_any_order ... ok test tests::outside::copied_note_gets_a_fresh_id ... ok test tests::pending::yrs_alone_loses_a_parked_change ... ok test tests::peek::returns_at_most_fifty ... ok test tests::renames::a_taken_name_gets_a_number_and_daily_notes_keep_theirs ... ok test tests::outside::outside_create_and_delete ... ok test tests::pending::changes_out_of_order_all_arrive_and_saved_is_true ... ok test tests::renames::make_note_moves_the_block_and_undoes_as_one_step ... ok test tests::anchors::shifting_lines_never_move_the_wrong_block ... ok test tests::renames::backlinks_list_linked_and_unlinked_mentions ... ok test tests::renames::move_block_to_another_note_and_back ... ok test tests::listing::a_common_tag_pages_the_same_in_every_order ... ok test tests::renames::undo_keeps_a_made_note_someone_typed_in ... ok test tests::rooms::fresh_note_opened_by_many_at_once_is_not_doubled ... ok test tests::rooms::late_joiner_gets_full_state ... ok test tests::listing::the_list_stays_live_with_new_notes_saves_and_outside_edits ... ok test tests::opening::asking_mid_scan_never_says_not_found_and_never_duplicates_a_day ... ok test tests::rooms::patches_use_utf16_positions ... ok test tests::renames::typing_in_a_linking_note_during_a_rename_is_kept ... ok test tests::rooms::retried_create_makes_one_note ... ok test tests::rooms::retried_change_applies_once ... ok test tests::renames::rename_moves_the_file_and_repoints_every_link ... ok test tests::saving::a_write_error_keeps_the_change ... ok test tests::rooms::stale_replace_keeps_newer_typing ... ok test tests::rooms::typing_survives_a_concurrent_delete ... ok test tests::saving::failed_save_keeps_the_change ... ok test tests::renames::typing_a_new_title_renames_the_file_after_a_pause ... ok test tests::saving::line_endings_and_bom_are_kept ... ok test tests::outside::outside_rename_keeps_the_id ... ok test tests::saving::first_keystroke_creates_the_file ... ok test tests::renames::backlinks_follow_edits_and_deletes ... ok test tests::saving::title_and_h1_stay_in_step ... ok test tests::saving::crash_before_write_loses_nothing ... ok test tests::saving::crash_after_write_does_not_double_text ... ok test tests::listing::the_kept_count_follows_adds_and_deletes ... ok test tests::tags::bad_names_are_refused ... ok test tests::saving::opening_never_writes ... ok test tests::outside::own_saves_are_not_outside_edits ... ok test tests::outside::polling_finds_outside_changes ... ok test tests::tags::typing_during_a_tag_rename_is_kept ... ok test tests::trash::a_closed_note_is_trashed_without_opening_it ... ok test tests::saving::an_error_after_the_write_does_not_double_text ... ok test tests::trash::a_never_typed_note_is_simply_forgotten ... ok test tests::trash::delete_and_restore_answer_once_per_job_id ... ok test tests::tags::renames_every_tag_and_undoes_as_one_step ... ok test tests::trash::a_note_deleted_before_its_first_save_keeps_its_text ... ok test tests::trash::delete_replay_with_a_stale_index_keeps_the_only_file ... ok test tests::trash::delete_moves_to_trash_and_undo_brings_it_back ... ok test tests::trash::half_written_trash_folders_never_hide_a_live_note ... ok test tests::trash::a_file_deleted_outside_goes_to_the_trash ... ok test tests::trash::forget_deletes_file_and_history_forever ... ok test tests::trash::restore_durably_indexes_a_note_without_an_embedded_id ... ok test tests::trash::folder_rename_and_outside_move_bursts_keep_every_descendant ... ok test tests::trash::restore_with_a_stale_index_really_moves_the_file_back ... ok test tests::trash::the_sweep_empties_only_notes_older_than_thirty_days ... ok test tests::trash::restore_keeps_id_and_history_and_takes_a_free_name ... ok test tests::trash::trash_ids_never_reach_another_home ... ok test tests::saving::saving_does_not_loop ... ok test tests::trash::trash_pages_newest_first ... ok test tests::rooms::random_concurrent_editing_converges_without_duplicates ... ok test tests::trash::trashed_notes_leave_search_lists_and_backlinks_and_come_back ... ok test text::tests::mixed_endings_take_the_majority ... ok test text::tests::styles_round_trip ... ok test text::tests::uniform_files_round_trip_exactly ... ok test trash::tests::a_note_without_details_still_reads ... ok test trash::tests::details_without_a_note_are_not_a_note ... ok test trash::tests::missing_details_never_age_trash_from_the_notes_old_mtime ... ok test versions::tests::folds_runs_by_author_kind_and_gap ... ok test ydoc::tests::fork_and_merge_keeps_concurrent_typing ... ok test ydoc::tests::reapplying_an_update_changes_nothing ... ok test ydoc::tests::utf16_offsets ... ok test tests::unloading::an_unused_home_unloads_and_answers_after ... ok test tests::unloading::a_connected_client_keeps_it ... ok test tests::unloading::an_open_note_keeps_it ... ok test tests::saving::nonstop_typing_still_saves ... ok test tests::tags::a_big_tag_rename_never_stalls_typing ... ok test tests::writers::every_writer_at_once_with_the_watcher ... ok test tests::writers::every_writer_at_once_loses_and_doubles_nothing ... ok test tests::storm::outside_rewrites_during_a_storm_all_land ... ok test tests::renames::a_crash_mid_rename_resumes_and_applies_each_edit_once ... ok test tests::trash::a_crash_mid_delete_finishes_on_restart_exactly_once ... ok test tests::tags::a_crash_mid_rename_resumes_and_renames_each_tag_once ... ok test result: ok. 198 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 6.31s Running unittests src/main.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_perf-1052020ed1871574) running 6 tests test args::tests::parses_trash_only_mode ... ok test scenarios::soak::tests::slope_of_a_line ... ok test stats::tests::summary_max_is_the_largest_observed_sample_across_runs ... ok test stats::tests::medians_of_runs_and_pooled_singles ... ok test scenarios::storm::tests::typing_stops_before_the_newline_ahead_of_outside_lines ... ok test live::tests::frames_round_trip_and_keystrokes_stay_whole ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/bin/storage-bench.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/storage_bench-aaee1f6d1cd60c74) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_plugin_hello-53ca8ca6107399a0) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_prefs-34d1a5e6c699003e) running 9 tests test tests::keys_are_an_area_then_dotted_parts ... ok test tests::people_do_not_share_preferences ... ok test tests::a_change_on_one_device_reaches_the_other ... ok test tests::bad_keys_and_big_values_get_friendly_errors ... ok test tests::a_retry_with_the_same_key_acts_once ... ok test tests::set_then_get_and_survive_a_restart ... ok test tests::quick_saves_from_two_devices_all_land ... ok test tests::saving_the_same_value_again_is_quiet ... ok test tests::at_most_200_keys_but_existing_ones_can_still_change ... ok test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_search-ff67ffa340bd9f12) running 13 tests test fuzzy::tests::distance_counts_swaps_as_one ... ok test query::tests::dates_cover_whole_periods ... ok test query::tests::lone_symbols_are_ignored ... ok test fuzzy::tests::common_typos_are_fixed ... ok test read::tests::block_ids_are_found ... ok test query::tests::words_filters_and_phrases ... ok test read::tests::renumbering_shifts_placeholders ... ok test read::tests::excerpts_mark_matches_in_context ... ok test text::tests::bigrams_cover_unspaced_scripts ... ok test read::tests::text_matches_like_the_index ... ok test text::tests::fold_drops_accents_and_case ... ok test text::tests::words_keep_indic_vowel_signs ... ok test schema::tests::an_older_index_gets_its_titles_filled ... ok test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s Running tests/search.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/search-8eb084de93ee7287) running 12 tests test searches_answer_while_indexing_runs ... ok test results_show_why_they_matched_and_where ... ok test an_empty_search_shows_recent_things ... ok test every_script_is_searchable ... ok test titles_first_then_recent_use_then_body ... ok test filters_by_tag_kind_and_date ... ok test prefixes_and_typos_are_forgiven ... ok test odd_input_never_breaks_search ... ok test behind_answers_at_once_and_catching_up_is_announced_once ... ok test people_only_ever_find_their_own_things ... ok test a_restart_heals_whatever_was_missed ... ok test the_index_follows_changes_live ... ok test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.08s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_server-b018c8f458805a08) running 2 tests test compress::tests::big_answers_are_compressed_and_small_ones_are_not ... ok test rooms::tests::frames_round_trip ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/access.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/access-b270c95875ec56fa) running 1 test test one_line_per_request_with_no_secrets ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/live.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/live-2ebb72560f7b157e) running 6 tests test signed_out_calls_get_a_friendly_refusal ... ok test health_answers_without_signing_in ... ok test errors_carry_codes_not_internals ... ok test a_stranger_token_asks_for_a_refresh ... ok test http_to_journal_to_websocket ... ok test reconnecting_catches_up_from_a_token ... ok test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s Running tests/signout.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/signout-3993512dadca5b39) running 1 test test signing_a_device_out_closes_its_live_socket ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s Running tests/web.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/web-4c0ff73bf5023b52) running 3 tests test precompressed_files_are_sent_as_they_are_to_whoever_accepts_them ... ok test files_deep_links_and_the_api_live_side_by_side ... ok test caching_and_security_headers_follow_what_each_file_is ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_store-dc5119e9b339ecbc) running 8 tests test tests::a_store_with_a_listener_or_a_copy_is_in_use ... ok test tests::commits_are_read_back_in_order ... ok test tests::idempotency_is_saved_with_the_events_or_not_at_all ... ok test tests::live_entries_arrive_in_journal_order ... ok test tests::tokens_survive_a_restart_and_reject_strangers ... ok test tests::reads_are_capped ... ok test tests::old_idempotency_records_are_swept_when_the_store_opens ... ok test tests::old_idempotency_records_are_swept_after_commits ... ok test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s Running unittests src/lib.rs (/home/kayg/Developer/calternal-target-perfsq/debug/deps/calternal_testkit-84605cced32b9d05) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_auth running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_backdrops running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_core running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_daily running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_engine running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_fixtures running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_fsio running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_memory running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_migrate_v0 running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_notes running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_plugin_hello running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_prefs running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_search running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_server running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_store running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests calternal_testkit running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s exit=0 ``` Primary after perf gate output, verbatim: ```text final-ssd-10000-1: exit=0 final-ssd-100000-1: exit=0 final-hdd-10000-1: exit=1 over budget: 10000 notes: open.api_get p95 60.4 > 50 over budget: 10000 notes: sync.save_ack p95 45.9 > 40 final-hdd-100000-1: exit=1 over budget: 100000 notes: cold.startup p95 719 > 500 over budget: 100000 notes: open.api_get p95 79.8 > 50 over budget: 100000 notes: shutdown p95 3332 > 1000 over budget: 100000 notes: sync.save_ack p95 58.9 > 40 final-ssd-10000-2: exit=0 final-ssd-100000-2: exit=0 final-hdd-10000-2: exit=1 over budget: 10000 notes: cold.startup p95 624 > 500 over budget: 10000 notes: open.api_get p95 67.7 > 50 over budget: 10000 notes: open.note p95 15.9 > 15 over budget: 10000 notes: sync.save_ack p95 61.5 > 40 final-hdd-100000-2: exit=1 over budget: 100000 notes: open.api_get p95 130 > 50 over budget: 100000 notes: shutdown p95 3226 > 1000 over budget: 100000 notes: sync.save_ack p95 42.8 > 40 final-ssd-10000-3: exit=0 final-ssd-100000-3: exit=0 final-hdd-10000-3: exit=1 over budget: 10000 notes: cold.startup p95 542 > 500 over budget: 10000 notes: open.api_get p95 75.1 > 50 over budget: 10000 notes: sync.save_ack p95 49.5 > 40 final-hdd-100000-3: exit=1 over budget: 100000 notes: open.api_get p95 77.7 > 50 over budget: 100000 notes: sync.save_ack p95 50.6 > 40 final-ssd-10000-4: exit=0 final-ssd-100000-4: exit=1 over budget: 100000 notes: open.api_get p95 58.6 > 50 final-hdd-10000-4: exit=1 over budget: 10000 notes: sync.save_ack p95 51.8 > 40 final-hdd-100000-4: exit=1 over budget: 100000 notes: cold.startup p95 1054 > 500 over budget: 100000 notes: open.api_get p95 89.8 > 50 over budget: 100000 notes: sync.save_ack p95 65.8 > 40 final-ssd-10000-5: exit=0 final-ssd-100000-5: exit=0 final-hdd-10000-5: exit=1 over budget: 10000 notes: open.api_get p95 56.6 > 50 over budget: 10000 notes: open.note p95 19.9 > 15 over budget: 10000 notes: sync.save_ack p95 43.8 > 40 final-hdd-100000-5: exit=1 over budget: 100000 notes: cold.startup p95 665 > 500 over budget: 100000 notes: open.api_get p95 102 > 50 over budget: 100000 notes: shutdown p95 2180 > 1000 over budget: 100000 notes: sync.save_ack p95 89.4 > 40 ``` Additional full validation perf gate output, verbatim: ```text memory-before-hdd-100000: exit=1 over budget: 100000 notes: cold.startup p95 593 > 500 over budget: 100000 notes: open.api_get p95 71.7 > 50 over budget: 100000 notes: shutdown p95 2703 > 1000 over budget: 100000 notes: sync.save_ack p95 66.1 > 40 memory-final-hdd-100000: exit=1 over budget: 100000 notes: cold.startup p95 668 > 500 over budget: 100000 notes: open.api_get p95 156 > 50 over budget: 100000 notes: open.note p95 16.2 > 15 over budget: 100000 notes: shutdown p95 5315 > 1000 over budget: 100000 notes: sync.save_ack p95 62.1 > 40 ``` The issue remains open. The PR has not been merged.
Author
Owner

Starting the clean tail and HDD durability measurements for issue #512. Branch: none (read-only job as requested). Worktree: detached at origin/dev. Base SHA: 080c55e184.

Starting the clean tail and HDD durability measurements for issue #512. Branch: none (read-only job as requested). Worktree: detached at origin/dev. Base SHA: 080c55e184085afa090ba62f560c92bd74629cfe.
Author
Owner

#512 tails re-measure and HDD save profile (2026-10-17)

TL;DR

  1. #514 does not make the tails worse. In 10 back-to-back A/B rounds (dev vs dev + #514, same build command) at 1, 5 and 20 clients on SSD and HDD, no tail differs beyond noise: none of the 96 comparisons (p50/p95/p99/max × 4 actions × 3 client counts × 2 disks) gets past a multiple-comparison check. The lowest p is 0.03, and it favours #514.
  2. The earlier "regressions" (SSD append p99 155→303 ms, HDD search p99 1113→1851 ms) were noise. The same binary, started 10 times, spreads 2–3× on p99: dev's SSD 20-client append p99 runs from 195 to 535 ms on its own.
  3. Headline at 20 clients (paired B/A for p99, 95% CI): SSD append 1.05 (0.87–1.44), search 1.04 (0.85–1.18), get 1.17 (0.83–2.26); HDD append 0.94 (0.75–1.13), search 1.12 (0.93–1.25), get 0.88 (0.71–1.25). Every interval includes 1.0.
  4. Watch item, not a finding: notes.list p95/p99 at 20 clients reads 1.1–1.2× in B on both disks (p 0.08–0.71). #514 doesn't touch the list path, so this is most likely noise. A re-run after merge would settle it.
  5. Side finding: one notes.append costs more as its note grows. On SSD, 1-client append p50 rose from 12 to 125 ms as the probe notes reached about 3,500 lines. Each append forks the whole document (ydoc::fork(state)). This is worth its own issue.
  6. HDD saves: where the time goes (20 clients, fresh notes, kernel tracepoints): note temp-file fsync 39% of all disk-sync wait (p50 176 ms), Notes-folder fsync after the swap 31% (p50 150 ms), history WAL commit 23% (p50 32 ms), and SQLite checkpoints (meta, index, history, search) about 8%.
  7. While a note saves, its room is blocked (temp fsync, folder fsync, then the promote commit: about 370 ms p50 on HDD at 20 clients). Gets and appends to that note wait behind it. That explains HDD notes.get p99 of 600–680 ms when its p95 is about 75 ms.
  8. A single fsync on this HDD costs 8.4 ms p50 (overwrite fdatasync) to 20–23 ms (a growing or new file, fsync or fdatasync alike). The sync.save_ack p95 ≤ 40 ms budget is reachable on this disk only if saves and checkpoints stop queueing in front of the history commit.
  9. Options below (O1–O4 keep today's crash guarantee; O5 is a small gain; O6 and O7 change it and are not recommended). The best expected wins are O1 (save without holding the room: about −300 ms on HDD get/append p99) and O2 (one shared folder fsync for concurrent saves: up to −31% of HDD sync time, −150 ms per save at 20 clients).
  10. Nothing was built or changed. All runs held /root/perf-vm.lock. Raw data is on the perf VM in /root/tails-512/out.

Does #514 regress tails?

No. Headline (p99 at 20 clients, 10 paired rounds, 1,000 samples per action per start):

disk, clients action A p99 (median of rounds) B p99 paired B/A 95% CI p
SSD, 20 notes.append 375.8 380.8 1.05 0.87–1.44 0.34
SSD, 20 search.query 394.1 373.1 1.04 0.85–1.18 0.95
SSD, 20 notes.get 171.1 197.5 1.17 0.83–2.26 0.13
SSD, 20 notes.list 110.1 121.9 1.11 0.88–1.24 0.71
HDD, 20 notes.append 790.9 660.3 0.94 0.75–1.13 0.50
HDD, 20 search.query 341.6 354.3 1.12 0.93–1.25 0.29
HDD, 20 notes.get 677.1 603.6 0.88 0.71–1.25 0.60
HDD, 20 notes.list 93.0 100.5 1.20 0.92–1.73 0.13

Milliseconds. The full tables (1, 5 and 20 clients; p50, p95, p99 and max; both disks) follow.

How it was measured

  • Binaries: A is dev at 080c55e. B is the same tree merged with issue/perf-squeeze (be555c1). The merge is clean (tree 3d8a47a), and only crates/notes/src/search.rs and crates/notes/src/tags/scan.rs differ. Both were built on the perf VM with the baseline command cargo build --release --locked -j4 -p calternal -p calternal-perf -p calternal-fixtures, each in its own target dir. A first build that shared one target dir produced a B byte-identical to A, because cargo tracks workspace sources by the first checkout's path. That build was caught by its sha256 and thrown away before any measurement.
  • Home: 100k notes, fixture seed 1, made by calternal-fixtures and indexed once by A. One copy is on the SSD (/root, ext4) and one on the HDD (/mnt/b/hdd-ext4, rotational), the same disks as #514's probe. A and B share each Home: #514's search text is byte-identical, so the index is identical.
  • Probe (/root/tails-512/tails.py): the same op mix as #514's mixed.py. Each client runs rounds of notes.list (50), notes.get of its own note, search.query and a durable notes.append with an Idempotency-Key, with the order rotated per client and no think time. After each phase, every appended marker is checked to be in the note exactly once (all passed). One server start runs three phases: 1 client × 200 rounds, 5 × 100 and 20 × 50, giving 200, 500 and 1,000 samples per action. There is an 8 s gap between phases so debounced saves finish. GLIBC_TUNABLES=glibc.malloc.arena_max=2 and RUST_LOG=warn match the harness.
  • Order: 10 rounds. Each round runs A and B back to back on each disk, in ABBA order (r1 A,B; r2 B,A; …). Before every start: sync, drop the page cache, and take the VM lock.
  • Drift: every start appends about 350 lines to the probe notes, so latencies climb from round to round (see the side finding). The analysis therefore compares A and B within each round (the paired ratio B/A), never across rounds. The tables show the median over rounds with min–max, the median paired ratio with a bootstrap 95% CI (resampling rounds; with n = 10 it is rough), and an exact two-sided sign-flip p on the log ratios.
  • Save profile: a separate start of A with perf record -a -e ext4:ext4_sync_file_enter,ext4_sync_file_exit (kernel tracepoints, low overhead) plus the server's own history.commit debug lines. It ran on sample notes never written before (manifest samples 100+), on both disks, at 1, 5 and 20 clients. A first try with strace -f slowed the server about 10× and distorted the save count (900 saves instead of about 140), so it was discarded.

Full A/B tables

SSD, 1 client

op stat A dev (median of rounds) [min–max] B +#514 [min–max] paired B/A 95% CI p
notes.append p50 38.9 [12.3–125.5] 36.2 [13.9–121.7] 0.98 0.89–1.21 0.87
p95 71.5 [23.6–156.5] 53.1 [24.8–165.9] 0.94 0.74–1.12 0.36
p99 121.3 [47.2–178.4] 78.5 [35.4–306.1] 0.86 0.72–1.05 0.46
max 143.4 [65.1–322.3] 165.6 [103.1–490.5] 1.29 0.75–2.27 0.19
search.query p50 10.5 [5.0–11.3] 10.1 [7.8–12.1] 1.06 0.97–1.08 0.41
p95 18.1 [9.7–22.6] 17.7 [14.2–22.9] 1.13 0.91–1.19 0.52
p99 47.6 [26.7–75.3] 42.2 [30.3–75.9] 0.88 0.69–1.31 0.66
max 164.2 [96.7–402.2] 181.3 [89.7–684.6] 1.10 0.52–2.37 0.74
notes.get p50 4.4 [1.9–6.8] 4.5 [2.4–6.7] 1.03 0.90–1.17 0.74
p95 8.6 [4.1–12.2] 8.6 [5.3–12.3] 0.95 0.76–1.29 0.95
p99 25.7 [7.7–147.3] 47.6 [11.0–149.7] 1.50 0.72–3.28 0.24
max 731.7 [54.4–5643.3] 683.4 [78.8–4777.2] 0.97 0.65–1.45 0.95
notes.list p50 3.6 [2.9–4.5] 3.7 [3.0–3.8] 1.03 0.91–1.11 0.89
p95 6.7 [4.7–10.2] 6.8 [5.7–7.8] 1.00 0.78–1.22 0.87
p99 10.0 [7.8–17.6] 10.2 [7.5–17.5] 1.04 0.58–1.29 0.66
max 17.7 [8.9–28.3] 17.8 [8.7–44.3] 1.00 0.72–1.38 0.71

10 paired rounds; 200 samples per op per start.

SSD, 5 clients

op stat A dev (median of rounds) [min–max] B +#514 [min–max] paired B/A 95% CI p
notes.append p50 42.6 [20.7–82.3] 45.8 [23.0–78.2] 1.01 0.88–1.32 0.95
p95 128.0 [52.3–219.6] 109.9 [43.6–217.3] 1.06 0.81–1.26 0.71
p99 203.6 [75.9–351.5] 163.8 [55.3–346.3] 0.96 0.63–1.22 0.36
max 399.4 [109.1–770.7] 254.7 [120.7–1067.8] 0.99 0.62–1.26 0.29
search.query p50 25.0 [13.4–32.0] 24.4 [15.8–28.1] 1.01 0.90–1.32 0.78
p95 58.3 [29.7–76.0] 59.2 [33.3–65.9] 1.02 0.87–1.42 0.87
p99 75.5 [45.2–104.5] 79.1 [43.2–92.2] 1.08 0.92–1.55 0.66
max 95.8 [61.6–147.7] 115.4 [49.5–298.4] 1.19 1.01–1.53 0.47
notes.get p50 5.7 [4.0–7.5] 6.4 [3.3–7.9] 1.07 0.96–1.25 0.77
p95 18.3 [10.7–27.1] 19.7 [7.5–23.9] 1.09 0.86–1.41 0.91
p99 81.0 [26.8–144.1] 65.3 [13.0–137.6] 0.97 0.48–1.15 0.44
max 246.2 [83.3–866.4] 278.0 [57.2–786.1] 1.01 0.80–1.52 0.78
notes.list p50 9.1 [5.4–11.0] 9.1 [5.1–9.9] 1.05 0.97–1.26 0.82
p95 22.4 [11.9–31.1] 25.9 [11.4–30.4] 1.21 0.99–1.56 0.46
p99 32.5 [14.0–54.8] 39.5 [15.2–49.0] 1.25 1.18–1.51 0.36
max 48.7 [19.7–83.4] 70.3 [19.4–295.4] 1.55 1.07–2.85 0.14

10 paired rounds; 500 samples per op per start.

SSD, 20 clients

op stat A dev (median of rounds) [min–max] B +#514 [min–max] paired B/A 95% CI p
notes.append p50 91.5 [54.5–136.0] 88.6 [54.1–137.3] 1.03 0.96–1.08 0.92
p95 230.4 [134.3–370.7] 246.1 [125.1–374.0] 1.05 0.93–1.34 0.35
p99 375.8 [195.0–534.5] 380.8 [280.0–603.8] 1.05 0.87–1.44 0.34
max 537.4 [267.8–991.4] 570.7 [392.2–1499.7] 1.35 0.72–1.71 0.28
search.query p50 145.1 [85.0–172.7] 125.9 [94.9–160.2] 1.02 0.87–1.08 0.52
p95 306.4 [186.5–419.7] 285.3 [201.1–372.0] 1.03 0.91–1.10 0.93
p99 394.1 [220.7–523.1] 373.1 [261.0–469.0] 1.04 0.85–1.18 0.95
max 487.0 [275.9–742.1] 495.5 [355.2–619.2] 1.16 0.66–1.26 0.96
notes.get p50 13.6 [10.7–23.9] 14.2 [9.6–24.6] 0.97 0.84–1.07 0.36
p95 57.8 [35.9–91.8] 58.9 [33.8–110.7] 1.12 0.84–1.21 0.55
p99 171.1 [78.8–308.6] 197.5 [75.1–695.4] 1.17 0.83–2.26 0.13
max 364.5 [120.0–643.0] 426.9 [156.3–927.7] 1.36 0.89–2.27 0.12
notes.list p50 27.4 [20.4–40.6] 27.5 [21.2–44.5] 1.05 0.92–1.14 0.92
p95 77.4 [49.8–105.3] 84.7 [55.5–124.9] 1.18 0.99–1.27 0.25
p99 110.1 [75.9–166.1] 121.9 [75.4–177.3] 1.11 0.88–1.24 0.71
max 165.1 [93.9–270.3] 176.9 [112.5–260.4] 1.22 0.75–1.30 0.40

10 paired rounds; 1000 samples per op per start.

HDD, 1 client

op stat A dev (median of rounds) [min–max] B +#514 [min–max] paired B/A 95% CI p
notes.append p50 50.3 [30.5–86.9] 46.3 [20.2–80.3] 0.93 0.82–0.99 0.10
p95 98.0 [79.2–134.7] 100.4 [50.1–132.8] 0.95 0.74–1.06 0.15
p99 165.7 [112.1–262.7] 144.8 [83.4–217.5] 0.73 0.69–1.04 0.12
max 247.0 [152.2–439.5] 231.6 [154.5–551.1] 0.99 0.83–1.16 0.62
search.query p50 10.4 [5.9–11.1] 9.9 [8.0–11.3] 0.98 0.87–1.06 0.86
p95 16.7 [12.3–23.0] 16.7 [12.1–22.9] 0.95 0.83–1.11 0.47
p99 55.0 [30.8–356.8] 42.6 [21.6–306.8] 0.82 0.13–1.83 0.40
max 275.8 [101.6–1887.1] 240.8 [80.1–1468.5] 1.15 0.15–2.44 0.54
notes.get p50 4.4 [2.0–6.0] 4.3 [2.5–5.6] 0.99 0.86–1.15 0.91
p95 8.6 [4.4–11.9] 7.9 [5.6–9.6] 0.94 0.73–1.03 0.15
p99 127.3 [12.4–210.5] 96.9 [8.0–266.9] 0.90 0.15–1.71 0.34
max 780.7 [166.5–5333.9] 867.7 [49.5–3702.4] 0.78 0.47–1.04 0.14
notes.list p50 3.6 [3.0–4.2] 3.5 [2.4–4.1] 1.00 0.86–1.08 0.40
p95 6.6 [5.4–11.5] 6.6 [3.1–12.0] 1.01 0.72–1.13 0.35
p99 11.6 [6.6–24.8] 9.2 [4.7–37.0] 0.83 0.55–1.27 0.17
max 22.4 [8.3–58.8] 12.9 [8.7–68.1] 0.84 0.51–1.16 0.37

10 paired rounds; 200 samples per op per start.

HDD, 5 clients

op stat A dev (median of rounds) [min–max] B +#514 [min–max] paired B/A 95% CI p
notes.append p50 73.8 [43.2–94.0] 70.5 [45.6–104.2] 1.05 0.91–1.10 0.69
p95 197.0 [126.7–270.2] 198.7 [143.6–259.4] 1.02 0.91–1.10 0.84
p99 373.6 [188.2–582.2] 308.7 [210.8–498.4] 0.86 0.69–1.03 0.03
max 656.6 [410.0–1015.8] 538.5 [252.0–1239.0] 0.84 0.67–1.04 0.25
search.query p50 21.0 [10.3–24.8] 20.7 [15.2–27.6] 1.07 0.87–1.23 0.46
p95 54.8 [29.9–68.5] 56.6 [37.9–80.7] 1.12 0.75–1.32 0.89
p99 72.1 [43.8–107.1] 70.9 [50.6–137.7] 1.07 0.73–1.36 0.93
max 100.5 [88.7–164.0] 103.1 [63.2–188.3] 0.96 0.76–1.29 0.84
notes.get p50 5.7 [3.9–6.6] 5.5 [4.1–7.3] 0.93 0.87–1.11 0.46
p95 19.9 [13.4–23.3] 20.9 [10.6–31.9] 1.09 0.88–1.25 0.78
p99 344.5 [50.6–449.1] 370.8 [33.5–500.3] 1.09 0.70–1.66 0.47
max 579.4 [388.9–960.4] 545.8 [232.7–980.1] 0.85 0.60–1.09 0.20
notes.list p50 8.0 [6.6–8.8] 7.9 [4.7–9.9] 1.00 0.88–1.12 0.89
p95 22.7 [17.4–29.1] 21.3 [12.5–33.2] 1.04 0.75–1.18 0.65
p99 34.8 [26.4–46.9] 34.2 [17.3–61.9] 1.07 0.81–1.36 0.91
max 60.4 [38.3–91.0] 49.1 [21.0–141.9] 0.74 0.65–1.56 0.69

10 paired rounds; 500 samples per op per start.

HDD, 20 clients

op stat A dev (median of rounds) [min–max] B +#514 [min–max] paired B/A 95% CI p
notes.append p50 135.5 [79.9–158.1] 125.9 [95.1–214.8] 1.08 0.89–1.19 0.46
p95 432.8 [275.6–635.8] 391.1 [348.3–628.6] 0.99 0.84–1.09 0.61
p99 790.9 [503.4–1084.7] 660.3 [526.5–1052.7] 0.94 0.75–1.13 0.50
max 1122.1 [654.4–1634.5] 885.3 [752.5–1570.6] 0.94 0.66–1.29 0.46
search.query p50 119.0 [63.8–139.6] 112.9 [85.6–158.1] 1.02 0.95–1.15 0.48
p95 277.6 [152.7–330.4] 268.8 [194.1–418.5] 1.03 0.92–1.22 0.40
p99 341.6 [187.3–447.0] 354.3 [244.1–558.4] 1.12 0.93–1.25 0.29
max 415.0 [246.0–648.9] 486.8 [363.4–958.7] 1.33 0.93–1.44 0.11
notes.get p50 12.1 [10.8–14.9] 14.0 [10.0–19.6] 1.09 0.98–1.27 0.18
p95 73.8 [41.9–405.9] 76.8 [42.1–166.2] 1.14 0.60–1.98 0.90
p99 677.1 [356.3–924.6] 603.6 [423.4–844.0] 0.88 0.71–1.25 0.60
max 890.5 [540.6–1417.0] 810.8 [511.6–1501.6] 0.95 0.74–1.13 0.50
notes.list p50 23.0 [19.8–27.6] 25.9 [18.1–35.5] 1.15 0.90–1.30 0.25
p95 62.7 [55.1–87.6] 72.1 [56.7–118.5] 1.18 1.00–1.40 0.08
p99 93.0 [72.2–132.5] 100.5 [75.7–198.6] 1.20 0.92–1.73 0.13
max 151.1 [91.4–222.2] 190.9 [98.3–247.8] 1.19 0.83–1.69 0.38

10 paired rounds; 1000 samples per op per start.

Side finding: append cost grows with the note

Per start, the 1-client notes.append p50 for the probe note (paired A and B agree):

round 1 2 4 6 8 10
SSD, A 12.3 23.4 32.2 40.4 61.3 125.5
HDD, A 30.5 33.3 44.3 53.7 81.7 86.8

The probe note grows by about 350 lines per start (to about 3,500 by round 10), and append p50 grows about 10× with it. api_edit starts every append by ydoc::fork(Some(&ydoc::state(doc))), which encodes and decodes the whole document, and the save then rewrites the whole file. The same fork-per-append pattern applies to long daily logs. This deserves its own issue (measure-first), separate from #514.

HDD: where save time goes

Raw fsync cost of each disk (fio, 4 KiB writes, queue depth 1, 20 s each)

disk case p50 ms p95 ms p99 ms
HDD fdatasync, overwrite in place (like a reused SQLite WAL) 8.4 15.9 30.5
HDD fsync, overwrite in place 17.4 43.8 68.7
HDD fsync, growing file (like a new note temp file) 20.3 48.5 81.3
HDD fdatasync, growing file 22.9 48.5 66.3
SSD fdatasync, overwrite 3.3 6.5 9.0
SSD fsync, overwrite 6.1 12.3 18.2
SSD fsync, growing file 7.2 13.4 19.5

SQLite already calls fdatasync on its WAL (seen in the traces), so that saving is already taken. On a new or growing file, fdatasync costs as much as fsync, because the file's size has to reach the journal either way.

What one save does today (from the code)

Notes save (crates/notes/src/room/save.rs), with the room busy the whole time:

  1. settle(): typing still on its way to history lands first (usually already done).
  2. Server keys (last edited, at most once a minute) are written as small edits through history.
  3. Re-read the file and compare its hash with the base.
  4. At the same time: history set_pending (one WAL commit, fdatasync) and the new file written under a temp name and fsynced.
  5. renameat2(RENAME_EXCHANGE) swaps it in, then the Notes folder is fsynced.
  6. History promote (one more WAL commit), which the room waits for.

On ext4, steps 4 and 5 are two journal commits. The "Saved" check (sync.save_ack) and notes.append wait only for the history commit of the change itself. File saves happen 750 ms after the last change, or 5 s after the first unsaved one, but they share the disk with those commits, and they block the note's room.

Where save time goes: traces

All disk-sync time (ext4 fsync/fdatasync enter→exit, every thread), grouped by file. "share" is the share of all sync wait in the traced window. The history commit line comes from the server's own history.commit debug log (the time the writer thread holds a transaction, including its fsync).

HDD, 1 client(s), fresh notes

file call count total s share p50 ms p95 ms max ms
history.db WAL: commit (FULL) fdatasync 214 6.12 66% 21.1 85.4 133.9
meta.db: checkpoint fdatasync 25 2.10 23% 59.2 226.7 261.9
Notes folder (after swap) fsync 5 0.33 4% 60.1 133.8 133.8
index.db (change journal): checkpoint fdatasync 3 0.28 3% 122.1 134.7 134.7
note temp file (new file, before swap) fsync 2 0.19 2% 63.2 125.9 125.9
search.db: checkpoint fdatasync 3 0.17 2% 59.5 72.7 72.7
history.db main: checkpoint fdatasync 1 0.10 1% 96.8 96.8 96.8

history commits: 212; writes per commit mean 1.00, p95 1, max 1; commit time p50 27.0 p95 103.0 p99 176.2 max 218.8 ms
probe 1 clients, wall 20.6 s; page p50 5 p99 20; get p50 3 p99 137; search p50 14 p99 440; write p50 37 p99 218
traced window 20.4 s; total sync wait 9.30 s

HDD, 5 client(s), fresh notes

file call count total s share p50 ms p95 ms max ms
history.db WAL: commit (FULL) fdatasync 323 10.72 46% 28.3 79.8 124.0
note temp file (new file, before swap) fsync 29 5.20 22% 169.2 299.3 302.8
Notes folder (after swap) fsync 29 4.72 20% 168.9 243.5 245.4
meta.db: checkpoint fdatasync 13 1.38 6% 103.8 255.2 255.2
index.db (change journal): checkpoint fdatasync 9 0.71 3% 46.0 229.8 229.8
search.db: checkpoint fdatasync 5 0.29 1% 31.0 123.9 123.9
history.db main: checkpoint fdatasync 2 0.15 1% 57.8 90.3 90.3

history commits: 319; writes per commit mean 1.81, p95 4, max 4; commit time p50 34.2 p95 100.8 p99 156.6 max 198.9 ms
probe 5 clients, wall 21.6 s; page p50 12 p99 60; get p50 6 p99 352; search p50 33 p99 1219; write p50 77 p99 463
traced window 24.6 s; total sync wait 23.19 s

HDD, 20 client(s), fresh notes

file call count total s share p50 ms p95 ms max ms
note temp file (new file, before swap) fsync 146 30.04 39% 176.0 590.1 591.3
Notes folder (after swap) fsync 146 24.06 31% 150.4 308.8 354.2
history.db WAL: commit (FULL) fdatasync 433 17.49 23% 31.6 106.0 233.9
meta.db: checkpoint fdatasync 31 3.25 4% 67.8 204.4 804.0
index.db (change journal): checkpoint fdatasync 18 1.81 2% 98.9 196.4 196.4
history.db main: checkpoint fdatasync 5 0.48 1% 88.0 135.0 135.0
search.db: checkpoint fdatasync 4 0.42 1% 10.5 348.6 348.6

history commits: 423; writes per commit mean 3.25, p95 9, max 19; commit time p50 43.4 p95 121.5 p99 200.0 max 302.1 ms
probe 20 clients, wall 30.2 s; page p50 33 p99 135; get p50 13 p99 566; search p50 198 p99 4383; write p50 147 p99 1111
traced window 32.7 s; total sync wait 77.62 s

SSD, 20 clients, fresh notes (for contrast)

file call count total s share p50 ms p95 ms max ms
history.db WAL: commit (FULL) fdatasync 666 9.94 46% 9.9 43.5 162.8
note temp file (new file, before swap) fsync 100 5.48 25% 41.9 139.2 194.9
Notes folder (after swap) fsync 100 4.62 21% 42.9 77.7 146.2
meta.db: checkpoint fdatasync 36 0.94 4% 20.5 124.1 129.9
index.db (change journal): checkpoint fdatasync 22 0.45 2% 20.4 34.7 70.8
history.db main: checkpoint fdatasync 5 0.14 1% 18.0 52.9 52.9
search.db: checkpoint fdatasync 2 0.06 0% 11.0 45.9 45.9

history commits: 658; writes per commit mean 1.94, p95 5, max 15; commit time p50 16.1 p95 76.8 p99 141.8 max 206.9 ms
probe 20 clients, wall 21.2 s; page p50 38 p99 169; get p50 14 p99 236; search p50 200 p99 813; write p50 100 p99 463
traced window 23.7 s; total sync wait 21.64 s

How to read the tables:

  • One client: almost everything is the per-append history commit (one fdatasync each; notes.append p50 37 ms on HDD against a 21 ms fdatasync). Background meta.db checkpoints come second (23%, 59 ms each). The note list re-describes the note after every change, and its WAL checkpoints about every 16 appends.
  • 20 clients: saves dominate. 146 saves in 30 s, each paying a temp-file fsync (p50 176 ms) and a folder fsync (p50 150 ms), because 20 rooms' journal commits queue on one spindle. History commits already group (3.25 writes per commit on average, up to 19), so group commit for history exists and works.
  • The room stays busy for temp fsync + folder fsync + promote commit: about 176 + 150 + 43 ≈ 370 ms p50 on HDD at 20 clients, and about 100 ms on SSD. notes.get (served by the room) and notes.append to that note wait behind it. That is the long tail: on HDD at 20 clients, get p50 is 12 ms and p95 74 ms, but p99 is 600–680 ms.

OPTIONS for kayg (nothing built; kayg decides)

What "safe" means today (ADR 0020): "Saved" means the change is in history.db (synchronous=FULL), so a power cut never loses an acknowledged change. The file is written after history, and crash recovery uses the pending row to tell our half-finished save from an outside edit. Gains are estimated from the traces above (HDD, 20 clients, fresh notes) unless marked as measured.

# option crash guarantee expected gain cost / risk
O1 Save without holding the room. Take a snapshot (text + state), let the room go back to serving get/edits, and write the file in a separate task. History-before-flush still holds, because the snapshot's changes are already durable before the file is written. Only one save per note runs at a time. Same. No acknowledged change depends on the file write. The pending/promote protocol is unchanged. Removes the ~370 ms (HDD) / ~100 ms (SSD) room stall per save. Estimate: HDD 20-client notes.get p99 from ~600–680 ms toward its ~75 ms p95, and notes.append p99 down by about one save (~300 ms). No change at 1 client (few saves). Medium. The room must not start a second save, and edits made during a save just make the note dirty again. Needs the kill-9 and crash-point tests (tests/kill9.rs, save::crash) re-run with edits arriving mid-save.
O2 Group commit for saves: one folder fsync for concurrent saves. Saves whose rename finished wait together, one fsync of the folder covers them all, then all are answered. Same. Each save is answered only after a folder fsync that started after its rename. Folder fsyncs are 31% of HDD sync wait at 20 clients (146 × p50 150 ms). Batching them cuts up to that and about 150 ms p50 per save under load. Nothing at 1 client. Note: most notes live in one folder (Notes/), so batches would be large. Low–medium. A small "folder syncer" per folder, like the history writer.
O3 Don't wait for promote. Queue it in the history writer (FIFO, so it still commits before any later set_pending), and free the room right after the folder fsync. Same, I believe, but please review. The crash window it covers (file swapped, promote not yet durable) exists today, and recovery handles it with the pending row. The next save's set_pending is ordered after this promote by the single writer. Worth a crash-point test before trusting it. One history commit off each save's room time: about 43 ms p50 on HDD at 20 clients, 27 ms at 1. Smaller than O1, and folds into O1 if O1 is done. Low.
O4 Move SQLite checkpoints off the commit path for history.db, meta.db and index.db (wal_autocheckpoint=0, then PASSIVE checkpoints in a quiet moment, as search.db already does). Same. The WAL is already durable when the commit returns, and a checkpoint only copies it into the main file. history.db stays synchronous=FULL. Checkpoint fsyncs are about 8% of HDD sync wait. Each one currently lands inside some writer's transaction: history checkpoints (5–14 per 30 s, p50 ~90 ms, up to 230 ms) stall a whole group commit, and meta/index checkpoints (20–46 per 30 s, 60–100 ms, up to 800 ms) take the head away from history commits. Expect lower p99/max on sync.save_ack and append, and no p50 change. Low. Watch WAL size (keep journal_size_limit).
O5 fdatasync instead of fsync for the note temp file and folder. Same for the content. Only the file's mtime may be stale after a crash. About 0 (measured). On a new or growing file, fdatasync costs 22.9 ms p50 against 20.3 ms for fsync on this HDD, because the size must be journaled anyway. SQLite already uses fdatasync for its WAL. Not worth doing on its own.
O6 Raise the save delays under load (750 ms / 5 s → for example 2 s / 15 s while many rooms are dirty). Same for acknowledged changes: they are in history. Changes what other apps see. The .md file trails the live note longer (Obsidian or sync tools see edits later), and an outside edit made meanwhile is merged later. Fewer saves, so fewer journal commits competing with history. Roughly proportional: 3× longer delays mean about 3× fewer saves under constant typing. A product call, not a durability one.
O7 Skip the temp-file fsync (rename only, then folder fsync). Changes the crash guarantee, NOT recommended. After a power cut the file could be empty or old while history says pending. Recovery could take that for an outside edit and merge an empty file, which deletes text in the live note. Would remove ~39% of HDD sync wait at 20 clients. Unsafe without a redesign of recovery (for example, always rebuilding the file from history when it matches neither base nor pending). Listed only to show the cost of the temp-file fsync.

Not options, because they are already in place: history group commit (measured 3.25 writes per commit at 20 clients), one history fsync per acknowledged change, fdatasync on SQLite WALs, and synchronous=NORMAL on the rebuildable databases (meta, index journal, search). "Defer index writes" therefore means O4 for checkpoints, plus optionally coalescing meta.db refreshes longer under load. That second part is rebuildable data with no durability effect, and it is worth about 5–23% of HDD sync wait (largest at 1 client).

Suggested order, if kayg wants any: O4 (small, same guarantee) → O2 → O1 (biggest tail win, needs the crash tests) → O3 folded into O1. Skip O5. O6 is a product call. Never O7 as written.

Reproduce

All on the perf VM (root@10.69.69.63), scripts in /root/tails-512/: build.sh and buildB.sh (builds), prep.sh (Homes), rounds.sh (ROUNDS="1 2 …" PHASES=1:200,5:100,20:50), profile3.sh (traced fresh-note runs), tails.py (probe; --ktrace, --offset N). Results: /root/tails-512/out/ (r*-{ssd,hdd}-{A,B}.json hold every sample; kf-*.perf.txt and kf-*.server.log hold the traces). Binaries and the fixture: /mnt/z4-nvme/tails-512/. The two test Homes and the build dirs were deleted afterwards to give the root disk its space back (it sits at 98%).

# #512 tails re-measure and HDD save profile (2026-10-17) ## TL;DR 1. **#514 does not make the tails worse.** In 10 back-to-back A/B rounds (dev vs dev + #514, same build command) at 1, 5 and 20 clients on SSD and HDD, no tail differs beyond noise: none of the 96 comparisons (p50/p95/p99/max × 4 actions × 3 client counts × 2 disks) gets past a multiple-comparison check. The lowest p is 0.03, and it favours #514. 2. The earlier "regressions" (SSD append p99 155→303 ms, HDD search p99 1113→1851 ms) were noise. The same binary, started 10 times, spreads 2–3× on p99: dev's SSD 20-client append p99 runs from 195 to 535 ms on its own. 3. Headline at 20 clients (paired B/A for p99, 95% CI): SSD append 1.05 (0.87–1.44), search 1.04 (0.85–1.18), get 1.17 (0.83–2.26); HDD append 0.94 (0.75–1.13), search 1.12 (0.93–1.25), get 0.88 (0.71–1.25). Every interval includes 1.0. 4. Watch item, not a finding: `notes.list` p95/p99 at 20 clients reads 1.1–1.2× in B on both disks (p 0.08–0.71). #514 doesn't touch the list path, so this is most likely noise. A re-run after merge would settle it. 5. Side finding: one `notes.append` costs more as its note grows. On SSD, 1-client append p50 rose from 12 to 125 ms as the probe notes reached about 3,500 lines. Each append forks the whole document (`ydoc::fork(state)`). This is worth its own issue. 6. **HDD saves: where the time goes** (20 clients, fresh notes, kernel tracepoints): note temp-file fsync 39% of all disk-sync wait (p50 176 ms), Notes-folder fsync after the swap 31% (p50 150 ms), history WAL commit 23% (p50 32 ms), and SQLite checkpoints (meta, index, history, search) about 8%. 7. While a note saves, its room is blocked (temp fsync, folder fsync, then the promote commit: about 370 ms p50 on HDD at 20 clients). Gets and appends to that note wait behind it. That explains HDD `notes.get` p99 of 600–680 ms when its p95 is about 75 ms. 8. A single fsync on this HDD costs 8.4 ms p50 (overwrite fdatasync) to 20–23 ms (a growing or new file, fsync or fdatasync alike). The `sync.save_ack` p95 ≤ 40 ms budget is reachable on this disk only if saves and checkpoints stop queueing in front of the history commit. 9. Options below (O1–O4 keep today's crash guarantee; O5 is a small gain; O6 and O7 change it and are **not recommended**). The best expected wins are O1 (save without holding the room: about −300 ms on HDD get/append p99) and O2 (one shared folder fsync for concurrent saves: up to −31% of HDD sync time, −150 ms per save at 20 clients). 10. Nothing was built or changed. All runs held `/root/perf-vm.lock`. Raw data is on the perf VM in `/root/tails-512/out`. ## Does #514 regress tails? No. Headline (p99 at 20 clients, 10 paired rounds, 1,000 samples per action per start): | disk, clients | action | A p99 (median of rounds) | B p99 | paired B/A | 95% CI | p | |---|---|---:|---:|---:|---:|---:| | SSD, 20 | notes.append | 375.8 | 380.8 | 1.05 | 0.87–1.44 | 0.34 | | SSD, 20 | search.query | 394.1 | 373.1 | 1.04 | 0.85–1.18 | 0.95 | | SSD, 20 | notes.get | 171.1 | 197.5 | 1.17 | 0.83–2.26 | 0.13 | | SSD, 20 | notes.list | 110.1 | 121.9 | 1.11 | 0.88–1.24 | 0.71 | | HDD, 20 | notes.append | 790.9 | 660.3 | 0.94 | 0.75–1.13 | 0.50 | | HDD, 20 | search.query | 341.6 | 354.3 | 1.12 | 0.93–1.25 | 0.29 | | HDD, 20 | notes.get | 677.1 | 603.6 | 0.88 | 0.71–1.25 | 0.60 | | HDD, 20 | notes.list | 93.0 | 100.5 | 1.20 | 0.92–1.73 | 0.13 | Milliseconds. The full tables (1, 5 and 20 clients; p50, p95, p99 and max; both disks) follow. ## How it was measured - **Binaries**: A is `dev` at 080c55e. B is the same tree merged with `issue/perf-squeeze` (be555c1). The merge is clean (tree 3d8a47a), and only `crates/notes/src/search.rs` and `crates/notes/src/tags/scan.rs` differ. Both were built on the perf VM with the baseline command `cargo build --release --locked -j4 -p calternal -p calternal-perf -p calternal-fixtures`, each in its own target dir. A first build that shared one target dir produced a B byte-identical to A, because cargo tracks workspace sources by the first checkout's path. That build was caught by its sha256 and thrown away before any measurement. - **Home**: 100k notes, fixture seed 1, made by `calternal-fixtures` and indexed once by A. One copy is on the SSD (`/root`, ext4) and one on the HDD (`/mnt/b/hdd-ext4`, rotational), the same disks as #514's probe. A and B share each Home: #514's search text is byte-identical, so the index is identical. - **Probe** (`/root/tails-512/tails.py`): the same op mix as #514's `mixed.py`. Each client runs rounds of `notes.list` (50), `notes.get` of its own note, `search.query` and a durable `notes.append` with an Idempotency-Key, with the order rotated per client and no think time. After each phase, every appended marker is checked to be in the note exactly once (all passed). One server start runs three phases: 1 client × 200 rounds, 5 × 100 and 20 × 50, giving 200, 500 and 1,000 samples per action. There is an 8 s gap between phases so debounced saves finish. `GLIBC_TUNABLES=glibc.malloc.arena_max=2` and `RUST_LOG=warn` match the harness. - **Order**: 10 rounds. Each round runs A and B back to back on each disk, in ABBA order (r1 A,B; r2 B,A; …). Before every start: `sync`, drop the page cache, and take the VM lock. - **Drift**: every start appends about 350 lines to the probe notes, so latencies climb from round to round (see the side finding). The analysis therefore compares A and B **within each round** (the paired ratio B/A), never across rounds. The tables show the median over rounds with min–max, the median paired ratio with a bootstrap 95% CI (resampling rounds; with n = 10 it is rough), and an exact two-sided sign-flip p on the log ratios. - **Save profile**: a separate start of A with `perf record -a -e ext4:ext4_sync_file_enter,ext4_sync_file_exit` (kernel tracepoints, low overhead) plus the server's own `history.commit` debug lines. It ran on sample notes never written before (manifest samples 100+), on both disks, at 1, 5 and 20 clients. A first try with `strace -f` slowed the server about 10× and distorted the save count (900 saves instead of about 140), so it was discarded. ### Full A/B tables #### SSD, 1 client | op | stat | A dev (median of rounds) [min–max] | B +#514 [min–max] | paired B/A | 95% CI | p | |---|---|---:|---:|---:|---:|---:| | notes.append | p50 | 38.9 [12.3–125.5] | 36.2 [13.9–121.7] | 0.98 | 0.89–1.21 | 0.87 | | | p95 | 71.5 [23.6–156.5] | 53.1 [24.8–165.9] | 0.94 | 0.74–1.12 | 0.36 | | | p99 | 121.3 [47.2–178.4] | 78.5 [35.4–306.1] | 0.86 | 0.72–1.05 | 0.46 | | | max | 143.4 [65.1–322.3] | 165.6 [103.1–490.5] | 1.29 | 0.75–2.27 | 0.19 | | search.query | p50 | 10.5 [5.0–11.3] | 10.1 [7.8–12.1] | 1.06 | 0.97–1.08 | 0.41 | | | p95 | 18.1 [9.7–22.6] | 17.7 [14.2–22.9] | 1.13 | 0.91–1.19 | 0.52 | | | p99 | 47.6 [26.7–75.3] | 42.2 [30.3–75.9] | 0.88 | 0.69–1.31 | 0.66 | | | max | 164.2 [96.7–402.2] | 181.3 [89.7–684.6] | 1.10 | 0.52–2.37 | 0.74 | | notes.get | p50 | 4.4 [1.9–6.8] | 4.5 [2.4–6.7] | 1.03 | 0.90–1.17 | 0.74 | | | p95 | 8.6 [4.1–12.2] | 8.6 [5.3–12.3] | 0.95 | 0.76–1.29 | 0.95 | | | p99 | 25.7 [7.7–147.3] | 47.6 [11.0–149.7] | 1.50 | 0.72–3.28 | 0.24 | | | max | 731.7 [54.4–5643.3] | 683.4 [78.8–4777.2] | 0.97 | 0.65–1.45 | 0.95 | | notes.list | p50 | 3.6 [2.9–4.5] | 3.7 [3.0–3.8] | 1.03 | 0.91–1.11 | 0.89 | | | p95 | 6.7 [4.7–10.2] | 6.8 [5.7–7.8] | 1.00 | 0.78–1.22 | 0.87 | | | p99 | 10.0 [7.8–17.6] | 10.2 [7.5–17.5] | 1.04 | 0.58–1.29 | 0.66 | | | max | 17.7 [8.9–28.3] | 17.8 [8.7–44.3] | 1.00 | 0.72–1.38 | 0.71 | 10 paired rounds; 200 samples per op per start. #### SSD, 5 clients | op | stat | A dev (median of rounds) [min–max] | B +#514 [min–max] | paired B/A | 95% CI | p | |---|---|---:|---:|---:|---:|---:| | notes.append | p50 | 42.6 [20.7–82.3] | 45.8 [23.0–78.2] | 1.01 | 0.88–1.32 | 0.95 | | | p95 | 128.0 [52.3–219.6] | 109.9 [43.6–217.3] | 1.06 | 0.81–1.26 | 0.71 | | | p99 | 203.6 [75.9–351.5] | 163.8 [55.3–346.3] | 0.96 | 0.63–1.22 | 0.36 | | | max | 399.4 [109.1–770.7] | 254.7 [120.7–1067.8] | 0.99 | 0.62–1.26 | 0.29 | | search.query | p50 | 25.0 [13.4–32.0] | 24.4 [15.8–28.1] | 1.01 | 0.90–1.32 | 0.78 | | | p95 | 58.3 [29.7–76.0] | 59.2 [33.3–65.9] | 1.02 | 0.87–1.42 | 0.87 | | | p99 | 75.5 [45.2–104.5] | 79.1 [43.2–92.2] | 1.08 | 0.92–1.55 | 0.66 | | | max | 95.8 [61.6–147.7] | 115.4 [49.5–298.4] | 1.19 | 1.01–1.53 | 0.47 | | notes.get | p50 | 5.7 [4.0–7.5] | 6.4 [3.3–7.9] | 1.07 | 0.96–1.25 | 0.77 | | | p95 | 18.3 [10.7–27.1] | 19.7 [7.5–23.9] | 1.09 | 0.86–1.41 | 0.91 | | | p99 | 81.0 [26.8–144.1] | 65.3 [13.0–137.6] | 0.97 | 0.48–1.15 | 0.44 | | | max | 246.2 [83.3–866.4] | 278.0 [57.2–786.1] | 1.01 | 0.80–1.52 | 0.78 | | notes.list | p50 | 9.1 [5.4–11.0] | 9.1 [5.1–9.9] | 1.05 | 0.97–1.26 | 0.82 | | | p95 | 22.4 [11.9–31.1] | 25.9 [11.4–30.4] | 1.21 | 0.99–1.56 | 0.46 | | | p99 | 32.5 [14.0–54.8] | 39.5 [15.2–49.0] | 1.25 | 1.18–1.51 | 0.36 | | | max | 48.7 [19.7–83.4] | 70.3 [19.4–295.4] | 1.55 | 1.07–2.85 | 0.14 | 10 paired rounds; 500 samples per op per start. #### SSD, 20 clients | op | stat | A dev (median of rounds) [min–max] | B +#514 [min–max] | paired B/A | 95% CI | p | |---|---|---:|---:|---:|---:|---:| | notes.append | p50 | 91.5 [54.5–136.0] | 88.6 [54.1–137.3] | 1.03 | 0.96–1.08 | 0.92 | | | p95 | 230.4 [134.3–370.7] | 246.1 [125.1–374.0] | 1.05 | 0.93–1.34 | 0.35 | | | p99 | 375.8 [195.0–534.5] | 380.8 [280.0–603.8] | 1.05 | 0.87–1.44 | 0.34 | | | max | 537.4 [267.8–991.4] | 570.7 [392.2–1499.7] | 1.35 | 0.72–1.71 | 0.28 | | search.query | p50 | 145.1 [85.0–172.7] | 125.9 [94.9–160.2] | 1.02 | 0.87–1.08 | 0.52 | | | p95 | 306.4 [186.5–419.7] | 285.3 [201.1–372.0] | 1.03 | 0.91–1.10 | 0.93 | | | p99 | 394.1 [220.7–523.1] | 373.1 [261.0–469.0] | 1.04 | 0.85–1.18 | 0.95 | | | max | 487.0 [275.9–742.1] | 495.5 [355.2–619.2] | 1.16 | 0.66–1.26 | 0.96 | | notes.get | p50 | 13.6 [10.7–23.9] | 14.2 [9.6–24.6] | 0.97 | 0.84–1.07 | 0.36 | | | p95 | 57.8 [35.9–91.8] | 58.9 [33.8–110.7] | 1.12 | 0.84–1.21 | 0.55 | | | p99 | 171.1 [78.8–308.6] | 197.5 [75.1–695.4] | 1.17 | 0.83–2.26 | 0.13 | | | max | 364.5 [120.0–643.0] | 426.9 [156.3–927.7] | 1.36 | 0.89–2.27 | 0.12 | | notes.list | p50 | 27.4 [20.4–40.6] | 27.5 [21.2–44.5] | 1.05 | 0.92–1.14 | 0.92 | | | p95 | 77.4 [49.8–105.3] | 84.7 [55.5–124.9] | 1.18 | 0.99–1.27 | 0.25 | | | p99 | 110.1 [75.9–166.1] | 121.9 [75.4–177.3] | 1.11 | 0.88–1.24 | 0.71 | | | max | 165.1 [93.9–270.3] | 176.9 [112.5–260.4] | 1.22 | 0.75–1.30 | 0.40 | 10 paired rounds; 1000 samples per op per start. #### HDD, 1 client | op | stat | A dev (median of rounds) [min–max] | B +#514 [min–max] | paired B/A | 95% CI | p | |---|---|---:|---:|---:|---:|---:| | notes.append | p50 | 50.3 [30.5–86.9] | 46.3 [20.2–80.3] | 0.93 | 0.82–0.99 | 0.10 | | | p95 | 98.0 [79.2–134.7] | 100.4 [50.1–132.8] | 0.95 | 0.74–1.06 | 0.15 | | | p99 | 165.7 [112.1–262.7] | 144.8 [83.4–217.5] | 0.73 | 0.69–1.04 | 0.12 | | | max | 247.0 [152.2–439.5] | 231.6 [154.5–551.1] | 0.99 | 0.83–1.16 | 0.62 | | search.query | p50 | 10.4 [5.9–11.1] | 9.9 [8.0–11.3] | 0.98 | 0.87–1.06 | 0.86 | | | p95 | 16.7 [12.3–23.0] | 16.7 [12.1–22.9] | 0.95 | 0.83–1.11 | 0.47 | | | p99 | 55.0 [30.8–356.8] | 42.6 [21.6–306.8] | 0.82 | 0.13–1.83 | 0.40 | | | max | 275.8 [101.6–1887.1] | 240.8 [80.1–1468.5] | 1.15 | 0.15–2.44 | 0.54 | | notes.get | p50 | 4.4 [2.0–6.0] | 4.3 [2.5–5.6] | 0.99 | 0.86–1.15 | 0.91 | | | p95 | 8.6 [4.4–11.9] | 7.9 [5.6–9.6] | 0.94 | 0.73–1.03 | 0.15 | | | p99 | 127.3 [12.4–210.5] | 96.9 [8.0–266.9] | 0.90 | 0.15–1.71 | 0.34 | | | max | 780.7 [166.5–5333.9] | 867.7 [49.5–3702.4] | 0.78 | 0.47–1.04 | 0.14 | | notes.list | p50 | 3.6 [3.0–4.2] | 3.5 [2.4–4.1] | 1.00 | 0.86–1.08 | 0.40 | | | p95 | 6.6 [5.4–11.5] | 6.6 [3.1–12.0] | 1.01 | 0.72–1.13 | 0.35 | | | p99 | 11.6 [6.6–24.8] | 9.2 [4.7–37.0] | 0.83 | 0.55–1.27 | 0.17 | | | max | 22.4 [8.3–58.8] | 12.9 [8.7–68.1] | 0.84 | 0.51–1.16 | 0.37 | 10 paired rounds; 200 samples per op per start. #### HDD, 5 clients | op | stat | A dev (median of rounds) [min–max] | B +#514 [min–max] | paired B/A | 95% CI | p | |---|---|---:|---:|---:|---:|---:| | notes.append | p50 | 73.8 [43.2–94.0] | 70.5 [45.6–104.2] | 1.05 | 0.91–1.10 | 0.69 | | | p95 | 197.0 [126.7–270.2] | 198.7 [143.6–259.4] | 1.02 | 0.91–1.10 | 0.84 | | | p99 | 373.6 [188.2–582.2] | 308.7 [210.8–498.4] | 0.86 | 0.69–1.03 | 0.03 | | | max | 656.6 [410.0–1015.8] | 538.5 [252.0–1239.0] | 0.84 | 0.67–1.04 | 0.25 | | search.query | p50 | 21.0 [10.3–24.8] | 20.7 [15.2–27.6] | 1.07 | 0.87–1.23 | 0.46 | | | p95 | 54.8 [29.9–68.5] | 56.6 [37.9–80.7] | 1.12 | 0.75–1.32 | 0.89 | | | p99 | 72.1 [43.8–107.1] | 70.9 [50.6–137.7] | 1.07 | 0.73–1.36 | 0.93 | | | max | 100.5 [88.7–164.0] | 103.1 [63.2–188.3] | 0.96 | 0.76–1.29 | 0.84 | | notes.get | p50 | 5.7 [3.9–6.6] | 5.5 [4.1–7.3] | 0.93 | 0.87–1.11 | 0.46 | | | p95 | 19.9 [13.4–23.3] | 20.9 [10.6–31.9] | 1.09 | 0.88–1.25 | 0.78 | | | p99 | 344.5 [50.6–449.1] | 370.8 [33.5–500.3] | 1.09 | 0.70–1.66 | 0.47 | | | max | 579.4 [388.9–960.4] | 545.8 [232.7–980.1] | 0.85 | 0.60–1.09 | 0.20 | | notes.list | p50 | 8.0 [6.6–8.8] | 7.9 [4.7–9.9] | 1.00 | 0.88–1.12 | 0.89 | | | p95 | 22.7 [17.4–29.1] | 21.3 [12.5–33.2] | 1.04 | 0.75–1.18 | 0.65 | | | p99 | 34.8 [26.4–46.9] | 34.2 [17.3–61.9] | 1.07 | 0.81–1.36 | 0.91 | | | max | 60.4 [38.3–91.0] | 49.1 [21.0–141.9] | 0.74 | 0.65–1.56 | 0.69 | 10 paired rounds; 500 samples per op per start. #### HDD, 20 clients | op | stat | A dev (median of rounds) [min–max] | B +#514 [min–max] | paired B/A | 95% CI | p | |---|---|---:|---:|---:|---:|---:| | notes.append | p50 | 135.5 [79.9–158.1] | 125.9 [95.1–214.8] | 1.08 | 0.89–1.19 | 0.46 | | | p95 | 432.8 [275.6–635.8] | 391.1 [348.3–628.6] | 0.99 | 0.84–1.09 | 0.61 | | | p99 | 790.9 [503.4–1084.7] | 660.3 [526.5–1052.7] | 0.94 | 0.75–1.13 | 0.50 | | | max | 1122.1 [654.4–1634.5] | 885.3 [752.5–1570.6] | 0.94 | 0.66–1.29 | 0.46 | | search.query | p50 | 119.0 [63.8–139.6] | 112.9 [85.6–158.1] | 1.02 | 0.95–1.15 | 0.48 | | | p95 | 277.6 [152.7–330.4] | 268.8 [194.1–418.5] | 1.03 | 0.92–1.22 | 0.40 | | | p99 | 341.6 [187.3–447.0] | 354.3 [244.1–558.4] | 1.12 | 0.93–1.25 | 0.29 | | | max | 415.0 [246.0–648.9] | 486.8 [363.4–958.7] | 1.33 | 0.93–1.44 | 0.11 | | notes.get | p50 | 12.1 [10.8–14.9] | 14.0 [10.0–19.6] | 1.09 | 0.98–1.27 | 0.18 | | | p95 | 73.8 [41.9–405.9] | 76.8 [42.1–166.2] | 1.14 | 0.60–1.98 | 0.90 | | | p99 | 677.1 [356.3–924.6] | 603.6 [423.4–844.0] | 0.88 | 0.71–1.25 | 0.60 | | | max | 890.5 [540.6–1417.0] | 810.8 [511.6–1501.6] | 0.95 | 0.74–1.13 | 0.50 | | notes.list | p50 | 23.0 [19.8–27.6] | 25.9 [18.1–35.5] | 1.15 | 0.90–1.30 | 0.25 | | | p95 | 62.7 [55.1–87.6] | 72.1 [56.7–118.5] | 1.18 | 1.00–1.40 | 0.08 | | | p99 | 93.0 [72.2–132.5] | 100.5 [75.7–198.6] | 1.20 | 0.92–1.73 | 0.13 | | | max | 151.1 [91.4–222.2] | 190.9 [98.3–247.8] | 1.19 | 0.83–1.69 | 0.38 | 10 paired rounds; 1000 samples per op per start. ## Side finding: append cost grows with the note Per start, the 1-client `notes.append` p50 for the probe note (paired A and B agree): | round | 1 | 2 | 4 | 6 | 8 | 10 | |---|---:|---:|---:|---:|---:|---:| | SSD, A | 12.3 | 23.4 | 32.2 | 40.4 | 61.3 | 125.5 | | HDD, A | 30.5 | 33.3 | 44.3 | 53.7 | 81.7 | 86.8 | The probe note grows by about 350 lines per start (to about 3,500 by round 10), and append p50 grows about 10× with it. `api_edit` starts every append by `ydoc::fork(Some(&ydoc::state(doc)))`, which encodes and decodes the whole document, and the save then rewrites the whole file. The same fork-per-append pattern applies to long daily logs. This deserves its own issue (measure-first), separate from #514. ## HDD: where save time goes ### Raw fsync cost of each disk (fio, 4 KiB writes, queue depth 1, 20 s each) | disk | case | p50 ms | p95 ms | p99 ms | |---|---|---:|---:|---:| | HDD | fdatasync, overwrite in place (like a reused SQLite WAL) | 8.4 | 15.9 | 30.5 | | HDD | fsync, overwrite in place | 17.4 | 43.8 | 68.7 | | HDD | fsync, growing file (like a new note temp file) | 20.3 | 48.5 | 81.3 | | HDD | fdatasync, growing file | 22.9 | 48.5 | 66.3 | | SSD | fdatasync, overwrite | 3.3 | 6.5 | 9.0 | | SSD | fsync, overwrite | 6.1 | 12.3 | 18.2 | | SSD | fsync, growing file | 7.2 | 13.4 | 19.5 | SQLite already calls `fdatasync` on its WAL (seen in the traces), so that saving is already taken. On a new or growing file, `fdatasync` costs as much as `fsync`, because the file's size has to reach the journal either way. ### What one save does today (from the code) `Notes` save (`crates/notes/src/room/save.rs`), with the room busy the whole time: 1. `settle()`: typing still on its way to history lands first (usually already done). 2. Server keys (`last edited`, at most once a minute) are written as small edits through history. 3. Re-read the file and compare its hash with the base. 4. **At the same time**: history `set_pending` (one WAL commit, fdatasync) and the new file written under a temp name and `fsync`ed. 5. `renameat2(RENAME_EXCHANGE)` swaps it in, then the **Notes folder is `fsync`ed**. 6. History `promote` (one more WAL commit), which the room waits for. On ext4, steps 4 and 5 are two journal commits. The "Saved" check (`sync.save_ack`) and `notes.append` wait only for the history commit of the change itself. File saves happen 750 ms after the last change, or 5 s after the first unsaved one, but they share the disk with those commits, and they block the note's room. ### Where save time goes: traces All disk-sync time (ext4 `fsync`/`fdatasync` enter→exit, every thread), grouped by file. "share" is the share of all sync wait in the traced window. The history commit line comes from the server's own `history.commit` debug log (the time the writer thread holds a transaction, including its fsync). **HDD, 1 client(s), fresh notes** | file | call | count | total s | share | p50 ms | p95 ms | max ms | |---|---|---:|---:|---:|---:|---:|---:| | history.db WAL: commit (FULL) | fdatasync | 214 | 6.12 | 66% | 21.1 | 85.4 | 133.9 | | meta.db: checkpoint | fdatasync | 25 | 2.10 | 23% | 59.2 | 226.7 | 261.9 | | Notes folder (after swap) | fsync | 5 | 0.33 | 4% | 60.1 | 133.8 | 133.8 | | index.db (change journal): checkpoint | fdatasync | 3 | 0.28 | 3% | 122.1 | 134.7 | 134.7 | | note temp file (new file, before swap) | fsync | 2 | 0.19 | 2% | 63.2 | 125.9 | 125.9 | | search.db: checkpoint | fdatasync | 3 | 0.17 | 2% | 59.5 | 72.7 | 72.7 | | history.db main: checkpoint | fdatasync | 1 | 0.10 | 1% | 96.8 | 96.8 | 96.8 | history commits: 212; writes per commit mean 1.00, p95 1, max 1; commit time p50 27.0 p95 103.0 p99 176.2 max 218.8 ms probe 1 clients, wall 20.6 s; page p50 5 p99 20; get p50 3 p99 137; search p50 14 p99 440; write p50 37 p99 218 traced window 20.4 s; total sync wait 9.30 s **HDD, 5 client(s), fresh notes** | file | call | count | total s | share | p50 ms | p95 ms | max ms | |---|---|---:|---:|---:|---:|---:|---:| | history.db WAL: commit (FULL) | fdatasync | 323 | 10.72 | 46% | 28.3 | 79.8 | 124.0 | | note temp file (new file, before swap) | fsync | 29 | 5.20 | 22% | 169.2 | 299.3 | 302.8 | | Notes folder (after swap) | fsync | 29 | 4.72 | 20% | 168.9 | 243.5 | 245.4 | | meta.db: checkpoint | fdatasync | 13 | 1.38 | 6% | 103.8 | 255.2 | 255.2 | | index.db (change journal): checkpoint | fdatasync | 9 | 0.71 | 3% | 46.0 | 229.8 | 229.8 | | search.db: checkpoint | fdatasync | 5 | 0.29 | 1% | 31.0 | 123.9 | 123.9 | | history.db main: checkpoint | fdatasync | 2 | 0.15 | 1% | 57.8 | 90.3 | 90.3 | history commits: 319; writes per commit mean 1.81, p95 4, max 4; commit time p50 34.2 p95 100.8 p99 156.6 max 198.9 ms probe 5 clients, wall 21.6 s; page p50 12 p99 60; get p50 6 p99 352; search p50 33 p99 1219; write p50 77 p99 463 traced window 24.6 s; total sync wait 23.19 s **HDD, 20 client(s), fresh notes** | file | call | count | total s | share | p50 ms | p95 ms | max ms | |---|---|---:|---:|---:|---:|---:|---:| | note temp file (new file, before swap) | fsync | 146 | 30.04 | 39% | 176.0 | 590.1 | 591.3 | | Notes folder (after swap) | fsync | 146 | 24.06 | 31% | 150.4 | 308.8 | 354.2 | | history.db WAL: commit (FULL) | fdatasync | 433 | 17.49 | 23% | 31.6 | 106.0 | 233.9 | | meta.db: checkpoint | fdatasync | 31 | 3.25 | 4% | 67.8 | 204.4 | 804.0 | | index.db (change journal): checkpoint | fdatasync | 18 | 1.81 | 2% | 98.9 | 196.4 | 196.4 | | history.db main: checkpoint | fdatasync | 5 | 0.48 | 1% | 88.0 | 135.0 | 135.0 | | search.db: checkpoint | fdatasync | 4 | 0.42 | 1% | 10.5 | 348.6 | 348.6 | history commits: 423; writes per commit mean 3.25, p95 9, max 19; commit time p50 43.4 p95 121.5 p99 200.0 max 302.1 ms probe 20 clients, wall 30.2 s; page p50 33 p99 135; get p50 13 p99 566; search p50 198 p99 4383; write p50 147 p99 1111 traced window 32.7 s; total sync wait 77.62 s **SSD, 20 clients, fresh notes (for contrast)** | file | call | count | total s | share | p50 ms | p95 ms | max ms | |---|---|---:|---:|---:|---:|---:|---:| | history.db WAL: commit (FULL) | fdatasync | 666 | 9.94 | 46% | 9.9 | 43.5 | 162.8 | | note temp file (new file, before swap) | fsync | 100 | 5.48 | 25% | 41.9 | 139.2 | 194.9 | | Notes folder (after swap) | fsync | 100 | 4.62 | 21% | 42.9 | 77.7 | 146.2 | | meta.db: checkpoint | fdatasync | 36 | 0.94 | 4% | 20.5 | 124.1 | 129.9 | | index.db (change journal): checkpoint | fdatasync | 22 | 0.45 | 2% | 20.4 | 34.7 | 70.8 | | history.db main: checkpoint | fdatasync | 5 | 0.14 | 1% | 18.0 | 52.9 | 52.9 | | search.db: checkpoint | fdatasync | 2 | 0.06 | 0% | 11.0 | 45.9 | 45.9 | history commits: 658; writes per commit mean 1.94, p95 5, max 15; commit time p50 16.1 p95 76.8 p99 141.8 max 206.9 ms probe 20 clients, wall 21.2 s; page p50 38 p99 169; get p50 14 p99 236; search p50 200 p99 813; write p50 100 p99 463 traced window 23.7 s; total sync wait 21.64 s How to read the tables: - **One client**: almost everything is the per-append history commit (one fdatasync each; `notes.append` p50 37 ms on HDD against a 21 ms fdatasync). Background `meta.db` checkpoints come second (23%, 59 ms each). The note list re-describes the note after every change, and its WAL checkpoints about every 16 appends. - **20 clients**: saves dominate. 146 saves in 30 s, each paying a temp-file fsync (p50 176 ms) and a folder fsync (p50 150 ms), because 20 rooms' journal commits queue on one spindle. History commits already group (3.25 writes per commit on average, up to 19), so group commit for history exists and works. - The room stays busy for temp fsync + folder fsync + promote commit: about 176 + 150 + 43 ≈ 370 ms p50 on HDD at 20 clients, and about 100 ms on SSD. `notes.get` (served by the room) and `notes.append` to that note wait behind it. That is the long tail: on HDD at 20 clients, get p50 is 12 ms and p95 74 ms, but p99 is 600–680 ms. ## OPTIONS for kayg (nothing built; kayg decides) What "safe" means today (ADR 0020): "Saved" means the change is in `history.db` (synchronous=FULL), so a power cut never loses an acknowledged change. The file is written after history, and crash recovery uses the pending row to tell our half-finished save from an outside edit. Gains are estimated from the traces above (HDD, 20 clients, fresh notes) unless marked as measured. | # | option | crash guarantee | expected gain | cost / risk | |---|---|---|---|---| | O1 | **Save without holding the room.** Take a snapshot (text + state), let the room go back to serving get/edits, and write the file in a separate task. History-before-flush still holds, because the snapshot's changes are already durable before the file is written. Only one save per note runs at a time. | **Same.** No acknowledged change depends on the file write. The pending/promote protocol is unchanged. | Removes the ~370 ms (HDD) / ~100 ms (SSD) room stall per save. Estimate: HDD 20-client `notes.get` p99 from ~600–680 ms toward its ~75 ms p95, and `notes.append` p99 down by about one save (~300 ms). No change at 1 client (few saves). | Medium. The room must not start a second save, and edits made during a save just make the note dirty again. Needs the kill-9 and crash-point tests (`tests/kill9.rs`, `save::crash`) re-run with edits arriving mid-save. | | O2 | **Group commit for saves: one folder fsync for concurrent saves.** Saves whose rename finished wait together, one `fsync` of the folder covers them all, then all are answered. | **Same.** Each save is answered only after a folder fsync that started after its rename. | Folder fsyncs are 31% of HDD sync wait at 20 clients (146 × p50 150 ms). Batching them cuts up to that and about 150 ms p50 per save under load. Nothing at 1 client. Note: most notes live in one folder (`Notes/`), so batches would be large. | Low–medium. A small "folder syncer" per folder, like the history writer. | | O3 | **Don't wait for `promote`.** Queue it in the history writer (FIFO, so it still commits before any later `set_pending`), and free the room right after the folder fsync. | **Same, I believe, but please review.** The crash window it covers (file swapped, promote not yet durable) exists today, and recovery handles it with the pending row. The next save's `set_pending` is ordered after this promote by the single writer. Worth a crash-point test before trusting it. | One history commit off each save's room time: about 43 ms p50 on HDD at 20 clients, 27 ms at 1. Smaller than O1, and folds into O1 if O1 is done. | Low. | | O4 | **Move SQLite checkpoints off the commit path** for `history.db`, `meta.db` and `index.db` (`wal_autocheckpoint=0`, then PASSIVE checkpoints in a quiet moment, as `search.db` already does). | **Same.** The WAL is already durable when the commit returns, and a checkpoint only copies it into the main file. `history.db` stays synchronous=FULL. | Checkpoint fsyncs are about 8% of HDD sync wait. Each one currently lands inside some writer's transaction: history checkpoints (5–14 per 30 s, p50 ~90 ms, up to 230 ms) stall a whole group commit, and meta/index checkpoints (20–46 per 30 s, 60–100 ms, up to 800 ms) take the head away from history commits. Expect lower p99/max on `sync.save_ack` and append, and no p50 change. | Low. Watch WAL size (keep `journal_size_limit`). | | O5 | `fdatasync` instead of `fsync` for the note temp file and folder. | Same for the content. Only the file's mtime may be stale after a crash. | **About 0 (measured).** On a new or growing file, fdatasync costs 22.9 ms p50 against 20.3 ms for fsync on this HDD, because the size must be journaled anyway. SQLite already uses fdatasync for its WAL. | Not worth doing on its own. | | O6 | Raise the save delays under load (750 ms / 5 s → for example 2 s / 15 s while many rooms are dirty). | Same for acknowledged changes: they are in history. **Changes what other apps see.** The `.md` file trails the live note longer (Obsidian or sync tools see edits later), and an outside edit made meanwhile is merged later. | Fewer saves, so fewer journal commits competing with history. Roughly proportional: 3× longer delays mean about 3× fewer saves under constant typing. | A product call, not a durability one. | | O7 | Skip the temp-file fsync (rename only, then folder fsync). | **Changes the crash guarantee, NOT recommended.** After a power cut the file could be empty or old while history says pending. Recovery could take that for an outside edit and merge an empty file, which deletes text in the live note. | Would remove ~39% of HDD sync wait at 20 clients. | Unsafe without a redesign of recovery (for example, always rebuilding the file from history when it matches neither base nor pending). Listed only to show the cost of the temp-file fsync. | Not options, because they are already in place: history group commit (measured 3.25 writes per commit at 20 clients), one history fsync per acknowledged change, `fdatasync` on SQLite WALs, and `synchronous=NORMAL` on the rebuildable databases (meta, index journal, search). "Defer index writes" therefore means O4 for checkpoints, plus optionally coalescing `meta.db` refreshes longer under load. That second part is rebuildable data with no durability effect, and it is worth about 5–23% of HDD sync wait (largest at 1 client). Suggested order, if kayg wants any: O4 (small, same guarantee) → O2 → O1 (biggest tail win, needs the crash tests) → O3 folded into O1. Skip O5. O6 is a product call. Never O7 as written. ## Reproduce All on the perf VM (`root@10.69.69.63`), scripts in `/root/tails-512/`: `build.sh` and `buildB.sh` (builds), `prep.sh` (Homes), `rounds.sh` (`ROUNDS="1 2 …" PHASES=1:200,5:100,20:50`), `profile3.sh` (traced fresh-note runs), `tails.py` (probe; `--ktrace`, `--offset N`). Results: `/root/tails-512/out/` (`r*-{ssd,hdd}-{A,B}.json` hold every sample; `kf-*.perf.txt` and `kf-*.server.log` hold the traces). Binaries and the fixture: `/mnt/z4-nvme/tails-512/`. The two test Homes and the build dirs were deleted afterwards to give the root disk its space back (it sits at 98%).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#512
No description provided.