perf(exec): Filter normalized join probes with SVE on Vera #136
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 490 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.371
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #136"
general
weight: 0.35
thirtiseven
Dense normalized-key probe batches can spend most of their time loading random buckets that have no matching tag. On the largest sampled table in Vera SF1000 NDS-H Q8, 42,545 of 6,373,367 probes matched.
This change builds one 32-bit tag mask for each 16-slot bucket after the normalized join table has been populated. The Arm SVE path gathers those masks, compacts the rows that could match, and probes the original table for each surviving row. A full bucket always passes the filter so entries in overflow buckets remain visible. Erases and rebuilds invalidate the masks. The allocation is charged to the Velox memory pool and included in hash table size estimates.
The path matches the NVIDIA Olympus MIDR, requires SVE, and samples the input before filtering. Tables from 262,144 to 4,194,304 slots use 64 KiB to 1 MiB of masks (3.125% of the bucket array) plus a validity word and allocation rounding.
Prototype measurements
The measurements below use the prototype before source cleanup and memory-estimate changes. Each build ran twice per suite in reversed order on Vera, SF1000 with 42 executors × 8 slots. The time is the sum of the elapsed times of all queries. All 762 timed query executions in this direct comparison matched their references.
| Full suite | Development baseline | Tag filter alone | PR 135 + tag filter |
|---|---:|---:|---:|
| NDS | 122.147 s | 121.513 s (+0.52%) | 119.214 s (+2.40%) |
| NDS-H | 62.168 s | 61.647 s (+0.84%) | 61.404 s (+1.23%) |
The standalone pair reductions were −0.04% and +1.08% on NDS, and +1.66% and +0.01% on NDS-H. In a separate incremental campaign against PR 135, NDS was flat while NDS-H ran 3.18% faster. Q8 improved by 10.24% and 8.17% in that campaign. See the full comparisons and query-level results.
Validation
The added test builds a normalized table with 180,000 distinct pairs of integer keys. It probes existing and absent key combinations at five batch sizes spanning the vectorized threshold and tail, then erases a hit and probes again. Both parameterizations passed on Vera with the instrumented build. The prototype also passed 12 differential checks covering different miss rates, erased keys and batch sizes 255 through 4,096.
The submitted head was measured separately against the development branch.
<!-- vera-head-pgo-standalone -->
Submitted head on Vera
The standalone head at
b88f17688arebuilt HashTable.cpp against the submitted header and linked that object into the reference Velox and Gluten package. The hash table object regenerated GCC PGO with the original 10 NDS-H and 32 NDS training queries. Other translation units used the reference build. Both builds used the same Spark configuration and 42 executors × 8 slots.| Full SF1000 suite | Target branch | Submitted head | Runtime reduction | Paired reductions |
|---|---:|---:|---:|---:|
| NDS | 122.477 s | 122.008 s | +0.38% | +0.46%, +0.30% |
| NDS-H | 62.981 s | 62.006 s | +1.55% | +1.36%, +1.74% |
All 508 query executions matched their references. Every timed run had zero cgroup swap, and host swap I/O met the 16 MiB cap. The submitted normalized-join test and the selected existing hash-table regression tests passed on Vera against the timed production object.