Skip to content

perf(mo-scan): batch streamed input in bounded pooled host buffers - #12

Merged
aunjgr merged 2 commits into
matrixorigin:tae-scan-supportfrom
aunjgr:fix/mo-scan-bounded-batching-v7
Sep 29, 2026
Merged

aunjgr merged 2 commits into
matrixorigin:tae-scan-supportfrom
aunjgr:fix/mo-scan-bounded-batching-v7

Conversation

@aunjgr

@aunjgr aunjgr commented Sep 7, 2026 •

Copy link
Copy Markdown

MO streamed scans were creating small GPU tasks and repeatedly registering fresh host buffers with CUDA. This batches up to 128 MO frames into one source representation bounded to 64 MiB of expanded data, using the existing cuCascade host pool.

Each frame is acknowledged after Sirius owns its copy. The source remains demand-driven, and buffer blocks retain their reservation through transfer or terminal cleanup. The converter supports writes/transfers across pool blocks, arbitrary frame row boundaries, short/padded MO null bitmaps, and stale descriptors in NULL string slots.

The upstream pipeline-serialization fix from #11 is merged into this branch and is not part of this PR's diff. Independent pipelines continue to use two GPU workers.

Validation

  • Sirius source/Substrait tests: 314 assertions in 23 cases; CUDA memcheck reports 0 errors.
  • Real MO nullable persisted/tail/tombstone query matches native output.
  • Integrated SF10: all 22 queries pass with gpu_stream=2, 34.158730s total; direct TAE control 15.501565s. Q9: 3.255576s versus 0.798354s.
  • These are single-run measurements on the validated code before the later MatrixOne main merge. The design's 2x performance acceptance target remains unmet; this PR does not claim performance parity.
  • Builds, runs, and GPU tests used the host Pixi toolchain.

Dependencies

Part of matrixorigin/matrixone#27599. The sidecar consumer is matrixorigin/mo-sirius-sidecar#20 and uses the updated source-result API and matching capability document. Merge this PR first, then update sidecar #20's submodule pin to the upstream merged commit.

Full timing table and profiling evidence.

Reuse the existing host pool for bounded source batches and retain buffer reservations through GPU transfer. Handle MO bitmap coverage and NULL string descriptors safely, and serialize tasks within each physical pipeline while preserving independent pipeline overlap.
…/mo-scan-bounded-batching-v7

# Conflicts:
#	test/cpp/pipeline/test_task_scheduler.cpp
@aunjgr
aunjgr merged commit b05d12d into matrixorigin:tae-scan-support Sep 29, 2026
8 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant