zhztheplayer commented on PR #13661:
URL: https://github.com/apache/gluten/pull/13661#issuecomment-7353990572

   @JkSelf 
   
   > My point about the 0.75 cap is a different object, used for spill 
([created 
here](https://github.com/apache/gluten/blob/4d5550738aaec1704c28ecd837cb1ac5c911e453/cpp/velox/compute/VeloxBackend.cc#L308-L334);
 spill allocates from 
[memory::spillMemoryPool()](https://github.com/facebookincubator/velox/blob/7c197eee49fe3b6e4a47bef930c22863c92f615d/velox/common/memory/Memory.cpp#L478-L480)).
   
   Thanks for the explanation. Technically it's better to keep overhead small 
since it's unsharable with the main execution / storage (I cannot recall the 
clear reason why spill is still staying in overhead rather than moving to 
storage too), but I can see how moving broadcast allocation to overhead can fix 
#13660. Rather I would first recommend exploring other approaches like 
suggested in 
https://github.com/apache/gluten/pull/13661#issuecomment-7323680822, or if you 
are using latest Spark versions we can raise a ticket to upstream Spark for 
adding a minimal storage reservation ratio or so. @wecharyu
   
   


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