[ 
https://issues.apache.org/jira/browse/SPARK-22229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199293#comment-16199293
 ] 

Yuval Degani commented on SPARK-22229:
--------------------------------------

We already published an open-source package that implements an RDMA shuffle 
engine: it is available on https://github.com/Mellanox/SparkRDMA.
We have been working on this project for about a year now, and have a growing 
list of enterprises that use it in production, or intend to do so after 
pre-production testing in the very near future.

I think whether to introduce it to Spark or leave it as an external plugin is 
kind of a chicken or egg question.
Not having it available in mainstream Spark is currently what's blocking 
widespread adoptions.

I limited the goals for this SPIP to the shuffle engine, since I didn't want to 
impose a cross-component change.
Actually, it probably makes more sense to integrate RDMA a little lower in the 
stack by offering an alternative for the "NettyBlockTransferService" which 
implements the "BlockTransferService interface". However, this interface is not 
pluginable in today's Spark code.
By implementing an "RdmaBlockTransferService", we can instantly allow RDMA 
transfers across the board for broadcasts, remote RDDs, task results and 
shuffles of course.

My plan is to have those RDMA capabilities up and running for shuffle, and let 
it be the first step in introducing RDMA to Spark.
There's a lot more that RDMA can do in the context of Spark besides those I 
already mentioned: RPC messaging over RDMA, GPUDirect (remotely access GPU 
memory on NVIDIA - crucial for ML applications, and the main driver for 
implementing RDMA in TensorFlow and Caffe2), and more.

> SPIP: RDMA Accelerated Shuffle Engine
> -------------------------------------
>
>                 Key: SPARK-22229
>                 URL: https://issues.apache.org/jira/browse/SPARK-22229
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.3.0
>            Reporter: Yuval Degani
>         Attachments: 
> SPARK-22229_SPIP_RDMA_Accelerated_Shuffle_Engine_Rev_1.0.pdf
>
>
> An RDMA-accelerated shuffle engine can provide enormous performance benefits 
> to shuffle-intensive Spark jobs, as demonstrated in the “SparkRDMA” plugin 
> open-source project ([https://github.com/Mellanox/SparkRDMA]).
> Using RDMA for shuffle improves CPU utilization significantly and reduces I/O 
> processing overhead by bypassing the kernel and networking stack as well as 
> avoiding memory copies entirely. Those valuable CPU cycles are then consumed 
> directly by the actual Spark workloads, and help reducing the job runtime 
> significantly. 
> This performance gain is demonstrated with both industry standard HiBench 
> TeraSort (shows 1.5x speedup in sorting) as well as shuffle intensive 
> customer applications. 
> SparkRDMA will be presented at Spark Summit 2017 in Dublin 
> ([https://spark-summit.org/eu-2017/events/accelerating-shuffle-a-tailor-made-rdma-solution-for-apache-spark/]).
> Please see attached proposal document for more information.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to