hhr293 opened a new pull request, #13683:
URL: https://github.com/apache/gluten/pull/13683

   ## What changes were proposed in this pull request?
   
   Expose Velox's existing `MemoryManager::Options::mallocContiguousEnabled` 
option through a new Gluten configuration:
   
   `spark.gluten.sql.columnar.backend.velox.mallocContiguousEnabled`
   
   When enabled, Velox uses malloc instead of mmap for contiguous memory 
allocations, allowing the underlying malloc implementation to potentially reuse 
freed memory.
   
   The configuration is applied to both the global and per-task Velox memory 
managers.
   
   ## Why are the changes needed?
   
   Velox already supports this allocation option, but Gluten does not expose it 
to Spark applications.
   
   This change allows users to enable the existing Velox functionality through 
Spark configuration without modifying code.
   
   The default is `false`, preserving existing behavior.
   
   ## How was this patch tested?
   
   - Existing behavior is unchanged when the configuration is disabled.
   - The change only exposes an existing Velox memory allocation option; no 
allocation logic is modified.
   


-- 
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