jmzhoulab opened a new pull request #27111: [SPARK-30441][Graphx]Improve the 
memory usage in StronglyConnectedComponents
URL: https://github.com/apache/spark/pull/27111
 
 
   This is very consume memory when It use StronglyConnectedComponents(see 
figure1.png). Because there is no mark the Graph/RDD as non-persistent in the 
iterative process timely. And it is maybe lead to fail in the big graph.
   
   In order to improve the memory usage, it is verty important to mark the 
Graph/RDD as non-persistent timely. In the current code, only make the 
Graph/RDD as non-persistent for 'sccGraph' but not for 'sccWorkGraph' in 
degree's step and pregel's step.
   
   I have done a optimized code proposal(see my 
fork:https://github.com/jmzhoulab/spark/blob/master/graphx/src/main/scala/org/apache/spark/graphx/lib/StronglyConnectedComponents.scala)
   
   The storage after optimization see figure2.png

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to