wForget opened a new issue, #11544:
URL: https://github.com/apache/incubator-gluten/issues/11544
### Backend
VL (Velox)
### Bug description
Based on this error log, VeloxBatchResizer may not support spil:
```
26/01/31 04:06:52 ERROR Executor: Exception in task 31.0 in stage 10.0 (TID
1050)
org.apache.gluten.exception.GlutenException: Error during calling Java code
from native code:
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget$OutOfMemoryException:
Not enough spark off-heap execution memory. Acquired: 8.0 MiB, granted: 4.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.1050: Current
used bytes: 2.0 GiB, peak bytes: N/A
+- Gluten.Tree.6: Current
used bytes: 2044.0 MiB, peak bytes: 2.0 GiB
| \- Capacity[8.0 EiB].6: Current
used bytes: 2044.0 MiB, peak bytes: 2.0 GiB
| +- VeloxBatchResizer.6: Current
used bytes: 1552.0 MiB, peak bytes: 1552.0 MiB
| | \- single: Current
used bytes: 1552.0 MiB, peak bytes: 1552.0 MiB
| | +- root: Current
used bytes: 1547.5 MiB, peak bytes: 1552.0 MiB
| | | \- default_leaf: Current
used bytes: 1547.5 MiB, peak bytes: 1547.5 MiB
| | \- 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
| +- UniffleShuffleWriter.6: Current
used bytes: 472.0 MiB, peak bytes: 504.0 MiB
| | \- single: Current
used bytes: 472.0 MiB, peak bytes: 504.0 MiB
| | +- gluten::MemoryAllocator: Current
used bytes: 472.0 MiB, peak bytes: 480.5 MiB
| | | +- VeloxShuffleWriter.partitionBufferPool: Current
used bytes: 472.0 MiB, peak bytes: 480.5 MiB
| | | +- default: Current
used bytes: 0.0 B, peak bytes: 0.0 B
| | | \- PartitionWriter.cached_payload: Current
used bytes: 0.0 B, peak bytes: 1397.1 KiB
| | \- root: Current
used bytes: 0.0 B, peak bytes: 10.0 MiB
| | \- default_leaf: Current
used bytes: 0.0 B, peak bytes: 10.0 MiB
| +- ShuffleReader.1: Current
used bytes: 9.0 MiB, peak bytes: 24.0 MiB
| | \- single: Current
used bytes: 9.0 MiB, peak bytes: 24.0 MiB
| | +- gluten::MemoryAllocator: Current
used bytes: 3.8 MiB, peak bytes: 11.3 MiB
| | | \- default: Current
used bytes: 3.8 MiB, peak bytes: 11.3 MiB
| | \- root: Current
used bytes: 48.0 KiB, peak bytes: 1024.0 KiB
| | \- default_leaf: Current
used bytes: 48.0 KiB, peak bytes: 252.5 KiB
| +- ArrowContextInstance.3: Current
used bytes: 8.0 MiB, peak bytes: 8.0 MiB
| +- NativePlanEvaluator-12.0: Current
used bytes: 3.0 MiB, peak bytes: 40.0 MiB
| | \- single: Current
used bytes: 3.0 MiB, peak bytes: 40.0 MiB
| | +- root: Current
used bytes: 1288.0 KiB, peak bytes: 36.0 MiB
| | | +- task.Gluten_Stage_10_TID_1050_VTID_12: Current
used bytes: 1288.0 KiB, peak bytes: 36.0 MiB
| | | | +- node.2: Current
used bytes: 1280.0 KiB, peak bytes: 36.0 MiB
| | | | | +- op.2.0.0.HashProbe: Current
used bytes: 1280.0 KiB, peak bytes: 2.1 MiB
| | | | | \- op.2.1.0.HashBuild: Current
used bytes: 0.0 B, peak bytes: 8.5 MiB
| | | | +- node.4: Current
used bytes: 8.0 KiB, peak bytes: 1024.0 KiB
| | | | | \- op.4.0.0.FilterProject: Current
used bytes: 8.0 KiB, peak bytes: 9.5 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.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.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
| +- IteratorMetrics.6: Current
used bytes: 0.0 B, peak bytes: 0.0 B
| | \- single: 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
| | \- 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
| +- UniffleShuffleWriter.6.OverAcquire.0: Current
used bytes: 0.0 B, peak bytes: 151.2 MiB
| +- NativePlanEvaluator-12.0.OverAcquire.0: Current
used bytes: 0.0 B, peak bytes: 12.0 MiB
| +- VeloxBatchResizer.6.OverAcquire.0: Current
used bytes: 0.0 B, peak bytes: 465.6 MiB
| +- IteratorMetrics.6.OverAcquire.0: Current
used bytes: 0.0 B, peak bytes: 0.0 B
| \- ShuffleReader.1.OverAcquire.0: Current
used bytes: 0.0 B, peak bytes: 7.2 MiB
\- org.apache.spark.shuffle.writer.WriteBufferManager@7fba2c8: Current
used bytes: 31.8 MiB, peak bytes: N/A
at
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget.borrow(ThrowOnOomMemoryTarget.java:104)
at
org.apache.gluten.memory.listener.ManagedReservationListener.reserve(ManagedReservationListener.java:49)
at org.apache.gluten.vectorized.ShuffleWriterJniWrapper.write(Native
Method)
at
org.apache.spark.shuffle.writer.VeloxUniffleColumnarShuffleWriter.writeImpl(VeloxUniffleColumnarShuffleWriter.java:211)
at
org.apache.spark.shuffle.writer.RssShuffleWriter.write(RssShuffleWriter.java:344)
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:750)
at org.apache.gluten.vectorized.ShuffleWriterJniWrapper.write(Native
Method)
at
org.apache.spark.shuffle.writer.VeloxUniffleColumnarShuffleWriter.writeImpl(VeloxUniffleColumnarShuffleWriter.java:211)
at
org.apache.spark.shuffle.writer.RssShuffleWriter.write(RssShuffleWriter.java:344)
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:750)
```
### Gluten version
Gluten-1.5
### 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]