wForget commented on issue #11542: URL: https://github.com/apache/incubator-gluten/issues/11542#issuecomment-3850614212
> Could you also share the oom stack trace for using the sort shuffle writer? @marin-ma I tried dumping memory stats when the executor exits. And there's a jemalloc memory profiler dump at https://github.com/apache/incubator-gluten/issues/11542#issuecomment-3839165618. The VeloxSortShuffleWriter::getPeeledRowVector seems to be requesting a lot of memory. Does this mean I have a very large ColumnBatch? <img width="270" height="324" alt="Image" src="https://github.com/user-attachments/assets/09ebb7e0-d48d-4b06-a162-725b57494e8e" /> ``` 26/02/05 09:33:24 INFO VeloxListenerApi: MemoryDumpOnExit triggered, dumpTreeMemoryConsumers: --- TreeMemoryConsumer Stats --- Memory consumer stats: Task.11: Current used bytes: 0.0 B, peak bytes: N/A --- TreeMemoryConsumer Stats --- Memory consumer stats: Task.490: Current used bytes: 0.0 B, peak bytes: N/A --- TreeMemoryConsumer Stats --- Memory consumer stats: Task.345: Current used bytes: 0.0 B, peak bytes: N/A --- TreeMemoryConsumer Stats --- Memory consumer stats: Task.593: Current used bytes: 1569.4 MiB, peak bytes: N/A +- Gluten.Tree.3: Current used bytes: 1432.0 MiB, peak bytes: 1831.2 MiB | \- Capacity[8.0 EiB].3: Current used bytes: 1432.0 MiB, peak bytes: 1831.2 MiB | +- UniffleShuffleWriter.3: Current used bytes: 1304.0 MiB, peak bytes: 1304.0 MiB | | \- single: Current used bytes: 1304.0 MiB, peak bytes: 1304.0 MiB | | +- root: Current used bytes: 1304.0 MiB, peak bytes: 1304.0 MiB | | | \- default_leaf: Current used bytes: 1304.0 MiB, peak bytes: 1304.0 MiB | | \- gluten::MemoryAllocator: Current used bytes: 0.0 B, peak bytes: 0.0 B | | +- VeloxShuffleWriter.partitionBufferPool: Current used bytes: 0.0 B, peak bytes: 0.0 B | | +- default: Current used bytes: 0.0 B, peak bytes: 0.0 B | | \- PartitionWriter.cached_payload: Current used bytes: 0.0 B, peak bytes: 0.0 B | +- NativePlanEvaluator-3.0: Current used bytes: 112.0 MiB, peak bytes: 112.0 MiB | | \- single: Current used bytes: 112.0 MiB, peak bytes: 112.0 MiB | | +- root: Current used bytes: 0.0 B, peak bytes: 105.0 MiB | | | +- task.Gluten_Stage_8_TID_593_VTID_3: Current used bytes: 0.0 B, peak bytes: 105.0 MiB | | | | +- node.0: Current used bytes: 0.0 B, peak bytes: 0.0 B | | | | | \- op.0.0.0.ValueStream: Current used bytes: 0.0 B, peak bytes: 0.0 B | | | | +- node.1: Current used bytes: 0.0 B, peak bytes: 0.0 B | | | | | \- op.1.1.0.ValueStream: Current used bytes: 0.0 B, peak bytes: 0.0 B | | | | +- node.2: Current used bytes: 0.0 B, peak bytes: 104.0 MiB | | | | | +- op.2.1.0.HashBuild: Current used bytes: 0.0 B, peak bytes: 76.5 MiB | | | | | \- op.2.0.0.HashProbe: Current used bytes: 0.0 B, peak bytes: 5.1 MiB | | | | +- node.4: Current used bytes: 0.0 B, peak bytes: 1024.0 KiB | | | | | \- op.4.0.0.FilterProject: Current used bytes: 0.0 B, peak bytes: 64.0 KiB | | | | \- node.3: Current used bytes: 0.0 B, peak bytes: 0.0 B | | | | \- op.3.0.0.FilterProject: Current used bytes: 0.0 B, peak bytes: 0.0 B | | | \- default_leaf: Current used bytes: 0.0 B, peak bytes: 0.0 B | | \- gluten::MemoryAllocator: Current used bytes: 0.0 B, peak bytes: 0.0 B | | \- default: Current used bytes: 0.0 B, peak bytes: 0.0 B | +- ShuffleReader.0: Current used bytes: 8.0 MiB, peak bytes: 16.0 MiB | | \- single: Current used bytes: 8.0 MiB, peak bytes: 16.0 MiB | | +- gluten::MemoryAllocator: Current used bytes: 0.0 B, peak bytes: 1088.0 KiB | | | \- default: Current used bytes: 0.0 B, peak bytes: 1088.0 KiB | | \- root: Current used bytes: 0.0 B, peak bytes: 2.0 MiB | | \- default_leaf: Current used bytes: 0.0 B, peak bytes: 1632.7 KiB | +- ArrowContextInstance.3: Current used bytes: 8.0 MiB, peak bytes: 8.0 MiB | +- UniffleShuffleWriter.3.OverAcquire.0: Current used bytes: 0.0 B, peak bytes: 391.2 MiB | +- IteratorMetrics.3.OverAcquire.0: Current used bytes: 0.0 B, peak bytes: 0.0 B | +- IteratorMetrics.3: Current used bytes: 0.0 B, peak bytes: 0.0 B | | \- single: Current used bytes: 0.0 B, peak bytes: 0.0 B | | +- root: Current used bytes: 0.0 B, peak bytes: 0.0 B | | | \- default_leaf: Current used bytes: 0.0 B, peak bytes: 0.0 B | | \- gluten::MemoryAllocator: Current used bytes: 0.0 B, peak bytes: 0.0 B | | \- default: Current used bytes: 0.0 B, peak bytes: 0.0 B | +- ShuffleReader.0.OverAcquire.0: Current used bytes: 0.0 B, peak bytes: 4.8 MiB | \- NativePlanEvaluator-3.0.OverAcquire.0: Current used bytes: 0.0 B, peak bytes: 33.6 MiB \- org.apache.spark.shuffle.writer.WriteBufferManager@44fc2a33: Current used bytes: 137.4 MiB, peak bytes: N/A ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
