Overview
| Artifact ID: | 14054359ad734ec71ec3c7e1732c8503f202c56ebdc945b4faf11d5517ef8ce6 |
|---|---|
| Ticket: | 01e8ad6714028430dc4fcd61c91834a33d8aaf73
Clone and run projects held in Libfossil |
| User & Date: | dmestas on 2026-11-20 03:47:39 |
Changes
- icomment:
Experiments run 2026-11-20 (scratch sources lfsql.c, contend.c, README with numbers kept outside the repo). Result: go on the libfossil side, with upstream fixes. 1. Store-held repository: libfossil sql-ext-int a88df0d594 clones pi-c into a host SQLite db (fsl_clone to a temp file, then fsl_repo_import with prefix fslrepo_pic_; 3.7 s, 7.7 MB, integrity ok); a disk checkout of it works (fsl_repo_open_host + fsl_repo_ckout; 0.64 s), commit 0.10 s, update, two checkouts in step. zit and fossil cannot open the store directly (zit's store is its own zitL format; fossil reads the host-prefix entry as a path). Bridge verified: libfossil fsl_sync against zit serve on localhost, both directions; landings travel (forum posts); fsl_export writes a plain .fossil in 0.3 s. 2. Shared store contention (WAL, synchronous=FULL, busy_timeout 5000; N writers, a 90 ms reader, a check-in every 250 ms; 20 s): N=1 p50 1.6 ms p99 116 ms; N=4 p50 2.0 ms p99 171 ms max 1.57 s; N=8 p50 3.0 ms p99 543 ms max 2.68 s; zero busy errors, zero failed check-ins. Tail from SQLite's unfair busy handler and ~85 ms check-in write locks. Upstream: libfossil sync client never offers unclustered artifacts to a second peer (reported to the libfossil maintainer); zit has no way to work with a host-db repository (asked the zit maintainer: export import, local channel, or localhost sync as the supported bridge). For pic: busy_timeout of 5 s or more; keep high-rate user state in its own file or use a fairer retry; set fullfsync explicitly on macOS (synchronous=FULL alone does not use F_FULLFSYNC).