Repository navigation
Description
Status (2026-10-18)
Original 10% gap not reproduced under controlled inputs; small workload effect unresolved.
Controlled inputs. Both candidates started from the same commit chain and received the identical 100 commits; full results are in the comment of 2026-10-18. Under those inputs, every component of the update path matches next:
- the incremental build, run standalone and by the server's indexer;
- allocations, bytes written and reads;
- Q10 with writes pending.
Workload on the same store pair. The adaptive Update-mix workload measured 0.970 at the median, with pair ratios from 0.85 to 1.09. That does not establish that any regression is below 3%.
Outlier sensitivity, standalone build pairs.
- Pair 1 includes the one outlier: next took 30 s instead of about 15.6 s. In that pair, next read 3.4 GB from disk and head 425 MB; no later rep read anything.
- With pair 1, the paired wall ratio has a median of 0.993 and a ratio of means of about 0.90.
- Without it, the median is 0.995 and the ratio of means about 1.00.
- There is no established exclusion rule, so pair 1 stays in.
Next. A bounded fixed-cadence diagnostic: identical commit chains, update batches and query sequences, with indexing windows and queries at predetermined times. A small pilot comes first, to check whether it reduces variance. The adaptive workload remains the check of production behaviour.
The description below is the original report. Its 10% figure compared the two builds on separately imported stores, in different sessions.
Summary
On feat/pooled-named-graphs, BSBM 100M Update-mix throughput is about 10% below next (b68f71c). Individual updates are no slower.
Supported by the measurements: an amplification loop. Background index builds take longer, so each build covers more commits. More writes therefore stay unindexed, and every explore query re-translates more novelty.
Not established: why a fixed amount of indexing work is slower.
The regression has not been attributed to a commit.
Measurements
Setup: m7a.4xlarge DB, m7a.2xlarge driver, file storage. The branch build ran on a clean re-import.
next b68f71c |
branch 0db5da5 | |
|---|---|---|
| Update-mix QMpH (2 runs) | 10,409 / 10,856 | 9,429 / 9,647 |
| update latency p50 | ~2.93 ms | ~2.93 ms |
| background build, mean | 6.6 s, 95 commits | 9.1 s, 125 commits |
| explore query execution | ~6.4 ms | ~6.9 ms |
Controlled build. One incremental build of the same 100 commits was slower on the branch:
- 9% slower in one session: 12.3–12.5 s against 11.4–11.5 s.
- 1.5–2% slower in another session.
The extra time is spread across the subject and string reverse-dictionary updates and the forward packs. The branch does not change that code.
Bisect, stopped at the noise floor.
- 6d53d60 ("graph ids are 32-bit") built as fast as
next. - 49baba4 ("a pooled leaf holds one leaflet") fell between the two.
- Per-run noise was ±3% (about ±0.3 s), so later steps could not be told apart.
Known confounders
Neither is assumed to explain this regression.
- Bulk import assigns namespace codes nondeterministically; once the table fills this changes overflow placement and query time #2134: bulk import assigns namespace codes nondeterministically. Two imports of the same file differ, and one layout made Q10 with pending writes 25% slower. Earlier rounds of this comparison used separate imports per variant.
- Measure namespace overflow costs near the 16-bit limit before choosing wider ids or better overflow handling #2135: 95.6% of BSBM subjects, and 92% of subjects created by updates, are in the overflow namespace. This holds on both builds.
Next step
Paired profiling of a fixed build comes before any further bisection:
- Give each candidate an independent copy of the same starting store and an identical 100-commit input.
- Alternate the order in which candidates run.
- Measure elapsed time separately from CPU time, allocations, bytes read and written, and storage operations.
- Check whether slower indexing creates extra translation work that then competes with indexing.
Activity
bplatz commentedon Oct 18, 2026
Paired fixed-store profiling (2026-10-18)
Setup
Candidates. Both are release builds of
fluree-db-cliwith default features, which means the glibc allocator. Both ran on an m7a.4xlarge.ba8480dc2273bfc5decc857069885ba11ee5dc817bcb1d4b93950c8c7c5164fe4d91e372bf36f67150c289ecd6d34b858610bc03f3e3f2d63b82f068c8940b52Fixed store.
FLUREE_STORAGE_FSYNC=1, 22 GB cache.Results
Component measurements (head/next is the paired median):
fluree index: wallEvery step of the build log matches to within 0.04 s.
Import layout. next built the same 100 update blocks on its own bulk import and on this commit chain at the same cost: paired wall 0.996 and CPU 1.002 over 5 pairs.
Update-mix workload on the fixed pair (driver m7a.2xlarge, 1 client, 400 runs):
Update latency p50 was 2.90–2.99 ms in every cell.
What this changes
Identifiers
Stores (bsbm DB box,
~/x2136/):t33-next,t33-heads-next,s-heads-pnbaghybqabciqer6lp47wudv4grhocxrjkmfyhi4aycnkc6yd7q2vmkqovqn5c42i, headbaghybqabciqo7izomorj5kt3xzo776u432g6kusfmpqycvndrsg4p2emupuusoiArtifacts: the scripts, logs,
perf statandtime -voutput, perf and heaptrack data, and the server logs of each workload cell are archived with the run (benchmark-dbruns/bsbm-2136-20261018). The boxes are stopped, not terminated.Related: #2134, #2135.
[-]BSBM Update throughput ~10% below next on feat/pooled-named-graphs: incremental builds are slower[/-][+]BSBM Update throughput on feat/pooled-named-graphs: original ~10% gap not reproduced under controlled inputs; small workload effect unresolved[/+]bplatz commentedon Oct 19, 2026
Closing.
Controlled inputs. Both candidates started from the same commit chain and received the identical commits. Under those inputs, every component of the update path matches next:
The one consistent difference is about 1% more instructions per build (1.008–1.015). That is plausibly the cost of 32-bit graph ids and wider run records, and it is accepted as part of the pooled-graphs change.
Workload. On the same store pair, the Update-mix workload measured 0.970 at the median, with pair ratios from 0.85 to 1.09. That spread comes mainly from the workload's indexing feedback and from page-cache pressure on the benchmark box.
The original ~10% compared separately imported stores in different sessions, and does not stand as a branch cost.
Found during this investigation and tracked separately: #2134, #2135.