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

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   error message:
   
   ```
   25/04/21 16:16:07 ERROR ManagedReservationListener: Error reserving memory 
from target
   
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget$OutOfMemoryException: 
Not enough spark off-heap execution memory. Acquired: 1976.0 MiB, granted: 
1008.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.15:                                              Current used 
bytes: 1040.0 MiB, peak bytes:        N/A
        \- Gluten.Tree.0:                                     Current used 
bytes: 1040.0 MiB, peak bytes:    2.0 GiB
           \- root.0:                                         Current used 
bytes: 1040.0 MiB, peak bytes:    2.0 GiB
              +- WholeStageIterator.0:                        Current used 
bytes: 1040.0 MiB, peak bytes:    2.0 GiB
              |  \- single:                                   Current used 
bytes: 1040.0 MiB, peak bytes:    2.0 GiB
              |     +- root:                                  Current used 
bytes:   50.4 MiB, peak bytes: 2041.0 MiB
              |     |  +- task.Gluten_Stage_1_TID_15_VTID_0:  Current used 
bytes:   50.4 MiB, peak bytes:   57.0 MiB
              |     |  |  +- node.0:                          Current used 
bytes:   44.9 MiB, peak bytes:   52.0 MiB
              |     |  |  |  +- op.0.0.0.TableScan:           Current used 
bytes:   44.9 MiB, peak bytes:   48.8 MiB
              |     |  |  |  \- op.0.0.0.TableScan.test-hive: Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              |     |  |  +- node.2:                          Current used 
bytes:    3.8 MiB, peak bytes:    4.0 MiB
              |     |  |  |  \- op.2.0.0.FilterProject:       Current used 
bytes:    3.8 MiB, peak bytes:    3.8 MiB
              |     |  |  \- node.1:                          Current used 
bytes: 1680.0 KiB, peak bytes:    3.0 MiB
              |     |  |     \- op.1.0.0.FilterProject:       Current used 
bytes: 1680.0 KiB, peak bytes:    2.2 MiB
              |     |  +- task.Gluten_Stage_1_TID_15_VTID_1:  Current used 
bytes:    2.1 KiB, peak bytes: 1986.0 MiB
              |     |  |  +- node.1:                          Current used 
bytes:    2.0 KiB, peak bytes: 1024.0 KiB
              |     |  |  |  \- op.1.0.0.FilterProject:       Current used 
bytes:    2.0 KiB, peak bytes:    2.0 KiB
              |     |  |  +- node.3:                          Current used 
bytes:    128.0 B, peak bytes: 1024.0 KiB
              |     |  |  |  \- op.3.0.0.FilterProject:       Current used 
bytes:    128.0 B, peak bytes:    256.0 B
              |     |  |  +- node.2:                          Current used 
bytes:      0.0 B, peak bytes: 1984.0 MiB
              |     |  |  |  \- op.2.0.0.OrderBy:             Current used 
bytes:      0.0 B, peak bytes:   16.5 MiB
              |     |  |  +- node.4:                          Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              |     |  |  |  \- op.4.0.0.PartialAggregation:  Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              |     |  |  \- 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
              |     |  \- default_leaf:                       Current used 
bytes:   1664.0 B, peak bytes:   1792.0 B
              |     \- gluten::MemoryAllocator:               Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              +- ArrowContextInstance.0:                      Current used 
bytes:      0.0 B, peak bytes:      0.0 B
              +- OverAcquire.DummyTarget.0:                   Current used 
bytes:      0.0 B, peak bytes:  468.0 MiB
              +- OverAcquire.DummyTarget.1:                   Current used 
bytes:      0.0 B, peak bytes:    2.4 MiB
              \- IndicatorVectorBase#init.0:                  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 scala.collection.Iterator.isEmpty(Iterator.scala:387)
        at scala.collection.Iterator.isEmpty$(Iterator.scala:387)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$LifeTimeAccumulator.isEmpty(IteratorsV1.scala:90)
        at 
org.apache.gluten.execution.VeloxColumnarToRowExec$.toRowIterator(VeloxColumnarToRowExec.scala:108)
        at 
org.apache.gluten.execution.VeloxColumnarToRowExec.$anonfun$doExecuteInternal$1(VeloxColumnarToRowExec.scala:79)
        at org.apache.spark.rdd.RDD.$anonfun$mapPartitions$2(RDD.scala:855)
        at 
org.apache.spark.rdd.RDD.$anonfun$mapPartitions$2$adapted(RDD.scala:855)
        at 
org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:364)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:328)
        at 
org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:364)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:328)
        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)
   W20250421 16:16:07.298964 2510332 SortBuffer.cpp:234] Failed to reserve 
2.88GB for memory pool op.2.0.0.OrderBy, usage: 0B, reservation: 0B
   ```
   
   ### Gluten version
   
   Gluten-1.2
   
   ### Spark version
   
   Spark-3.5.x
   
   ### 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