Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/kleene

bench/distributed.md

kleene over machines: Ballista on oden + loki + dwarf

kleene's queries run as one Ballista job each (crate kleene-ballista, the fork nordisk/datafusion-ballista branch nordisk/kleene): the rounds are the fork's recursive loop, one stage per round, border nodes as Arrow batches through Ballista's Flight shuffle; each part's graph is built once on its executor and kept for every later job. The client holds only the central index (kleene_index::Central): it places the sources by the id ranges and wakes only the parts they can reach. The one-machine numbers are the same code with one part.

Two runs are here. K4 (15:0x-16:02Z) keeps each part's graph on its own machine and sends one row per border edge each round. Distributed v1.1 (17:06-17:18Z) keeps the whole graph on every machine for the R-MAT graphs and zox-M, cuts one search in slices and sends only each level's new vertices, hands many searches out whole, and loads every graph ahead of its queries; road2048 stays split by row blocks.

Machines

Machine CPU threads Memory Role Link
oden 32 499 GB scheduler, client, executor oden 2.5 GbE
loki 12 61 GB executor loki 2.5 GbE
dwarf 12 61 GB (executor capped at 16 GB) executor dwarf 2.5 GbE

Measured link (nc, 2 GB): oden to loki 2.33 Gbit/s, oden to dwarf 2.18, loki to dwarf 2.35. The P1 (the first plan's third machine) was taken down before these runs.

A quiet lock (~/lanes/kleene-quiet.lock) was held on the three machines during the runs (oden 15:0x-16:02Z and 17:06-17:18Z). oden's load average, from other sessions' jobs, stands beside each number; in K4 loki and dwarf were quiet, in v1.1 dwarf carried other sessions' load (15-36).

In short (K4: each part on its own machine)

The comparison with PuppyGraph's own several-node claim is on bench/puppygraph.md ("one machine beside several"). PuppyGraph's claim is ten hops in 2.26 s on four nodes, on a graph of their own; our ten hops over three machines took 121 ms (zox-M), 5.31 s (rmat22), 15.84 s (rmat24) and 116 ms (road2048), and 94 ms, 1.01 s, 4.12 s and 71 ms on one machine.

The split mode sends one entry per border node (JOB X and X2, 2026-11-29 20:03-20:30Z)

kleene-ballista at main 6e2d5f8 (Sends::combine, then Sends::to_compact: a part's sends are folded at the sender with the query's own add, one entry per node, one compact row per target part) against the binaries just before it (one Arrow row per border edge). Both runs: rmat24, id blocks, 3 parts on oden + loki + dwarf (part p on machine p % 3), executors restarted for the "after" run, 3 warm runs; job stats from the scheduler's job view of the last warm run. Normal load, from other sessions on oden: before 127.67 at the start, 38.36 at the end; after 25.72 and 86.28; loki 10.60 / 11.23, dwarf about 5.

Three columns per measure: before (one row per border edge), after JOB X (combined and compact, combine sorted on one thread) and after JOB X2 (main a680caa: the combine counted into node-range buckets and folded on the device's workers, the coding on the same workers; the "after X2" run 20:28-20:30Z, oden load 121.63 at the start, 144.07 at the end, loki 17.51, dwarf about 4).

query answer job: before / X / X2 bytes over the shuffle: before / X / X2 entries sent: before / X and X2 shuffle fetch: before / X / X2 kleene step (summed): before / X / X2
khop-10 5924758 19.60 / 9.69 / 2.34 s 6.12 GB / 29.4 MB / 29.4 MB 90340193 / 15369776 11.27 / 0.22 / 0.21 s 6.17 / 21.46 / 3.60 s
bfs 5924758 25.27 / 18.10 / 1.99 s 4.66 GB / 12.2 MB / 11.0 MB 87130704 / 8336769 8.09 / 0.10 / 0.09 s 4.75 / 21.77 / 2.11 s
wcc 9402277 58.88 / 37.33 / 3.56 s 17.21 GB / 21.9 MB / 20.2 MB 296550090 / 17942282 47.80 / 0.18 / 0.22 s 12.55 / 73.21 / 6.02 s

Warm runs (ms): before khop-10 23661, 20411, 19967; bfs 29410, 24550, 25644; wcc 93744, 52452, 59433. After X khop-10 9994, 10125, 10051; bfs 18255, 18159, 18457; wcc 66105, 40611, 37902. After X2 khop-10 3106, 2768, 2693; bfs 2626, 2416, 2328; wcc 28842 (the first wcc loads the whole split and its transpose), 4193, 4089.

sends always sort the bucket ratio 4 ratio 16 ratio 64 always dense one sort of all, one thread (before) coding, one thread coding, 32 threads
262500 7.8 ms 5.0 ms 5.0 ms 5.0 ms 4.4 ms 12.4 ms 10.0 ms 4.3 ms
1050000 17.7 ms 15.7 ms 16.5 ms 12.4 ms 12.5 ms 61.2 ms 16.9 ms 6.6 ms
4200000 58.3 ms 39.1 ms 42.4 ms 43.9 ms 41.3 ms 604.0 ms 40.2 ms 19.6 ms
16800000 203.3 ms 144.2 ms 153.9 ms 141.6 ms 141.1 ms 3880.8 ms 114.1 ms 76.5 ms
268800000 2613.6 ms 1756.4 ms 1914.4 ms 1851.0 ms 1852.6 ms 130903.3 ms 271.7 ms 196.1 ms

Ratio 4 is fastest or even everywhere. The coding stays: at 16.8M sends it makes 22.9 MB of 53.7 MB raw in 76 ms on the workers, while the 31 MB it saves take about 110 ms on the 2.2 Gbit/s link.

Distributed v1.1: the whole graph on every machine (run 17:06-17:18Z)

kleene main d52ccf1, the same fork and machines. Two modes, each where it fits:

Loads during the run: oden 120-245 (other sessions' work), loki 2.3-2.6, dwarf 15-36 (other sessions' work). Warm = the median of 5 runs (road2048: 3). Answers equal one machine's for every query.

zox-M

query answer whole, 3 machines (slices 32,12,12): warm whole, oden alone: warm 3 / 1 K4 id blocks, 3 machines: warm K4 one part: warm
khop-1 2 59 ms 12 ms 5.1x 34 ms 22 ms
khop-2 5 41 ms 11 ms 3.7x 39 ms 23 ms
khop-3 11 54 ms 12 ms 4.4x 57 ms 28 ms
khop-6 28 54 ms 11 ms 4.9x 83 ms 52 ms
khop-10 327 68 ms 12 ms 5.9x 121 ms 94 ms
bfs 26758 43 ms 14 ms 3.1x 483 ms 19 ms
wcc 2965 24 ms 9 ms 2.6x 122 ms 17 ms

Loading ahead on the three machines: 217 ms.

rmat22

query answer whole, 3 machines (slices 32,12,12): warm whole, oden alone: warm 3 / 1 K4 id blocks, 3 machines: warm K4 one part: warm
khop-1 1 28 ms 17 ms 1.7x 40 ms 24 ms
khop-2 2403 27 ms 13 ms 2.0x 44 ms 30 ms
khop-3 564006 156 ms 25 ms 6.2x 448 ms 244 ms
khop-6 1624246 241 ms 39 ms 6.2x 5.08 s 874 ms
khop-10 1624252 312 ms 40 ms 7.9x 5.31 s 1.01 s
bfs 1624252 322 ms 44 ms 7.2x 6.13 s 262 ms
wcc 2185779 62 ms 53 ms 1.2x 17.88 s 361 ms

Loading ahead on the three machines: 3.56 s.

rmat24

query answer whole, 3 machines (slices 32,12,12): warm whole, oden alone: warm 3 / 1 K4 id blocks, 3 machines: warm K4 one part: warm
khop-1 1 25 ms 15 ms 1.7x 69 ms 23 ms
khop-2 59 52 ms 19 ms 2.8x 42 ms 27 ms
khop-3 68907 37 ms 20 ms 1.9x 122 ms 74 ms
khop-6 5924351 479 ms 79 ms 6.1x 16.16 s 3.02 s
khop-10 5924758 496 ms 96 ms 5.2x 15.84 s 4.12 s
bfs 5924758 593 ms 86 ms 6.9x 21.66 s 1.89 s
wcc 9402277 193 ms 191 ms 1.0x 56.81 s 1.28 s

Loading ahead on the three machines: 13.44 s. The deep queries move 47-59 MB of Found per job (22 remote reads).

road2048 (row blocks, 3 machines, parts loaded ahead)

query answer v1.1: warm K4 id blocks: warm K4 one part: warm
khop-1 3 42 ms 35 ms 30 ms
khop-2 7 48 ms 44 ms 34 ms
khop-3 14 132 ms 56 ms 34 ms
khop-6 48 192 ms 58 ms 48 ms
khop-10 129 320 ms 116 ms 71 ms
bfs 3977927 855 ms 495 ms 561 ms
wcc 142085 244 ms 111 ms 97 ms
bfs, sweep in part order 3977927 1.07 s

Loading the parts ahead: 824 ms. oden load 165-210 (other sessions), about twice K4's.

Throughput: many searches at once

256 k-hop searches from spread sources (kleene-ballista throughput), handed out whole (Slices::portion, one task per machine, no exchange), best of 2-3 runs:

graph, hops one machine all machines, by cores all machines, by measured speed
rmat22, 3 oden 176.0 /s 32,12,12: 145.3 /s
rmat22, 6 oden 82.6 /s 32,12,12: 83.6 /s
rmat24, 3 oden 102.4 /s 32,12,12: 76.9 /s
rmat24, 6 oden 34.1-41.3 /s, loki 57.3 /s, dwarf 6.2 /s 32,12,12: 25.5 /s 24,32,4: 86.7 /s; 32,24,4: 75.2 /s

Here more machines win, but only with the work handed out by each machine's speed: 86.7 searches a second on three machines, 1.5x loki alone and 2.1-2.5x oden alone. By cores (32, 12, 12) the batch waits for dwarf, which was 9x slower than loki under other sessions' load, and three machines run slower than one. oden load 119-220 (other sessions), dwarf 15-26, loki 2.3-5.4.

What loses

K4: how it was run

Faults in the runs, and what the tables hold:

Wall time per query

Warm = the median of 5 runs after the first; first = the graph's first query, which loads and splits the graph on the executors. The client is on oden.

zox-M

query answer one part on oden: warm 3 machines, id blocks: warm 3 machines, hash: warm blocks / one oden load (one / blocks / hash) PuppyGraph's answer
khop-1 2 (same in all 3 splits) 22 ms 34 ms 30 ms 1.6x 87.23 / 90.10 / 87-140 equal
khop-2 5 (same in all 3 splits) 23 ms 39 ms 41 ms 1.7x 87.23 / 90.10 / 87-140 equal
khop-3 11 (same in all 3 splits) 28 ms 57 ms 43 ms 2.1x 87.23 / 90.10 / 87-140 equal
khop-6 28 (same in all 3 splits) 52 ms 83 ms 73 ms 1.6x 87.23 / 90.10 / 87-140 equal
khop-10 327 (same in all 3 splits) 94 ms 121 ms 117 ms 1.3x 87.23 / 90.10 / 87-140 equal
bfs 26758 (same in all 3 splits) 19 ms 483 ms 381 ms 25.9x 87.23 / 94.17 / 87-140 equal
wcc 2965 (same in all 3 splits) 17 ms 122 ms 137 ms 7.1x 87.23 / 94.17 / 87-140 equal

First query (khop-1, with the load and split): one part 39 ms, blocks 356 ms, hash 38 ms.

rmat22

query answer one part on oden: warm 3 machines, id blocks: warm 3 machines, hash: warm blocks / one oden load (one / blocks / hash) PuppyGraph's answer
khop-1 1 (same in all 3 splits) 24 ms 40 ms 31 ms 1.7x 100.99 / 97.76 / 87-140 equal
khop-2 2403 (same in all 3 splits) 30 ms 44 ms 57 ms 1.5x 100.99 / 97.76 / 87-140 equal
khop-3 564006 (same in all 3 splits) 244 ms 448 ms 442 ms 1.8x 101.23 / 97.76 / 87-140 equal
khop-6 1624246 (same in all 3 splits) 874 ms 5.08 s 4.48 s 5.8x 101.61 / 112.97 / 87-140 equal
khop-10 1624252 (same in all 3 splits) 1.01 s 5.31 s 4.25 s 5.3x 106.13 / 102.40 / 87-140 equal
bfs 1624252 (same in all 3 splits) 262 ms 6.13 s 5.00 s 23.4x 106.13 / 96.03 / 87-140 equal
wcc 2185779 (same in all 3 splits) 361 ms 17.88 s 13.93 s 49.5x 110.60 / 137.59 / 87-140 theirs 2185230

First query (khop-1, with the load and split): one part 2.65 s, blocks 160 ms, hash 3.72 s.

rmat24

query answer one part on oden: warm 3 machines, id blocks: warm 3 machines, hash: warm blocks / one oden load (one / blocks / hash) PuppyGraph's answer
khop-1 1 (same in all 3 splits) 23 ms 69 ms 35 ms 3.0x 126.45 / 138.27 / 87-140 equal
khop-2 59 (same in all 3 splits) 27 ms 42 ms 48 ms 1.6x 126.45 / 138.27 / 87-140 equal
khop-3 68907 (same in all 3 splits) 74 ms 122 ms 75 ms 1.6x 126.45 / 142.33 / 87-140 equal
khop-6 5924351 (same in all 3 splits) 3.02 s 16.16 s 15.28 s 5.4x 140.10 / 109.92 / 87-140 equal
khop-10 5924758 (same in all 3 splits) 4.12 s 15.84 s 17.38 s 3.8x 193.43 / 92.91 / 87-140 -
bfs 5924758 (same in all 3 splits) 1.89 s 21.66 s 23.63 s 11.4x 219.50 / 172.40 / 87-140 -
wcc 9402277 (same in all 3 splits) 1.28 s 56.81 s 61.24 s 44.5x 194.53 / 98.81 / 87-140 theirs 9391829

First query (khop-1, with the load and split): one part 12.07 s, blocks 12.80 s, hash 16.81 s.

road2048

query answer one part on oden: warm 3 machines, id blocks: warm 3 machines, hash: warm blocks / one oden load (one / blocks / hash) PuppyGraph's answer
khop-1 3 (same in all 3 splits) 30 ms 35 ms 50 ms 1.2x 194.53 / 98.81 / 87-140 equal
khop-2 7 (same in all 3 splits) 34 ms 44 ms 42 ms 1.3x 194.53 / 98.81 / 87-140 equal
khop-3 14 (same in all 3 splits) 34 ms 56 ms 65 ms 1.6x 194.53 / 98.81 / 87-140 equal
khop-6 48 (same in all 3 splits) 48 ms 58 ms 70 ms 1.2x 194.53 / 98.81 / 87-140 equal
khop-10 129 (same in all 3 splits) 71 ms 116 ms 110 ms 1.6x 194.53 / 98.81 / 87-140 equal
bfs 3977927 (same in all 2 splits) 561 ms 495 ms 446.6 s, one run (3923 rounds) 0.9x 191.21 / 100.59 / 87-140 -
wcc 142085 (same in all 2 splits) 97 ms 111 ms not run 1.1x 191.21 / 100.59 / 87-140 -

First query (khop-1, with the load and split): one part 477 ms, blocks 899 ms, hash 1.18 s.

Where the time goes (warm, the last of the 5 runs, from the scheduler's job view)

Rounds = stages of the loop; tasks = all tasks of the job; step = the kleene operator's own compute summed over tasks; fetch = the shuffle readers' fetch time summed over tasks; longest tasks = the longest task of each stage, summed (the path the job waits on); between stages = job time not covered by a running stage (planning and scheduling).

one part on oden

graph query parts woken job rounds tasks longest tasks step fetch between stages bytes over the shuffle remote reads nodes sent
zox-M khop-1 1 of 1 21 ms 2 7 10 ms 0 ms 0 ms 5 ms 0 B 0 2
zox-M khop-2 1 of 1 24 ms 3 9 10 ms 0 ms 0 ms 6 ms 0 B 0 5
zox-M khop-3 1 of 1 36 ms 4 11 6 ms 0 ms 0 ms 10 ms 0 B 0 11
zox-M khop-6 1 of 1 48 ms 7 17 11 ms 0 ms 0 ms 14 ms 0 B 0 28
zox-M khop-10 1 of 1 122 ms 11 25 28 ms 0 ms 0 ms 18 ms 0 B 0 327
zox-M bfs 1 of 1 12 ms 1 4 5 ms 2 ms 0 ms 1 ms 0 B 0 0
zox-M wcc 1 of 1 11 ms 1 4 5 ms 1 ms 0 ms 1 ms 0 B 0 0
rmat22 khop-1 1 of 1 21 ms 2 7 4 ms 0 ms 0 ms 1 ms 0 B 0 1
rmat22 khop-2 1 of 1 26 ms 3 9 9 ms 0 ms 0 ms 7 ms 0 B 0 2403
rmat22 khop-3 1 of 1 198 ms 4 11 179 ms 34 ms 0 ms 5 ms 0 B 0 564006
rmat22 khop-6 1 of 1 881 ms 7 17 843 ms 350 ms 0 ms 8 ms 0 B 0 1624246
rmat22 khop-10 1 of 1 917 ms 8 19 833 ms 301 ms 0 ms 10 ms 0 B 0 1624252
rmat22 bfs 1 of 1 159 ms 1 4 153 ms 41 ms 0 ms 2 ms 0 B 0 0
rmat22 wcc 1 of 1 216 ms 1 4 209 ms 95 ms 0 ms 3 ms 0 B 0 0
rmat24 khop-1 1 of 1 18 ms 2 7 9 ms 1 ms 0 ms 2 ms 0 B 0 1
rmat24 khop-2 1 of 1 28 ms 3 9 12 ms 1 ms 0 ms 2 ms 0 B 0 59
rmat24 khop-3 1 of 1 66 ms 4 11 40 ms 9 ms 0 ms 3 ms 0 B 0 68907
rmat24 khop-6 1 of 1 2.82 s 7 17 2.78 s 1.18 s 0 ms 7 ms 0 B 0 5924351
rmat24 khop-10 1 of 1 4.93 s 9 21 4.82 s 1.30 s 0 ms 77 ms 0 B 0 5924758
rmat24 bfs 1 of 1 940 ms 1 4 932 ms 151 ms 0 ms 0 ms 0 B 0 0
rmat24 wcc 1 of 1 705 ms 1 4 696 ms 204 ms 0 ms 3 ms 0 B 0 0
road2048 khop-1 1 of 1 25 ms 2 7 9 ms 0 ms 0 ms 1 ms 0 B 0 3
road2048 khop-2 1 of 1 20 ms 3 9 8 ms 0 ms 0 ms 6 ms 0 B 0 7
road2048 khop-3 1 of 1 30 ms 4 11 11 ms 0 ms 0 ms 7 ms 0 B 0 14
road2048 khop-6 1 of 1 41 ms 7 17 12 ms 0 ms 0 ms 12 ms 0 B 0 48
road2048 khop-10 1 of 1 69 ms 11 25 16 ms 0 ms 0 ms 14 ms 0 B 0 129
road2048 bfs 1 of 1 344 ms 1 4 337 ms 158 ms 0 ms 3 ms 0 B 0 0
road2048 wcc 1 of 1 109 ms 1 4 104 ms 83 ms 0 ms 4 ms 0 B 0 0

id blocks, 3 machines

graph query parts woken job rounds tasks longest tasks step fetch between stages bytes over the shuffle remote reads nodes sent
zox-M khop-1 3 of 3 19 ms 2 13 7 ms 0 ms 2 ms 4 ms 11.9 kB 4 2
zox-M khop-2 3 of 3 98 ms 3 17 80 ms 0 ms 9 ms 3 ms 31.8 kB 10 5
zox-M khop-3 3 of 3 39 ms 4 21 13 ms 0 ms 10 ms 1 ms 67.0 kB 16 11
zox-M khop-6 3 of 3 89 ms 7 33 31 ms 0 ms 26 ms 11 ms 165.8 kB 34 31
zox-M khop-10 3 of 3 109 ms 11 49 52 ms 0 ms 46 ms 18 ms 293.5 kB 58 400
zox-M bfs 3 of 3 451 ms 38 162 197 ms 12 ms 243 ms 103 ms 2.2 MB 220 39292
zox-M wcc 3 of 3 116 ms 8 37 73 ms 8 ms 69 ms 12 ms 7.3 MB 42 143496
rmat22 khop-1 3 of 3 36 ms 2 13 23 ms 1 ms 4 ms 3 ms 15.9 kB 5 1
rmat22 khop-2 3 of 3 37 ms 3 17 19 ms 0 ms 6 ms 5 ms 177.1 kB 11 2403
rmat22 khop-3 3 of 3 389 ms 4 21 361 ms 86 ms 182 ms 5 ms 88.5 MB 17 1827924
rmat22 khop-6 3 of 3 6.49 s 7 33 6.43 s 1.56 s 2.68 s 7 ms 1.1 GB 35 22497337
rmat22 khop-10 3 of 3 4.93 s 9 41 4.87 s 1.25 s 3.08 s 17 ms 1.1 GB 46 22497638
rmat22 bfs 3 of 3 5.55 s 8 37 5.49 s 1.05 s 2.15 s 13 ms 1.0 GB 39 21629147
rmat22 wcc 3 of 3 19.15 s 6 29 19.11 s 3.16 s 14.04 s 8 ms 4.2 GB 32 73738183
rmat24 khop-1 3 of 3 21 ms 2 13 8 ms 1 ms 3 ms 3 ms 15.9 kB 5 1
rmat24 khop-2 3 of 3 30 ms 3 17 14 ms 2 ms 5 ms 0 ms 31.0 kB 11 59
rmat24 khop-3 3 of 3 133 ms 4 21 98 ms 6 ms 71 ms 3 ms 3.4 MB 17 80005
rmat24 khop-6 3 of 3 16.48 s 7 33 16.44 s 4.89 s 11.21 s 10 ms 6.1 GB 35 90318918
rmat24 khop-10 3 of 3 16.47 s 10 45 16.36 s 5.05 s 11.03 s 48 ms 6.1 GB 52 90340193
rmat24 bfs 3 of 3 23.15 s 8 37 23.09 s 4.16 s 9.62 s 6 ms 4.7 GB 39 87130704
rmat24 wcc 3 of 3 53.31 s 6 29 53.27 s 12.76 s 39.89 s 12 ms 17.2 GB 32 296550090
road2048 khop-1 3 of 3 27 ms 2 13 11 ms 0 ms 4 ms 2 ms 11.9 kB 4 3
road2048 khop-2 3 of 3 34 ms 3 17 14 ms 0 ms 7 ms 4 ms 23.8 kB 8 7
road2048 khop-3 3 of 3 134 ms 4 21 112 ms 0 ms 9 ms 5 ms 35.7 kB 12 14
road2048 khop-6 3 of 3 60 ms 7 33 28 ms 0 ms 12 ms 11 ms 71.4 kB 24 48
road2048 khop-10 3 of 3 167 ms 11 49 61 ms 1 ms 28 ms 13 ms 119.0 kB 40 129
road2048 bfs 3 of 3 281 ms 6 29 244 ms 191 ms 24 ms 7 ms 309.3 kB 25 4970
road2048 wcc 3 of 3 83 ms 6 29 58 ms 45 ms 34 ms 9 ms 1.2 MB 31 20670

hash, 3 machines

graph query parts woken job rounds tasks longest tasks step fetch between stages bytes over the shuffle remote reads nodes sent
zox-M khop-1 3 of 3 20 ms 2 13 9 ms 0 ms 4 ms 2 ms 15.9 kB 5 2
zox-M khop-2 3 of 3 33 ms 3 17 18 ms 0 ms 6 ms 6 ms 33.9 kB 10 5
zox-M khop-3 3 of 3 38 ms 4 21 20 ms 0 ms 14 ms 7 ms 67.0 kB 16 11
zox-M khop-6 3 of 3 63 ms 7 33 24 ms 0 ms 20 ms 11 ms 157.4 kB 34 30
zox-M khop-10 3 of 3 98 ms 11 49 42 ms 0 ms 48 ms 9 ms 291.8 kB 58 402
zox-M bfs 3 of 3 399 ms 32 138 179 ms 11 ms 212 ms 78 ms 2.1 MB 185 39220
zox-M wcc 3 of 3 133 ms 9 41 80 ms 8 ms 83 ms 9 ms 7.6 MB 49 150638
rmat22 khop-1 3 of 3 23 ms 2 13 10 ms 0 ms 5 ms 4 ms 22.0 kB 6 1
rmat22 khop-2 3 of 3 42 ms 3 17 25 ms 0 ms 12 ms 4 ms 183.7 kB 12 2401
rmat22 khop-3 3 of 3 854 ms 4 21 827 ms 93 ms 407 ms 4 ms 90.5 MB 18 1822401
rmat22 khop-6 3 of 3 4.16 s 7 33 4.11 s 1.18 s 2.41 s 13 ms 1.1 GB 36 22491601
rmat22 khop-10 3 of 3 4.31 s 9 41 4.24 s 1.18 s 2.69 s 12 ms 1.1 GB 46 22491907
rmat22 bfs 3 of 3 4.92 s 7 33 4.87 s 958 ms 1.50 s 10 ms 1.0 GB 35 21622024
rmat22 wcc 3 of 3 13.25 s 6 29 13.21 s 2.92 s 9.94 s 10 ms 4.2 GB 32 74240206
rmat24 khop-1 3 of 3 31 ms 2 13 17 ms 1 ms 6 ms 4 ms 22.0 kB 6 1
rmat24 khop-2 3 of 3 31 ms 3 17 15 ms 1 ms 9 ms 5 ms 37.1 kB 12 59
rmat24 khop-3 3 of 3 154 ms 4 21 125 ms 6 ms 32 ms 6 ms 4.4 MB 18 80019
rmat24 khop-6 3 of 3 14.82 s 7 33 14.78 s 4.85 s 10.95 s 12 ms 6.1 GB 36 90320019
rmat24 khop-10 3 of 3 14.79 s 10 45 14.72 s 5.07 s 9.25 s 17 ms 6.1 GB 52 90341264
rmat24 bfs 3 of 3 20.25 s 7 33 20.21 s 4.24 s 6.66 s 8 ms 4.7 GB 35 87127786
rmat24 wcc 3 of 3 60.76 s 6 29 60.72 s 12.72 s 57.82 s 9 ms 17.3 GB 32 298177456
road2048 khop-1 3 of 3 78 ms 2 13 63 ms 0 ms 5 ms 3 ms 26.0 kB 7 3
road2048 khop-2 3 of 3 34 ms 3 17 16 ms 0 ms 9 ms 0 ms 90.9 kB 13 11
road2048 khop-3 3 of 3 149 ms 4 21 119 ms 0 ms 10 ms 6 ms 152.4 kB 19 24
road2048 khop-6 3 of 3 72 ms 7 33 37 ms 0 ms 41 ms 13 ms 301.5 kB 37 89
road2048 khop-10 3 of 3 122 ms 11 49 62 ms 1 ms 77 ms 13 ms 518.5 kB 61 251

Baseline: plain SQL WITH RECURSIVE over the same machines

The fork's recursive loop with no kleene operator: Ballista's own joins, SET ballista.planner.adaptive.enabled = true, reach from one source over Parquet edges (src, dst), WITH RECURSIVE reach(node) AS (SELECT s UNION SELECT e.dst FROM reach r JOIN edges e ON e.src = r.node) SELECT count(*), sum(node) FROM reach. Run 11:49Z, before the P1 was taken down, so its three machines are oden (32 vcores), loki (12) and the P1 (8, on Wi-Fi); one machine is ballista-cli standalone on oden. oden load average 94-107.

graph where reached rounds wall (3 runs)
rmat22 3 machines 1624253 9 2.01, 2.00, 2.14 s
rmat22 one machine (oden) 1624253 9 4.09, 4.66, 3.99 s
rmat24 3 machines 5924760 9 6.92, 8.26, 6.31 s
rmat24 one machine (oden) 5924760 9 8.09, 8.06, 8.16 s

Reached counts the source too; the source is the graph's first entry (rmat22 925298, rmat24 12460148), not the plan's, but both reach the same giant component. Each round rescans all edges (rmat24: 132.7 million rows a round). Against it, kleene's bfs takes 262 ms (rmat22) and 1.89 s (rmat24) on one part, and 6.13 s and 21.66 s over three machines by id blocks: the kleene operator is 4-16x faster than SQL on one machine, and its split run is about 3x slower than SQL's split run (whose third machine was the P1, not dwarf). SQL spreads each round's join over all machines' cores and sends only the new frontier (deduplicated by UNION); kleene sends one row per border edge.

The redo: one machine, four machines, one big machine, in cores (2026-11-29 21:20-22:01Z)

Three rows, the same graphs, the same queries, every answer checked equal:

How the core limit was set: each executor runs under taskset on its first 6 cores (dwarf: its 6 physical cores 0,2,4,6,8,10; row C: cores 0-23) and is started with -c 6 (-c 24 in row C); the engine's worker count follows the affinity. These are cores, not threads. The scheduler and the client run on oden's cores 24-31, outside rows A and B's cores; in row C they share oden with the executor.

Whole mode: every machine holds the whole graph, one search is cut in slices weighted by each machine's measured speed at 6 cores (rmat24 36,51,35,45; rmat26 7,12,7,9; rmat28 19,33,20,26, in the order oden, loki, dwarf, P1). Warm, median of 3 (ms); searches/s = 256 six-hop searches from random starts, best of the runs:

graph row ten hops full search components searches/s
rmat24 A 399 223 402 31.8
rmat24 B 139 136 213 118.8
rmat24 C 56 55 87 67.2
rmat26 A 824 653 1256 7.4
rmat26 B 880 869 896 35.6
rmat26 C 634 227 440 16.6
rmat28 A 2616 2542 3846 1.7
rmat28 B 2497 2438 3646 7.6
rmat28 C 867 861 1322 4.3

rmat28 (268435456 vertices, 2.1 billion edges) fit on all four: dwarf peaked at 25.1 GB under its 36 GB cap, the P1 used 19 of its 62 GB; preload 179 s.

One long batch on B: rmat26, 4272 six-hop searches from 21:24:49Z, 163.5 s = 26.1 searches/s (the short runs gave 35.6). Busy cores over those 163 s (vmstat): oden 15 % of 32, loki 48 %, dwarf 33 %, P1 73 %.

Split mode on B (each machine holds one part, 6 cores each), warm ms, one run; one part on one machine (A, C) beside it:

graph split ten hops full search components
zox-M hash:4 65 310 67
zox-M computed:4 63 113 45
zox-M one part, A / C 823 / 43 386 / 13 417 / 16
road2048 hash:4 74 over 300 s, stopped not reached
road2048 computed:4 1962 95572 130383
road2048 one part, A / C 1053 / 41 957 / 656 1082 / 879
rmat24 hash:4 3940 3040 43344
rmat24 computed:4 4420 3780 40818
rmat24 one part, A / C 4006 / 2209 1226 / 796 21677 / 21261

The computed split (made once by kleene split-report --save) beats hash on zox-M and makes road2048's full search and components finish over machines; on rmat24 (61 % of edges cross even in the computed split) it gains nothing.

Answers, equal in every row and mode: rmat24 5924758 / 5924758 / 9402277, rmat26 21634047 / 21634047 / 40020188, rmat28 79046257 / 79046257 / 168997590, zox-M 327 / 26758 / 2965, road2048 129 / 3977927 / 142085.

Load beside the rows (load average, 30 s samples; our own runs included): oden 1.2-3.0 when idle between rows, up to 21.5 in row C; loki 2.2-2.9 idle (other sessions), up to 6.8; dwarf 0.3-1.4 idle, up to 4.9; P1 0.0-0.7 idle, up to 5.0.

JOB Y: a round with computed:K costs what one with hash:K costs (2026-11-29 22:24-22:27Z)

oden + loki + dwarf, 6 cores each (taskset plus -c 6), 4 parts placed p % 3, normal load (oden 28-42, loki 7.5-8.7, dwarf 0.8-3.8, other sessions). Before: main at 02112db; after: cf0941e (the executor reads the computed split's saved list once and keeps each part's handle; the weak components load their part and their part of the transpose alone instead of the whole split and its transpose on every executor). Warm ms:

query hash:4 before computed:4 before hash:4 after computed:4 after
road2048 ten hops (11 rounds) 112, 88 392 109, 114 93
road2048 full search (322 rounds) - 22173 - 12946
road2048 components - 23884 - not run
rmat24 components, first / second 44009 / 4593 44242 / 3558 not run not run

Before, road2048 ten hops with computed:4: job 383 ms, longest tasks 330 ms against a core step of 2.3 ms (every round task read the saved list). The rmat24 components' first run (44 s, one task) was the whole split and its transpose built on each executor; the second run was 3.6-4.6 s. The run was stopped at 22:27Z (oden off for the night): the after rows for road2048 components and rmat24 wait for oden.

Second try, rough (2026-11-29 23:56Z-2026-11-30 00:05Z): loki + dwarf + P1, 6 cores each, scheduler and client on loki; loki at load 37-44 from other sessions, the P1 on wifi. Only the first load step finished (zox-M parts loaded, central index 7298 ms) before the run was stopped; no query row finished. The after rows above still wait.

Not run here