weixiuli opened a new issue, #9400:
URL: https://github.com/apache/incubator-gluten/issues/9400
### Backend
VL (Velox)
### Bug description
```
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: 2.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=14.0 GiB
spark.gluten.memory.task.offHeap.size.in.bytes=3.5 GiB
spark.gluten.memory.conservative.task.offHeap.size.in.bytes=1792.0 MiB
spark.memory.offHeap.enabled=true
spark.gluten.memory.dynamic.offHeap.sizing.enabled=false
Memory consumer stats:
Task.342: Current used
bytes: 3.5 GiB, peak bytes: N/A
\- Gluten.Tree.147: Current used
bytes: 3.5 GiB, peak bytes: 3.9 GiB
\- root.147: Current used
bytes: 3.5 GiB, peak bytes: 3.9 GiB
+- WholeStageIterator.147: Current used
bytes: 3.4 GiB, peak bytes: 3.6 GiB
| \- single: Current used
bytes: 3.4 GiB, peak bytes: 3.6 GiB
| +- root: Current used
bytes: 3.3 GiB, peak bytes: 3.6 GiB
| | +- task.Gluten_Stage_30_TID_342_VTID_160: Current used
bytes: 3.3 GiB, peak bytes: 3.6 GiB
| | | +- node.21: Current used
bytes: 3.0 GiB, peak bytes: 3.0 GiB
| | | | \- op.21.0.0.Window: Current used
bytes: 3.0 GiB, peak bytes: 3.0 GiB
| | | +- node.1: Current used
bytes: 209.7 MiB, peak bytes: 232.0 MiB
| | | | \- op.1.0.0.OrderBy: Current used
bytes: 209.7 MiB, peak bytes: 210.1 MiB
| | | +- node.17: Current used
bytes: 43.7 MiB, peak bytes: 72.0 MiB
| | | | +- op.17.4.0.HashBuild: Current used
bytes: 42.5 MiB, peak bytes: 42.5 MiB
| | | | \- op.17.0.0.HashProbe: Current used
bytes: 1227.5 KiB, peak bytes: 2.4 MiB
| | | +- node.13: Current used
bytes: 39.3 MiB, peak bytes: 88.0 MiB
| | | | +- op.13.3.0.HashBuild: Current used
bytes: 37.3 MiB, peak bytes: 37.3 MiB
| | | | \- op.13.0.0.HashProbe: Current used
bytes: 2.0 MiB, peak bytes: 2.3 MiB
| | | +- node.2: Current used
bytes: 16.1 MiB, peak bytes: 408.0 MiB
| | | | \- op.2.0.0.Window: Current used
bytes: 16.1 MiB, peak bytes: 404.0 MiB
| | | +- node.20: Current used
bytes: 15.1 MiB, peak bytes: 1096.0 MiB
| | | | \- op.20.0.0.OrderBy: Current used
bytes: 15.1 MiB, peak bytes: 322.6 MiB
| | | +- node.5: Current used
bytes: 14.9 MiB, peak bytes: 40.0 MiB
| | | | +- op.5.1.0.HashBuild: Current used
bytes: 13.5 MiB, peak bytes: 13.5 MiB
| | | | \- op.5.0.0.HashProbe: Current used
bytes: 1464.6 KiB, peak bytes: 1649.5 KiB
| | | +- node.9: Current used
bytes: 7.5 MiB, peak bytes: 32.0 MiB
| | | | +- op.9.2.0.HashBuild: Current used
bytes: 7.0 MiB, peak bytes: 7.0 MiB
| | | | \- op.9.0.0.HashProbe: Current used
bytes: 509.0 KiB, peak bytes: 1289.5 KiB
| | | +- node.22: Current used
bytes: 24.0 KiB, peak bytes: 1024.0 KiB
| | | | \- op.22.0.0.FilterProject: Current used
bytes: 24.0 KiB, peak bytes: 24.2 KiB
| | | +- node.19: Current used
bytes: 256.0 B, peak bytes: 1024.0 KiB
| | | | \- op.19.0.0.FilterProject: Current used
bytes: 256.0 B, peak bytes: 112.3 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.7: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | | \- op.7.0.0.FilterProject: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | +- node.3: Current used
bytes: 0.0 B, peak bytes: 1024.0 KiB
| | | | \- op.3.0.0.FilterProject: Current used
bytes: 0.0 B, peak bytes: 768.0 B
| | | +- node.10: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | | \- op.10.0.0.FilterProject: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | +- node.16: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | | \- op.16.4.0.ValueStream: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | +- node.14: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | | \- op.14.0.0.FilterProject: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | +- node.18: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | | \- op.18.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.1.0.ValueStream: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | +- node.11: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | | \- op.11.0.0.FilterProject: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | +- node.15: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | | \- op.15.0.0.FilterProject: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | +- node.8: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | | \- op.8.2.0.ValueStream: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | +- node.12: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | | \- op.12.3.0.ValueStream: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | \- node.6: Current used
bytes: 0.0 B, peak bytes: 0.0 B
| | | \- op.6.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
+- ShuffleWriter.109: Current used
bytes: 104.0 MiB, peak bytes: 512.0 MiB
| \- single: Current used
bytes: 104.0 MiB, peak bytes: 512.0 MiB
| +- gluten::MemoryAllocator: Current used
bytes: 104.0 MiB, peak bytes: 502.0 MiB
| \- root: Current used
bytes: 0.0 B, peak bytes: 1024.0 KiB
| \- default_leaf: Current used
bytes: 0.0 B, peak bytes: 5.8 KiB
+- ArrowContextInstance.174: Current used
bytes: 8.0 MiB, peak bytes: 8.0 MiB
+- VeloxBatchAppender.109: Current used
bytes: 7.0 MiB, peak bytes: 8.0 MiB
| \- single: Current used
bytes: 7.0 MiB, peak bytes: 8.0 MiB
| +- root: Current used
bytes: 6.3 MiB, peak bytes: 7.0 MiB
| | \- default_leaf: Current used
bytes: 6.3 MiB, peak bytes: 6.6 MiB
| \- gluten::MemoryAllocator: Current used
bytes: 0.0 B, peak bytes: 0.0 B
+- OverAcquire.DummyTarget.724: Current used
bytes: 0.0 B, peak bytes: 0.0 B
+- BuildSideRelation#deserialized.24: Current used
bytes: 0.0 B, peak bytes: 16.0 MiB
| \- single: Current used
bytes: 0.0 B, peak bytes: 16.0 MiB
| +- root: Current used
bytes: 0.0 B, peak bytes: 11.0 MiB
| | \- default_leaf: Current used
bytes: 0.0 B, peak bytes: 10.0 MiB
| \- gluten::MemoryAllocator: Current used
bytes: 0.0 B, peak bytes: 0.0 B
+- OverAcquire.DummyTarget.725: Current used
bytes: 0.0 B, peak bytes: 0.0 B
+- IndicatorVectorBase#init.141: 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.722: Current used
bytes: 0.0 B, peak bytes: 0.0 B
+- OverAcquire.DummyTarget.723: Current used
bytes: 0.0 B, peak bytes: 0.0 B
+- OverAcquire.DummyTarget.720: Current used
bytes: 0.0 B, peak bytes: 0.0 B
+- OverAcquire.DummyTarget.721: Current used
bytes: 0.0 B, peak bytes: 0.0 B
+- ShuffleReader.38: Current used
bytes: 0.0 B, peak bytes: 16.0 MiB
| \- single: Current used
bytes: 0.0 B, peak bytes: 16.0 MiB
| +- gluten::MemoryAllocator: Current used
bytes: 0.0 B, peak bytes: 1799.4 KiB
| \- root: Current used
bytes: 0.0 B, peak bytes: 2.0 MiB
| \- default_leaf: Current used
bytes: 0.0 B, peak bytes: 1344.0 KiB
\- ArrowContextInstance.175: Current used
bytes: 0.0 B, peak bytes: 8.0 MiB
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.ShuffleWriterJniWrapper.write(Native
Method)
at
org.apache.spark.shuffle.ColumnarShuffleWriter.internalWrite(ColumnarShuffleWriter.scala:177)
at
org.apache.spark.shuffle.ColumnarShuffleWriter.write(ColumnarShuffleWriter.scala:231)
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:166)
at org.apache.spark.scheduler.Task.run(Task.scala:141)
at
org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$4(Executor.scala:627)
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:630)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
at org.apache.gluten.vectorized.ShuffleWriterJniWrapper.write(Native
Method)
at
org.apache.spark.shuffle.ColumnarShuffleWriter.internalWrite(ColumnarShuffleWriter.scala:177)
at
org.apache.spark.shuffle.ColumnarShuffleWriter.write(ColumnarShuffleWriter.scala:231)
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:166)
at org.apache.spark.scheduler.Task.run(Task.scala:141)
at
org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$4(Executor.scala:627)
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:630)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
```
### 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]