Skip to content

[Bug]: [main tke regression] load parquet file executed about 2h. #24478

Closed

Activity

  1. added this to the MO-202605 milestone on May 20, 2026
  2. added
    kind/bug
    on May 20, 2026
  3. added theissue type on May 20, 2026
  4. Ariznawlll commented on May 20, 2026

    @Ariznawlll
    CollaboratorAuthor

    Investigation update for the nightly timeout on parquet_massive-part00.parq:

    What Loki shows:

    • The parquet file is being accessed with many small range reads, for example offsets like size=4096, size=48701, size=301332, etc.
    • But for each of those reads, the underlying fileservice path logs a full-file read:
    S3FS.Read FilePath:mo-big-data/parquet_massive-part00.parq Entries:[IOEntry(offset=..., size=4096/...)]
    ...
    io.ReadAll end 758279700
    
    • 758279700 bytes is about 758 MB, i.e. effectively the whole parquet file.
    • I counted 1809 occurrences of io.ReadAll end 758279700 during this time window, which is about 1.25 TiB of cumulative repeated full-file reads.
    • This pattern continues even after the Actions cancellation time; the service-side read loop is still active in logs around 22:04:58 UTC.

    What Pyroscope (memory:alloc_space) shows:

    • Peak alloc_space at 2026-05-19 21:31:17 UTC: 161837435491 bytes (150.72 GiB)
    • Another late peak at 2026-05-19 22:03:17 UTC: 149773020939 bytes (139.49 GiB)
    • The hottest allocation hotspot is io.ReadAll. Related heavy stacks include:
      • github.com/matrixorigin/matrixone/pkg/vm/engine/tae/tables.LoadPersistedColumnData
      • github.com/matrixorigin/matrixone/pkg/objectio/ioutil.LoadColumnsData2
      • github.com/matrixorigin/matrixone/pkg/vm/engine/tae/tables.HybridScanByBlock
      • github.com/matrixorigin/matrixone/pkg/vm/engine/tae/mergesort.mergeObjs

    What this does not look like:

    • I did not find panic, OOM, or fatal for this load window.
    • MemoryThrottler-Refresh shows RSS roughly in the 20-24 GiB range with available memory still around 10-18 GiB, so this does not look like a straightforward memory-exhaustion stall.

    Current conclusion:

    • The most likely direct cause is a read amplification bug/perf issue in the parquet/object read path: many small logical reads are being turned into repeated full-file io.ReadAll operations on the same 758 MB parquet file.
    • That also explains the very high alloc_space in Pyroscope and why the SQL makes almost no forward progress until the nightly timeout.

    If needed, I can also extract the exact Loki lines and peak timestamps into a smaller repro summary.

  5. ghost added a commit that references this issue on May 21, 2026
  6. Ariznawlll commented on May 25, 2026

    @Ariznawlll
    CollaboratorAuthor

    已恢复正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugphase/testingseverity/s-1

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions