Repository navigation
Conversation
… covered Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nicholas Gates <nick@nickgates.com>
Polar Signals Profiling ResultsLatest Run
Powered by Polar Signals Cloud |
Benchmarks: TPC-H SF=1 on NVME 📖Commits: PR How to read Verdict and Engines
Hot runs: geomean 1.002x ➖ · 22 queries × 7 targets (0↑ 0↓)Each cell is develop
Cold runs (first iteration): geomean 1.001x ➖ · 22 queries × 7 targets (2↑ 2↓)
No file size changes detected. |
Benchmarks: Clickbench on NVME 📖Commits: PR How to read Verdict and Engines
Hot runs: geomean 1.002x ➖ · 43 queries × 7 targets (2↑ 2↓)Each cell is develop
Cold runs (first iteration): geomean 1.022x ➖ · 43 queries × 7 targets (5↑ 19↓)
No file size changes detected. |
Part of #9062
DuckDB hands each thread that joins a file a clone of the file's
ScanStream. A clone claims its first unit of work, a V1 split or a V2 part, only when its thread first polls it, outside DuckDB's lock. Without a bound, every thread can join a file before any has claimed, and on a 96-core runner that is far more threads than the 10–20 parts of a ClickBench file. This PR tests whether that pile-on is what makes the short ClickBench queries slower on CI for both executors.ScanStreamreports how many units its clones have claimed out of how many in all, for V1 splits and V2 parts, and DuckDB stops handing out clones once it has handed out as many as the file has units, or once every unit is claimed. The threads already joined keep claiming until none is left, so no later thread is needed, and DuckDB reads only a count under its lock and claims nothing there. The gate is CI's DuckDB V1 and V2 ClickBench q01, q02, q07 and q26 back to about 1.0 against develop. The kill criterion is no change against #11717's own CI numbers on those queries (V2 1.16, 1.10, 1.11, 1.14; V1 1.30, 1.25, 1.20, 1.11), in which case the pile-on is not the cause and this is closed.Stacked on #11717
🤖 Generated with Claude Code