malinjawi opened a new issue, #13842: URL: https://github.com/apache/gluten/issues/13842
### Backend VL (Velox) ### Bug description `spark.gluten.memory.reservationBlockSize` has no effect on native code. Since #5770 the Velox and Bolt memory managers read it from the backend conf, but `GlutenConfig.getNativeBackendConf` does not forward the key, so native code always reserves memory from Spark in 8MB blocks. The JVM side still reads the configured value and uses it as the minimum spill size (#3161), so any value other than 8MB leaves the two sides disagreeing. For example, with 1MB a native spill can return no memory to Spark. The config is also marked dynamic, but native code reads it once at startup, so a runtime `SET` would split the two sides even after forwarding. ### Gluten version main branch ### Spark version Spark-3.5.x ### Spark configurations ``` spark.gluten.memory.reservationBlockSize=13MB spark.gluten.sql.debug=true ``` ### System information _No response_ ### Relevant logs The native backend's config dump at startup (`VeloxBackend config:`) lists `spark.gluten.memory.offHeap.size.in.bytes` and the other forwarded keys, but has no entry for `spark.gluten.memory.reservationBlockSize`. -- 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]
