Repository navigation
perf(repartition): avoid blocking output startup - #27935
Rich-T-kid wants to merge 1 commit into
Conversation
|
run benchmark tpch tpcds clickbench_partitioned |
|
run benchmark tpch tpcds clickbench_partitioned |
|
run benchmark tpch tpcds clickbench_partitioned |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentCPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentCPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentCPU Details (lscpu)Details
Resource Usagetpcds — base (merge-base)
tpcds — branch
File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentCPU Details (lscpu)Details
Resource Usagetpcds — base (merge-base)
tpcds — branch
File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentCPU Details (lscpu)Details
Resource Usageclickbench_partitioned — base (merge-base)
clickbench_partitioned — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentCPU Details (lscpu)Details
Resource Usagetpch — base (merge-base)
tpch — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentCPU Details (lscpu)Details
Resource Usageclickbench_partitioned — base (merge-base)
clickbench_partitioned — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentCPU Details (lscpu)Details
Resource Usageclickbench_partitioned — base (merge-base)
clickbench_partitioned — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 74f6315 (74f6315) to e53403f diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "e53403f058b8a1dab4cb1570d389b1d4ae69c3b4"
changed:
ref: "74f6315f30cd72f60cd90425486d23c0fc1359b0"Trigger commentCPU Details (lscpu)Details
Resource Usagetpcds — base (merge-base)
tpcds — branch
File an issue against this benchmark runner |
Which issue does this PR close?
RepartitionExecoptimizations.Rationale for this change
The first
RepartitionExecoutput currently holds a blocking mutex while it creates all output channels and starts the input tasks. At high partition counts, the other outputs block executor threads behind that work.What changes are included in this PR?
One
executecaller still creates the child streams synchronously, preserving immediate child errors, but publishes them to a shared startup future without holding a mutex. Racing callers return immediately and wait asynchronously. Startup runs once, and each output claims its own one-shot slot instead of removing its channel through a global lock.Partitioning and data flow are unchanged.
What is the testing strategy for this PR?
All 3,087
datafusion-physical-plantests pass, including a race test that holds the winning caller inside childexecuteand verifies that another output does not block. Format, Clippy with warnings denied, and the repository pre-push checks pass.The hosted benchmark bot compared exact base
e53403f058b8a1dab4cb1570d389b1d4ae69c3b4with exact head74f6315f30cd72f60cd90425486d23c0fc1359b0; all nine jobs completed with no query failures. Each cell shows repeated-run suite time and peak RSS.Repeated-run losses: at 128 partitions, TPC-H Q22 (1.13×), TPC-DS Q26/Q27/Q45/Q62/Q79/Q82 (1.05–1.13×), and ClickBench Q15/Q24/Q25/Q37 (1.05–1.13×); at 256, TPC-DS Q6/Q15/Q28/Q34/Q40/Q44/Q76/Q84 (1.05–1.15×) and ClickBench Q3/Q19/Q26/Q29/Q35 (1.06–1.52×); at 512, TPC-H Q14/Q19 (1.07–1.11×), TPC-DS Q6/Q32/Q43/Q61 (1.07–1.08×), and ClickBench Q23/Q25/Q42 (1.06–1.18×).
Are there any user-facing changes?
No.