Skip to content

perf(repartition): batch reservation + sends via per-partition local buffers#21677

Closed
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:repartition-local-buffers
Closed

perf(repartition): batch reservation + sends via per-partition local buffers#21677
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:repartition-local-buffers

Conversation

@Dandandan
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

In RepartitionExec::pull_from_input, each input task partitions an input batch and sends the resulting sub-batches to output channels. On every sub-batch, the input task:

  1. Acquires the output partition's memory reservation Mutex and calls try_grow
  2. Sends the batch through the distributor channel (which internally takes channel.state.lock() and potentially the gate mutex)

When hash-partitioning an input batch of size S into N output partitions, each output gets a sub-batch of size ~S/N. With many output partitions (e.g. 16 cores → 16 output partitions), these sub-batches are very small, so the per-batch synchronization cost dominates.

What changes are included in this PR?

Each input task now accumulates partitioned sub-batches in per-output-partition local buffers (Vec<PartitionBuffer>) and only flushes when a buffer reaches FLUSH_THRESHOLD_BYTES (256 KiB). Each flush performs a single try_grow call for the total buffered size instead of once per sub-batch. If try_grow fails, all buffered batches for that partition are spilled together.

End-of-input triggers a final flush of any remaining buffered data per partition.

Are these changes tested?

Covered by the existing repartition test suite (41 tests pass), including the spilling, delayed-stream, dropped-output-stream, and ordering-preservation tests.

Are there any user-facing changes?

No. The change only affects batching granularity inside RepartitionExec; memory semantics, spilling behavior, and output ordering are preserved.

🤖 Generated with Claude Code

…buffers

Accumulate batches into per-partition local buffers in each input task
and flush only when a buffer reaches 256 KiB. This amortizes the memory
reservation + channel overhead: each flush performs a single `try_grow`
call and spill-check for the entire buffered size, instead of once per
tiny sub-batch.

When hash-partitioning an input batch into N output partitions each
output partition only gets ~input_size / N bytes per input batch. With
many output partitions these sub-batches are very small and hitting the
reservation Mutex (plus the backpressure gate mutex) on every one is a
significant contention point that reduces CPU utilization for
parallel-partition workloads like ClickBench.

Semantics are preserved:
- Memory batches and spill fallback behavior are unchanged.
- If the receiver drops mid-flush, the full reserved amount is released.
- End-of-input triggers a flush of any remaining buffered batches.

No user-visible behavior change besides batching granularity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmarks

