Skip to content

fix: serialize tasks within GPU pipelines - #11

Merged
aunjgr merged 1 commit into
matrixorigin:tae-scan-supportfrom
aunjgr:fix/serialize-pipeline-tasks-27599
Sep 7, 2026
Merged

aunjgr merged 1 commit into
matrixorigin:tae-scan-supportfrom
aunjgr:fix/serialize-pipeline-tasks-27599

Conversation

@aunjgr

@aunjgr aunjgr commented Sep 3, 2026 •

Copy link
Copy Markdown

Summary

  • restore the per-pipeline execution lock for every GPU pipeline, including PARTITION
  • keep gpu_stream > 1 useful by allowing independent pipelines to run concurrently
  • replace the stale same-PARTITION overlap test with the actual serialization regression

Root cause

The PARTITION exemption synchronized only its metadata. It allowed concurrent tasks to share the broader pipeline closure: cuDF partition execution, reservation-aware allocation, batch state transitions, and sink publication. SF10 Q4 through MatrixOne #27599's mo_scan path consequently hit cudaErrorIllegalAddress with gpu_stream=2.

Correctness validation

  • focused PARTITION serialization test: pass
  • independent-pipeline two-stream overlap test: pass
  • owning task_scheduler group: 4/4 pass
  • MatrixOne #27599 exact integrated image, GPU executor num_threads=2, explicit SIDECAR STREAM / GPU_MO_SCAN / mo_stream_scan:
    • TPC-H SF10 Q1-Q22: 22/22 golden pass, sum 889546 ms wall-clock
    • SF10 Q9 x10 in the same process generation: 10/10 golden pass, average 72023 ms wall-clock
    • no CUDA fatal, illegal-address, or sidecar restart in terminal logs

Performance status: not acceptable

This PR establishes correctness and failure containment; it does not make mo_scan performant.

  • SF10 tae_scan control: 12385 ms
  • SF10 mo_scan with this PR: 889546 ms
  • mo_scan is approximately 71.8x slower

The directly comparable pre/post-fix SF10 prefix shows the serialization change itself adds about 7.3 percent: Q1-Q4 were 103582 ms before this change versus 111143 ms after it. The pre-fix run then aborted in Q4, so there is no pre-fix 22-query SF10 total. The previously quoted approximately 83-second full mo_scan run was SF1, not SF10.

The remaining bottleneck is the batch-by-batch MO read, native marshal, Flight transfer, sidecar copy, and synchronous consumed acknowledgement path. Bounded pipelining is separate follow-up work; 22/22 here must not be interpreted as a performance acceptance.

@aunjgr
aunjgr merged commit 69454d4 into matrixorigin:tae-scan-support Sep 7, 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