Repository navigation
Pin path remembers buffers; led walks read bucket runs, inline grid counts, class bounds from tables - #108
Merged
Conversation
…ounts, class bounds from tables (perf-integrate17)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From
tinshape/perf-integrate17(887c5e8). Page layout 16 is unchanged, so layout-16 indexes need noREINDEX.Run pages are pinned by arithmetic and remembered buffers (loop/pinpath).
ReadBuffer. Debug builds check every page and compare.Led walks, grid members and class bounds (loop/survivors T, B, C).
TfRun). The run is taken at the group's first read, so the walk no longer finds each of its pages again.full_scoreand lost on score: nothing net. TBCE scored −0.82% vs the base, and in clean round 3 conj was −0.7%, below the −0.5 floor. TBC scored +1.05% KEEP.Tooling:
tnsreplay --once(one timed pass per query, starting from the previous query's caches) and multiplexed hardware counts scaled by time enabled over time running.PGO retrained on this tree: x86_64 and x86_64-v4 (2af7c16), and aarch64 (887c5e8). Score answers differ from pg-ranked in 0 cases, and
full_scoreanswers match integrate16's trainings. PGO coverage is 40 of 40 for x86-64 and for x86-64-v4 in the strict default (loader) image, the first time the loader image has been checked, and in bothinstall-release --pgo 1server builds. aarch64 is also 40 of 40 in the strict image.Answers. Scores are bit-identical over the whole 150M trace on aarch64. The final code was replayed with
tnsreplay --mmapon dump-v16: 1228 / 1253 / 1252 equal, 0 different, and--fullis byte-identical to f0962a8 in all 3 styles. The x86--expect(TBCE, v4 + replay PGO) also gave 0 different. The ranked oracle matched on 3762/3762 queries. In the server pair, all 4642 list queries gave identical ids and scores. Conformance against TIN 1.0.3 and 1.0.4 is unchanged, 0 FAIL.x86 replay, Sapphire Rapids (m7i.4xlarge), paired-core gate, 3 rounds, each arm built with its own replay PGO profile (x86-64-v4). Queries per core cycle:
The control (same engine, i16 vs i16-plus-pinpath) came in at −0.28%. The replay barely charges for a pin, so pinpath's gain shows in the server, not here.
Server pair, Sapphire Rapids (PG 18.6 PGDG on two hyperthreads of one core, loader builds with PGO on both sides, 2 rounds). Cycles per query, i17 vs i16:
L2 misses fell 10–20% in every style. Instructions: full phrase −5.4%, full conj −3.5 to −4.2%, full disj +1.2 to +1.7%.
Local M4 campaign (layout-16 database, strict aarch64 PGO image). QPS score /
full_score, change against i16 (7ad38b4):The first phrase and mixed runs overlapped another repo's CI runner on the Mac, so those two were rerun with the runner idle (mean 0%). Read volume per query is the same as i16's to within 0.01 MiB (EXPLAIN).
Open items
Verified locally:
script/test-all fullgreen (pgrx 228 passed), clippy pg17/pg18 and fmt clean, x86 tests under Rosetta (no AVX, AVX scalar, AVX2), PGO 40/40 on aarch64.