@github-actions github-actions bot added the physical-plan Changes to the physical-plan crate label Apr 16, 2026
@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4261425493-1376-8j85d 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing repartition-local-buffers (f2270ad) to 3b5008a (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4261425493-1377-vq4kk 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing repartition-local-buffers (f2270ad) to 3b5008a (merge-base) diff using: tpcds
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4261425493-1378-bnxwp 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing repartition-local-buffers (f2270ad) to 3b5008a (merge-base) diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and repartition-local-buffers
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃                repartition-local-buffers ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.60 / 7.02 ±0.72 / 8.45 ms │              6.60 / 6.99 ±0.73 / 8.45 ms │     no change │
│ QQuery 2  │        148.29 / 149.99 ±1.15 / 151.26 ms │        145.60 / 147.16 ±0.99 / 148.42 ms │     no change │
│ QQuery 3  │        116.13 / 116.76 ±0.76 / 118.22 ms │        114.97 / 115.88 ±0.80 / 117.31 ms │     no change │
│ QQuery 4  │    1386.41 / 1403.32 ±17.24 / 1434.87 ms │    1319.64 / 1387.12 ±54.80 / 1447.15 ms │     no change │
│ QQuery 5  │        176.14 / 178.84 ±2.83 / 182.36 ms │        175.42 / 177.01 ±1.44 / 178.75 ms │     no change │
│ QQuery 6  │       851.87 / 875.69 ±17.57 / 897.56 ms │       862.40 / 886.30 ±29.15 / 941.89 ms │     no change │
│ QQuery 7  │        350.10 / 352.72 ±2.70 / 357.49 ms │        349.17 / 354.70 ±3.74 / 359.75 ms │     no change │
│ QQuery 8  │        118.83 / 120.21 ±0.76 / 120.86 ms │        117.92 / 119.92 ±1.05 / 120.85 ms │     no change │
│ QQuery 9  │        103.93 / 107.95 ±2.01 / 109.28 ms │        103.17 / 107.30 ±3.38 / 111.21 ms │     no change │
│ QQuery 10 │        108.02 / 109.44 ±0.84 / 110.54 ms │        108.87 / 110.98 ±1.65 / 113.96 ms │     no change │
│ QQuery 11 │    1004.59 / 1029.29 ±18.95 / 1056.38 ms │     959.64 / 1003.33 ±49.26 / 1067.00 ms │     no change │
│ QQuery 12 │           45.71 / 47.56 ±1.27 / 49.49 ms │           46.77 / 48.24 ±1.67 / 51.30 ms │     no change │
│ QQuery 13 │        416.52 / 419.39 ±2.57 / 423.74 ms │        406.43 / 418.03 ±6.23 / 423.72 ms │     no change │
│ QQuery 14 │     1021.44 / 1031.97 ±8.49 / 1043.68 ms │     1009.81 / 1014.01 ±5.60 / 1024.95 ms │     no change │
│ QQuery 15 │           15.53 / 16.23 ±0.87 / 17.95 ms │           16.62 / 18.44 ±1.27 / 19.99 ms │  1.14x slower │
│ QQuery 16 │              7.12 / 7.86 ±0.73 / 8.76 ms │              7.53 / 7.66 ±0.16 / 7.98 ms │     no change │
│ QQuery 17 │        227.75 / 231.70 ±2.92 / 236.81 ms │        227.62 / 233.44 ±4.49 / 239.85 ms │     no change │
│ QQuery 18 │        126.55 / 130.43 ±2.51 / 133.10 ms │        129.26 / 131.84 ±2.23 / 135.29 ms │     no change │
│ QQuery 19 │        164.42 / 165.89 ±1.23 / 167.39 ms │        156.63 / 158.82 ±1.34 / 160.44 ms │     no change │
│ QQuery 20 │           14.38 / 14.56 ±0.11 / 14.69 ms │           14.24 / 14.74 ±0.28 / 15.09 ms │     no change │
│ QQuery 21 │           20.26 / 20.89 ±0.70 / 22.21 ms │           19.31 / 20.43 ±0.83 / 21.88 ms │     no change │
│ QQuery 22 │        491.64 / 499.04 ±7.14 / 510.56 ms │        482.79 / 486.79 ±4.39 / 495.09 ms │     no change │
│ QQuery 23 │       864.06 / 894.22 ±16.34 / 909.61 ms │       897.53 / 924.19 ±21.89 / 947.21 ms │     no change │
│ QQuery 24 │        385.48 / 388.90 ±2.03 / 391.86 ms │        390.44 / 399.33 ±6.29 / 405.89 ms │     no change │
│ QQuery 25 │        342.36 / 346.47 ±4.30 / 352.58 ms │        351.19 / 354.99 ±2.12 / 357.49 ms │     no change │
│ QQuery 26 │           82.92 / 84.83 ±1.65 / 87.04 ms │           81.93 / 84.21 ±1.52 / 86.53 ms │     no change │
│ QQuery 27 │              7.13 / 7.91 ±0.88 / 9.53 ms │              7.03 / 7.75 ±0.62 / 8.60 ms │     no change │
│ QQuery 28 │        151.23 / 153.20 ±1.42 / 155.06 ms │        148.95 / 151.07 ±2.39 / 155.15 ms │     no change │
│ QQuery 29 │        288.81 / 291.18 ±1.24 / 292.42 ms │        280.46 / 284.73 ±3.99 / 291.28 ms │     no change │
│ QQuery 30 │           42.72 / 45.31 ±1.82 / 47.37 ms │           45.21 / 46.73 ±1.22 / 48.23 ms │     no change │
│ QQuery 31 │        171.21 / 176.84 ±3.43 / 181.32 ms │        177.01 / 180.27 ±2.36 / 183.52 ms │     no change │
│ QQuery 32 │           57.86 / 59.04 ±1.00 / 60.11 ms │         57.71 / 67.86 ±17.53 / 102.89 ms │  1.15x slower │
│ QQuery 33 │        144.17 / 147.56 ±2.43 / 150.32 ms │        144.66 / 146.16 ±1.29 / 147.74 ms │     no change │
│ QQuery 34 │              7.06 / 7.27 ±0.20 / 7.64 ms │              7.24 / 8.09 ±0.88 / 9.39 ms │  1.11x slower │
│ QQuery 35 │        110.15 / 113.08 ±1.47 / 113.98 ms │        110.05 / 112.58 ±1.53 / 114.66 ms │     no change │
│ QQuery 36 │              6.92 / 7.03 ±0.12 / 7.25 ms │              6.79 / 6.98 ±0.11 / 7.13 ms │     no change │
│ QQuery 37 │             8.56 / 9.76 ±0.91 / 11.11 ms │              8.49 / 9.05 ±0.41 / 9.49 ms │ +1.08x faster │
│ QQuery 38 │          88.03 / 92.10 ±4.31 / 100.38 ms │          88.97 / 92.52 ±4.46 / 101.03 ms │     no change │
│ QQuery 39 │        133.25 / 135.44 ±1.73 / 137.77 ms │        121.48 / 129.39 ±5.74 / 136.33 ms │     no change │
│ QQuery 40 │        113.82 / 119.10 ±7.54 / 133.92 ms │        110.06 / 116.00 ±7.61 / 130.98 ms │     no change │
│ QQuery 41 │           14.34 / 15.61 ±1.26 / 17.57 ms │           14.51 / 15.75 ±0.99 / 16.93 ms │     no change │
│ QQuery 42 │        112.01 / 112.72 ±0.41 / 113.15 ms │        111.03 / 112.19 ±0.80 / 113.44 ms │     no change │
│ QQuery 43 │              5.95 / 6.15 ±0.28 / 6.70 ms │              6.14 / 6.38 ±0.23 / 6.78 ms │     no change │
│ QQuery 44 │           11.83 / 12.27 ±0.60 / 13.47 ms │           12.19 / 12.72 ±0.51 / 13.62 ms │     no change │
│ QQuery 45 │           50.64 / 51.83 ±0.62 / 52.43 ms │           53.92 / 55.48 ±1.34 / 57.95 ms │  1.07x slower │
│ QQuery 46 │              8.31 / 8.56 ±0.19 / 8.88 ms │              9.26 / 9.55 ±0.17 / 9.74 ms │  1.12x slower │
│ QQuery 47 │       777.15 / 804.13 ±18.61 / 822.99 ms │        810.01 / 819.67 ±6.14 / 828.01 ms │     no change │
│ QQuery 48 │        291.43 / 293.89 ±2.02 / 295.94 ms │        299.21 / 304.72 ±4.48 / 311.50 ms │     no change │
│ QQuery 49 │        254.58 / 258.99 ±2.89 / 263.31 ms │        258.90 / 262.33 ±3.74 / 269.33 ms │     no change │
│ QQuery 50 │        226.77 / 234.55 ±8.96 / 251.63 ms │        228.71 / 241.65 ±8.08 / 253.64 ms │     no change │
│ QQuery 51 │        188.19 / 189.64 ±1.26 / 191.85 ms │        176.43 / 180.18 ±3.13 / 184.73 ms │     no change │
│ QQuery 52 │        112.22 / 114.77 ±1.97 / 117.69 ms │        109.43 / 110.95 ±1.22 / 112.74 ms │     no change │
│ QQuery 53 │        105.86 / 108.10 ±2.59 / 112.62 ms │        105.36 / 105.99 ±0.47 / 106.72 ms │     no change │
│ QQuery 54 │        147.65 / 150.17 ±2.82 / 155.52 ms │        149.64 / 150.94 ±0.84 / 152.27 ms │     no change │
│ QQuery 55 │        108.98 / 111.19 ±1.98 / 113.66 ms │        109.43 / 110.20 ±0.62 / 111.31 ms │     no change │
│ QQuery 56 │        142.56 / 145.70 ±2.30 / 149.23 ms │        140.62 / 144.76 ±2.50 / 148.10 ms │     no change │
│ QQuery 57 │        176.52 / 179.14 ±1.72 / 181.29 ms │        173.27 / 177.30 ±2.64 / 181.37 ms │     no change │
│ QQuery 58 │        293.54 / 300.07 ±6.79 / 309.17 ms │       289.99 / 302.80 ±12.44 / 323.94 ms │     no change │
│ QQuery 59 │        199.84 / 202.90 ±2.63 / 207.23 ms │        202.62 / 204.66 ±1.36 / 206.24 ms │     no change │
│ QQuery 60 │        145.20 / 148.00 ±1.89 / 150.37 ms │        142.59 / 146.24 ±2.97 / 151.66 ms │     no change │
│ QQuery 61 │           12.77 / 13.00 ±0.25 / 13.46 ms │           12.93 / 13.40 ±0.51 / 14.24 ms │     no change │
│ QQuery 62 │       897.56 / 921.32 ±14.98 / 938.14 ms │      910.94 / 954.43 ±33.47 / 1014.02 ms │     no change │
│ QQuery 63 │        105.85 / 108.32 ±2.43 / 112.41 ms │        104.41 / 107.10 ±1.90 / 109.93 ms │     no change │
│ QQuery 64 │        700.92 / 711.06 ±7.09 / 719.08 ms │       696.48 / 714.51 ±10.44 / 725.61 ms │     no change │
│ QQuery 65 │        259.01 / 268.16 ±5.93 / 275.28 ms │        253.90 / 257.28 ±2.18 / 260.54 ms │     no change │
│ QQuery 66 │       249.48 / 266.26 ±10.99 / 279.31 ms │       245.63 / 272.37 ±14.73 / 287.05 ms │     no change │
│ QQuery 67 │       313.44 / 332.59 ±10.98 / 345.15 ms │        323.40 / 330.13 ±5.72 / 338.75 ms │     no change │
│ QQuery 68 │            9.36 / 10.54 ±1.08 / 12.53 ms │            9.32 / 11.11 ±1.95 / 14.90 ms │  1.05x slower │
│ QQuery 69 │        103.21 / 105.63 ±1.64 / 108.13 ms │        106.07 / 107.02 ±0.92 / 108.46 ms │     no change │
│ QQuery 70 │       350.00 / 363.41 ±13.65 / 389.16 ms │       340.16 / 356.82 ±17.54 / 389.64 ms │     no change │
│ QQuery 71 │        141.67 / 144.69 ±1.75 / 146.38 ms │        134.62 / 138.65 ±3.54 / 144.28 ms │     no change │
│ QQuery 72 │        637.85 / 651.44 ±9.20 / 662.21 ms │       611.86 / 627.77 ±12.53 / 646.80 ms │     no change │
│ QQuery 73 │             7.54 / 9.60 ±1.58 / 11.67 ms │              6.65 / 7.51 ±0.69 / 8.39 ms │ +1.28x faster │
│ QQuery 74 │       628.77 / 657.96 ±22.58 / 681.49 ms │       595.40 / 614.01 ±17.38 / 641.08 ms │ +1.07x faster │
│ QQuery 75 │        282.11 / 283.20 ±0.82 / 284.25 ms │        275.74 / 282.49 ±3.95 / 287.32 ms │     no change │
│ QQuery 76 │        136.30 / 138.12 ±1.48 / 140.29 ms │        135.66 / 136.69 ±0.96 / 138.00 ms │     no change │
│ QQuery 77 │        191.38 / 194.86 ±2.54 / 198.92 ms │        191.55 / 192.84 ±1.45 / 195.07 ms │     no change │
│ QQuery 78 │        342.37 / 349.58 ±4.37 / 354.07 ms │        342.33 / 348.09 ±3.96 / 354.44 ms │     no change │
│ QQuery 79 │        235.68 / 239.87 ±4.70 / 249.03 ms │        250.73 / 252.31 ±1.06 / 254.04 ms │  1.05x slower │
│ QQuery 80 │        324.08 / 327.59 ±2.90 / 332.64 ms │        327.37 / 330.01 ±2.53 / 334.06 ms │     no change │
│ QQuery 81 │           26.24 / 27.42 ±0.93 / 28.52 ms │           26.09 / 27.14 ±0.65 / 28.09 ms │     no change │
│ QQuery 82 │        204.41 / 208.53 ±3.65 / 215.22 ms │        206.40 / 210.35 ±4.02 / 216.51 ms │     no change │
│ QQuery 83 │           39.08 / 40.31 ±1.29 / 42.75 ms │           40.91 / 42.61 ±1.34 / 44.01 ms │  1.06x slower │
│ QQuery 84 │           48.91 / 49.92 ±1.09 / 51.92 ms │           48.90 / 50.26 ±0.75 / 51.18 ms │     no change │
│ QQuery 85 │        148.07 / 151.07 ±2.25 / 154.47 ms │        154.60 / 156.76 ±1.54 / 159.31 ms │     no change │
│ QQuery 86 │           39.43 / 40.39 ±1.28 / 42.89 ms │           40.74 / 42.14 ±0.81 / 42.82 ms │     no change │
│ QQuery 87 │           87.95 / 91.26 ±2.84 / 95.62 ms │          91.87 / 95.31 ±3.34 / 101.50 ms │     no change │
│ QQuery 88 │        101.47 / 102.93 ±0.81 / 103.83 ms │        103.45 / 105.45 ±1.39 / 107.11 ms │     no change │
│ QQuery 89 │        120.35 / 122.48 ±2.12 / 126.04 ms │        121.82 / 124.74 ±1.75 / 126.87 ms │     no change │
│ QQuery 90 │           23.84 / 24.67 ±0.92 / 26.47 ms │           25.13 / 25.88 ±0.65 / 26.93 ms │     no change │
│ QQuery 91 │           61.96 / 63.65 ±1.02 / 64.67 ms │           66.28 / 67.70 ±0.96 / 68.66 ms │  1.06x slower │
│ QQuery 92 │           59.21 / 60.53 ±1.13 / 62.30 ms │           59.97 / 60.37 ±0.33 / 60.90 ms │     no change │
│ QQuery 93 │        193.36 / 194.97 ±1.85 / 198.11 ms │        206.09 / 209.08 ±2.65 / 213.92 ms │  1.07x slower │
│ QQuery 94 │           63.45 / 63.97 ±0.72 / 65.37 ms │           64.25 / 65.16 ±0.79 / 66.29 ms │     no change │
│ QQuery 95 │        130.90 / 131.83 ±1.05 / 133.52 ms │        137.88 / 139.19 ±0.85 / 140.29 ms │  1.06x slower │
│ QQuery 96 │           74.75 / 76.51 ±1.17 / 78.24 ms │           76.88 / 77.63 ±0.42 / 78.18 ms │     no change │
│ QQuery 97 │        130.75 / 133.82 ±2.30 / 137.46 ms │        128.54 / 132.99 ±2.66 / 135.90 ms │     no change │
│ QQuery 98 │        155.20 / 157.96 ±2.25 / 161.25 ms │        155.98 / 159.87 ±2.17 / 162.21 ms │     no change │
│ QQuery 99 │ 10812.01 / 10860.24 ±30.26 / 10899.73 ms │ 10843.05 / 10872.31 ±25.18 / 10906.98 ms │     no change │
└───────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                        ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                        │ 32264.06ms │
│ Total Time (repartition-local-buffers)   │ 32284.96ms │
│ Average Time (HEAD)                      │   325.90ms │
│ Average Time (repartition-local-buffers) │   326.11ms │
│ Queries Faster                           │          3 │
│ Queries Slower                           │         11 │
│ Queries with No Change                   │         85 │
│ Queries with Failure                     │          0 │
└──────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 161.7s
Peak memory 5.7 GiB
Avg memory 4.4 GiB
CPU user 266.9s
CPU sys 17.9s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 161.7s
Peak memory 5.2 GiB
Avg memory 4.3 GiB
CPU user 263.7s
CPU sys 17.4s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and repartition-local-buffers
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃             repartition-local-buffers ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.24 / 4.58 ±6.51 / 17.59 ms │          1.22 / 4.50 ±6.42 / 17.33 ms │    no change │
│ QQuery 1  │        14.59 / 15.43 ±0.51 / 16.14 ms │        14.58 / 14.94 ±0.19 / 15.11 ms │    no change │
│ QQuery 2  │        44.56 / 44.98 ±0.27 / 45.33 ms │        44.83 / 45.77 ±1.08 / 47.77 ms │    no change │
│ QQuery 3  │        40.52 / 41.49 ±1.19 / 43.79 ms │        40.06 / 41.10 ±0.89 / 42.67 ms │    no change │
│ QQuery 4  │     296.27 / 300.34 ±2.70 / 303.39 ms │     288.32 / 295.48 ±4.55 / 300.98 ms │    no change │
│ QQuery 5  │     349.97 / 356.52 ±4.84 / 363.82 ms │     350.46 / 360.58 ±7.58 / 369.48 ms │    no change │
│ QQuery 6  │           5.05 / 6.00 ±1.08 / 8.10 ms │           5.16 / 6.78 ±1.13 / 8.40 ms │ 1.13x slower │
│ QQuery 7  │        17.31 / 17.65 ±0.32 / 18.24 ms │        17.75 / 18.81 ±1.02 / 20.73 ms │ 1.07x slower │
│ QQuery 8  │     439.08 / 443.10 ±3.30 / 447.21 ms │     429.23 / 442.88 ±7.85 / 449.46 ms │    no change │
│ QQuery 9  │     681.98 / 685.11 ±4.23 / 693.48 ms │    659.42 / 688.39 ±18.79 / 717.77 ms │    no change │
│ QQuery 10 │       94.63 / 96.67 ±2.79 / 102.16 ms │       94.37 / 99.50 ±5.49 / 109.86 ms │    no change │
│ QQuery 11 │     105.79 / 109.97 ±2.80 / 113.86 ms │     108.40 / 111.46 ±2.87 / 115.26 ms │    no change │
│ QQuery 12 │     351.76 / 361.26 ±8.57 / 376.16 ms │    350.55 / 360.76 ±10.52 / 379.62 ms │    no change │
│ QQuery 13 │     474.93 / 478.11 ±1.80 / 479.97 ms │     476.59 / 486.51 ±8.08 / 497.81 ms │    no change │
│ QQuery 14 │     344.28 / 351.16 ±3.78 / 355.15 ms │     349.09 / 354.30 ±3.98 / 360.95 ms │    no change │
│ QQuery 15 │    361.56 / 377.33 ±12.04 / 396.27 ms │    359.97 / 385.76 ±14.84 / 401.63 ms │    no change │
│ QQuery 16 │     721.96 / 731.05 ±7.07 / 739.86 ms │    723.93 / 738.57 ±19.63 / 777.49 ms │    no change │
│ QQuery 17 │     719.36 / 725.06 ±5.01 / 731.90 ms │     725.96 / 731.66 ±4.35 / 738.99 ms │    no change │
│ QQuery 18 │ 1468.44 / 1510.21 ±46.67 / 1600.01 ms │ 1439.12 / 1527.79 ±57.17 / 1603.09 ms │    no change │
│ QQuery 19 │        35.95 / 38.30 ±2.72 / 42.89 ms │       37.33 / 45.03 ±13.96 / 72.91 ms │ 1.18x slower │
│ QQuery 20 │    720.03 / 737.18 ±18.88 / 760.74 ms │    723.13 / 742.16 ±19.95 / 776.75 ms │    no change │
│ QQuery 21 │     762.64 / 769.66 ±5.62 / 779.83 ms │    775.43 / 790.33 ±15.60 / 819.15 ms │    no change │
│ QQuery 22 │  1138.60 / 1143.87 ±5.29 / 1151.57 ms │  1151.93 / 1157.50 ±5.84 / 1167.64 ms │    no change │
│ QQuery 23 │  3124.67 / 3141.19 ±9.00 / 3151.39 ms │ 3157.05 / 3174.81 ±15.52 / 3194.38 ms │    no change │
│ QQuery 24 │     101.41 / 106.55 ±3.50 / 111.37 ms │     106.75 / 112.29 ±3.36 / 116.82 ms │ 1.05x slower │
│ QQuery 25 │     139.75 / 142.21 ±1.53 / 144.11 ms │     140.98 / 142.99 ±1.96 / 146.28 ms │    no change │
│ QQuery 26 │     101.89 / 103.70 ±1.54 / 105.92 ms │     104.36 / 106.93 ±1.92 / 109.07 ms │    no change │
│ QQuery 27 │     861.42 / 864.46 ±2.05 / 866.87 ms │     858.49 / 867.52 ±5.57 / 873.63 ms │    no change │
│ QQuery 28 │ 3240.13 / 3276.67 ±20.85 / 3304.10 ms │ 3276.58 / 3290.85 ±11.22 / 3309.26 ms │    no change │
│ QQuery 29 │        49.69 / 56.75 ±6.48 / 68.28 ms │        51.32 / 56.37 ±2.84 / 58.99 ms │    no change │
│ QQuery 30 │     362.28 / 378.87 ±9.93 / 387.21 ms │     365.09 / 373.19 ±6.80 / 382.23 ms │    no change │
│ QQuery 31 │    361.32 / 382.67 ±13.69 / 399.29 ms │    354.62 / 377.14 ±24.46 / 423.81 ms │    no change │
│ QQuery 32 │ 1212.45 / 1261.47 ±39.79 / 1333.25 ms │ 1222.86 / 1283.09 ±40.81 / 1325.01 ms │    no change │
│ QQuery 33 │ 1569.06 / 1600.85 ±26.23 / 1639.04 ms │ 1487.39 / 1564.94 ±43.49 / 1621.41 ms │    no change │
│ QQuery 34 │ 1524.14 / 1535.54 ±14.16 / 1563.33 ms │ 1509.99 / 1531.31 ±16.28 / 1556.46 ms │    no change │
│ QQuery 35 │    401.93 / 412.90 ±13.65 / 439.39 ms │    397.64 / 406.84 ±13.04 / 432.61 ms │    no change │
│ QQuery 36 │     119.73 / 123.17 ±3.83 / 130.42 ms │     117.17 / 123.79 ±4.38 / 129.63 ms │    no change │
│ QQuery 37 │        48.78 / 50.32 ±1.50 / 53.20 ms │        48.62 / 50.66 ±2.18 / 54.82 ms │    no change │
│ QQuery 38 │        75.61 / 77.65 ±1.36 / 79.35 ms │        76.06 / 78.16 ±1.99 / 81.32 ms │    no change │
│ QQuery 39 │     207.65 / 216.83 ±8.12 / 230.79 ms │     206.92 / 217.05 ±6.52 / 224.95 ms │    no change │
│ QQuery 40 │        22.94 / 26.28 ±2.20 / 29.32 ms │        25.01 / 27.79 ±2.09 / 30.48 ms │ 1.06x slower │
│ QQuery 41 │        20.93 / 21.95 ±0.86 / 23.39 ms │        20.85 / 22.24 ±1.44 / 24.93 ms │    no change │
│ QQuery 42 │        20.06 / 20.76 ±0.64 / 21.91 ms │        20.01 / 20.64 ±0.49 / 21.45 ms │    no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                        ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                        │ 23145.83ms │
│ Total Time (repartition-local-buffers)   │ 23279.15ms │
│ Average Time (HEAD)                      │   538.28ms │
│ Average Time (repartition-local-buffers) │   541.38ms │
│ Queries Faster                           │          0 │
│ Queries Slower                           │          5 │
│ Queries with No Change                   │         38 │
│ Queries with Failure                     │          0 │
└──────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 116.8s
Peak memory 33.8 GiB
Avg memory 25.9 GiB
CPU user 1090.1s
CPU sys 100.0s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 117.3s
Peak memory 35.2 GiB
Avg memory 24.8 GiB
CPU user 1087.5s
CPU sys 104.7s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan Dandandan closed this Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants