maoyuwei1 opened a new issue, #13791:
URL: https://github.com/apache/gluten/issues/13791

   ### Description
   
   On the same query and the same data, Gluten (Velox) columnar shuffle is 
**slower with Celeborn
   (`RssPartitionWriter`) than with ESS (`LocalPartitionWriter`)**, even though 
the remote shuffle
   service is expected to be the faster option in our environment. We traced it 
to the native write
   path rather than to Celeborn itself.
   
   The root cause is that **`RssPartitionWriter` pushes one block per 
`hashEvict()` call, with no
   payload merging at all**, while `LocalPartitionWriter` coalesces the 
payloads of a partition up to
   `spark.gluten.shuffleWriter.bufferSize` rows before writing them out. Two 
per-push allocation
   patterns in the RSS path then multiply the cost of each of those extra 
blocks.
   
   We have a working fix and would like to upstream it. This issue is to agree 
on the approach
   (especially one scope question, see "Question for reviewers") before the PRs 
are opened.
   
   <img width="975" height="204" alt="image" 
src="https://github.com/user-attachments/assets/543eaabc-3dc2-4bd5-b1c0-8419774436dd";
 />
   
   ### Gluten version
   
   None


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