wForget opened a new issue, #9938:
URL: https://github.com/apache/incubator-gluten/issues/9938

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   ```
   W20250611 12:45:58.783689 2767575 Operator.cpp:653] Can't reclaim from 
memory pool op.7.0.0.OrderBy which is under non-reclaimable section, memory 
usage: 1.91GB, reservation: 1.91GB
   W20250611 12:45:58.783730 2767575 HashAggregation.cpp:408] Can't reclaim 
from aggregation operator which has spilled and is under output processing, 
pool op.1.0.0.Aggregation, memory usage: 32.19MB, reservation: 36.00MB
   W20250611 12:45:58.783774 2767575 Operator.cpp:653] Can't reclaim from 
memory pool op.7.0.0.OrderBy which is under non-reclaimable section, memory 
usage: 1.91GB, reservation: 1.91GB
   W20250611 12:45:58.783792 2767575 HashAggregation.cpp:408] Can't reclaim 
from aggregation operator which has spilled and is under output processing, 
pool op.1.0.0.Aggregation, memory usage: 32.19MB, reservation: 36.00MB
   25/06/11 12:45:58 INFO TaskMemoryManager: Memory used in task 9379
   25/06/11 12:45:58 INFO TaskMemoryManager: Acquired by 
org.apache.gluten.memory.memtarget.spark.TreeMemoryConsumer@4cf4adc5: 2043.0 MiB
   25/06/11 12:45:58 INFO TaskMemoryManager: 0 bytes of memory were used by 
task 9379 but are not associated with specific consumers
   25/06/11 12:45:58 INFO TaskMemoryManager: 2142240768 bytes of memory are 
used for execution and 4753709 bytes of memory are used for storage
   25/06/11 12:45:58 WARN ManagedReservationListener: Error reserving memory 
from target
   
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget$OutOfMemoryException: 
Not enough spark off-heap execution memory. Acquired: 8.0 MiB, granted: 5.0 
MiB. Try tweaking config option spark.memory.offHeap.size to get larger space 
to run this application (if spark.gluten.memory.dynamic.offHeap.sizing.enabled 
is not enabled). 
   Current config settings: 
        spark.gluten.memory.offHeap.size.in.bytes=2.0 GiB
        spark.gluten.memory.task.offHeap.size.in.bytes=2.0 GiB
        spark.gluten.memory.conservative.task.offHeap.size.in.bytes=1024.0 MiB
        spark.memory.offHeap.enabled=true
        spark.gluten.memory.dynamic.offHeap.sizing.enabled=false
   Memory consumer stats: 
        Task.9379:                                              Current used 
bytes: 2043.0 MiB, peak bytes:        N/A
        \- Gluten.Tree.77:                                      Current used 
bytes: 2043.0 MiB, peak bytes:    2.0 GiB
           \- root.77:                                          Current used 
bytes: 2043.0 MiB, peak bytes:    2.0 GiB
              +- WholeStageIterator.77:                         Current used 
bytes: 2026.0 MiB, peak bytes: 2031.0 MiB
              |  \- single:                                     Current used 
bytes: 2026.0 MiB, peak bytes: 2026.0 MiB
              |     +- root:                                    Current used 
bytes: 2001.0 MiB, peak bytes: 2026.0 MiB
              |     |  +- task.Gluten_Stage_6_TID_9379_VTID_77: Current used 
bytes: 2001.0 MiB, peak bytes: 2026.0 MiB
              |     |  |  +- node.7:                            Current used 
bytes: 1951.9 MiB, peak bytes: 1952.0 MiB
              |     |  |  |  \- op.7.0.0.OrderBy:               Current used 
bytes: 1951.9 MiB, peak bytes: 1951.9 MiB
              |     |  |  +- node.1:                            Current used 
bytes:   32.2 MiB, peak bytes:  128.0 MiB
              |     |  |  |  \- op.1.0.0.Aggregation:           Current used 
bytes:   32.2 MiB, peak bytes:   98.7 MiB
              |     |  |  +- node.3:                            Current used 
bytes:   16.8 MiB, peak bytes: 1609.0 MiB
              |     |  |  |  +- op.3.1.0.HashBuild:             Current used 
bytes:    8.8 MiB, peak bytes: 1599.5 MiB
              |     |  |  |  \- op.3.0.0.HashProbe:             Current used 
bytes:    8.1 MiB, peak bytes:   16.1 MiB
              |     |  |  +- node.5:                            Current used 
bytes:    192.0 B, peak bytes:    2.0 MiB
              |     |  |  |  \- op.5.0.0.FilterProject:         Current used 
bytes:    192.0 B, peak bytes: 1032.0 KiB
              |     |  |  +- node.8:                            Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              |     |  |  |  \- op.8.0.0.FilterProject:         Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              |     |  |  +- node.4:                            Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              |     |  |  |  \- op.4.0.0.FilterProject:         Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              |     |  |  +- node.6:                            Current used 
bytes:      0.0 B, peak bytes: 1024.0 KiB
              |     |  |  |  \- op.6.0.0.FilterProject:         Current used 
bytes:      0.0 B, peak bytes:   24.0 KiB
              |     |  |  +- 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.2:                            Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              |     |  |     \- op.2.1.0.ValueStream:           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
              +- ShuffleReader.0:                               Current used 
bytes:    9.0 MiB, peak bytes:   16.0 MiB
              |  \- single:                                     Current used 
bytes:    9.0 MiB, peak bytes:   16.0 MiB
              |     +- gluten::MemoryAllocator:                 Current used 
bytes:  128.6 KiB, peak bytes:  546.2 KiB
              |     \- root:                                    Current used 
bytes:  128.0 KiB, peak bytes: 1024.0 KiB
              |        \- default_leaf:                         Current used 
bytes:  128.0 KiB, peak bytes:  256.0 KiB
              +- ArrowContextInstance.76:                       Current used 
bytes:    8.0 MiB, peak bytes:    8.0 MiB
              +- OverAcquire.DummyTarget.307:                   Current used 
bytes:      0.0 B, peak bytes:    2.4 MiB
              +- OverAcquire.DummyTarget.309:                   Current used 
bytes:      0.0 B, peak bytes:  465.3 MiB
              +- OverAcquire.DummyTarget.308:                   Current used 
bytes:      0.0 B, peak bytes:    4.8 MiB
              +- OverAcquire.DummyTarget.310:                   Current used 
bytes:      0.0 B, peak bytes:    2.4 MiB
              +- ArrowContextInstance.77:                       Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              +- UniffleShuffleWriter.77:                       Current used 
bytes:      0.0 B, peak bytes:    8.0 MiB
              |  \- single:                                     Current used 
bytes:      0.0 B, peak bytes:    8.0 MiB
              |     +- gluten::MemoryAllocator:                 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
              +- OverAcquire.DummyTarget.311:                   Current used 
bytes:      0.0 B, peak bytes:    2.4 MiB
              +- IndicatorVectorBase#init.76:                   Current used 
bytes:      0.0 B, peak bytes:    8.0 MiB
              |  \- single:                                     Current used 
bytes:      0.0 B, peak bytes:    8.0 MiB
              |     +- gluten::MemoryAllocator:                 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
              \- VeloxBatchAppender.77:                         Current used 
bytes:      0.0 B, peak bytes:    8.0 MiB
                 \- single:                                     Current used 
bytes:      0.0 B, peak bytes:    8.0 MiB
                    +- 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
   
        at 
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget.borrow(ThrowOnOomMemoryTarget.java:105)
        at 
org.apache.gluten.memory.listener.ManagedReservationListener.reserve(ManagedReservationListener.java:43)
        at 
org.apache.gluten.vectorized.ColumnarBatchOutIterator.nativeHasNext(Native 
Method)
        at 
org.apache.gluten.vectorized.ColumnarBatchOutIterator.hasNextInternal(ColumnarBatchOutIterator.java:61)
        at 
org.apache.gluten.vectorized.GeneralOutIterator.hasNext(GeneralOutIterator.java:37)
        at 
scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:45)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$InvocationFlowProtection.hasNext(IteratorsV1.scala:159)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$IteratorCompleter.hasNext(IteratorsV1.scala:71)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$PayloadCloser.hasNext(IteratorsV1.scala:37)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$LifeTimeAccumulator.hasNext(IteratorsV1.scala:100)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$ReadTimeAccumulator.hasNext(IteratorsV1.scala:127)
        at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:460)
        at 
scala.collection.convert.Wrappers$IteratorWrapper.hasNext(Wrappers.scala:32)
        at 
org.apache.gluten.vectorized.GeneralInIterator.hasNext(GeneralInIterator.java:31)
        at 
org.apache.gluten.vectorized.ColumnarBatchOutIterator.nativeHasNext(Native 
Method)
        at 
org.apache.gluten.vectorized.ColumnarBatchOutIterator.hasNextInternal(ColumnarBatchOutIterator.java:61)
        at 
org.apache.gluten.vectorized.GeneralOutIterator.hasNext(GeneralOutIterator.java:37)
        at 
scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:45)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$ReadTimeAccumulator.hasNext(IteratorsV1.scala:127)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$PayloadCloser.hasNext(IteratorsV1.scala:37)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$IteratorCompleter.hasNext(IteratorsV1.scala:71)
        at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:460)
        at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:460)
        at 
org.apache.spark.shuffle.writer.VeloxUniffleColumnarShuffleWriter.writeImpl(VeloxUniffleColumnarShuffleWriter.java:129)
        at 
org.apache.spark.shuffle.writer.RssShuffleWriter.write(RssShuffleWriter.java:322)
        at 
org.apache.spark.shuffle.ShuffleWriteProcessor.write(ShuffleWriteProcessor.scala:59)
        at 
org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:104)
        at 
org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:54)
        at 
org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:161)
        at org.apache.spark.scheduler.Task.run(Task.scala:141)
        at 
org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$4(Executor.scala:620)
        at 
org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally(SparkErrorUtils.scala:64)
        at 
org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally$(SparkErrorUtils.scala:61)
        at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:94)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:623)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   ```
   
   ### Gluten version
   
   _No response_
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   
   ```


-- 
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]

Reply via email to