jiangjiangtian opened a new issue, #10892: URL: https://github.com/apache/incubator-gluten/issues/10892
### Backend VL (Velox) ### Bug description There is a job failure because of oom in our test and its memory usage statistics is as follows: <img width="2778" height="1164" alt="Image" src="https://github.com/user-attachments/assets/93ed4fc0-080a-496b-bde4-a8b601346482" /> We can see that `VeloxBatchResizer` uses most of the memory. I find that most of the columns of the table is variable length, like `VARCHAR, ARRAR, MAP` etc. I find there is a method called `maybeReserve` in velox's [MemoryPool](https://github.com/facebookincubator/velox/blob/main/velox/common/memory/MemoryPool.cpp#L800). Maybe we can call this method in `VeloxBatchResizer` before calling the `append` method to try to allocate memory. If the process fails, then we don't append the batch. In this way, we need to do some code modification to make the memory allocation not to throw `OutOfMemoryException`. ### 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]
