Repository navigation
perf(repartition): lazily create spill manager - #27933
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 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"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 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"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 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"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 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentResults will be posted here when complete File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentCPU Details (lscpu)Details
Resource Usagetpcds — base (merge-base)
tpcds — branch
File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Instance: Comparing 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "256"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"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 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpch
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"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 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "128"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"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 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark clickbench_partitioned
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"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 668fff1 (668fff1) to 5184bdd diff Run configurationrun benchmark tpcds
env:
DATAFUSION_EXECUTION_TARGET_PARTITIONS: "512"
baseline:
ref: "5184bdd738d285582893b42f90756ae1f245903d"
changed:
ref: "668fff1db2ec74be9f4928ae8b321442e1462a27"Trigger commentCPU Details (lscpu)Details
Resource Usagetpcds — base (merge-base)
tpcds — branch
File an issue against this benchmark runner |
|
Closing this experiment. The hosted matrix is mixed: TPCH improves at 256/512 partitions, but TPC-DS regresses at 512 and ClickBench regresses at 256. The result does not justify the added lazy metric semantics. |
Which issue does this PR close?
RepartitionExecoptimizations.Rationale for this change
Unordered repartition currently creates a
SpillManagerand three spill metrics for every output partition, but only the manager from the first output to initialize the shared state is used. At 512 output partitions, each unorderedRepartitionExectherefore creates 511 unused managers and 1,533 unused metrics.What changes are included in this PR?
Create the shared unordered spill manager only after winning state initialization. Ordered repartition remains unchanged and continues to use one spill manager per output merge.
What is the testing strategy for this PR?
Added coverage for lazy registration, one shared metric set, partition attribution, and fixed-membership snapshots. All 86 repartition tests, formatting, and all-target/all-feature crate Clippy pass.
Hosted GKE results compare exact head
668fff1db2ec74be9f4928ae8b321442e1462a27with exact base5184bdd738d285582893b42f90756ae1f245903d. Cells show repeated-mean suite time and peak RSS (base → branch).Repeated distributions classified slower queries in TPC-DS at every partition count, ClickBench at every partition count, and TPCH at 512 partitions; the linked runs contain every per-query result.
Are there any user-facing changes?
For unordered repartition, losing output partitions no longer report redundant zero-valued spill metrics. Spill metrics are registered on first poll, so an earlier fixed-membership metric snapshot does not include them; fresh snapshots and aggregate spill values are unchanged after initialization.