arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.13030cs.DCcs.PF
收藏

Dask和Apache Spark用于数据密集型神经成像管道的性能比较

A performance comparison of Dask and Apache Spark for data-intensive neuroimaging pipelines

Mathieu Dugré, Valérie Hayot-Sasson, Tristan Glatard

摘要:

在过去的几年里,由于图像分辨率、数据共享和研究规模的共同增加,神经影像学已经进入了大数据时代。然而,在这个领域还没有出现特定的大数据引擎,并且仍然有几种替代方案。我们比较了两个流行的大数据引擎与Python API,Apache Spark和Dask,在处理神经成像管道时的运行时性能。我们的评估使用两个合成管道处理81 GB的BigBrain图像,以及一个真实的管道处理来自1,000多名受试者的解剖数据。我们使用任务持续时间、数据大小和工人数量的各种组合来对这些管道进行基准测试,这些管道部署在8节点(每个节点8个核心)上。Compute Canada的Arbutus云中的计算集群。我们将PySpark的RDD API与Dask's Bag、Delayed和Futures进行对比。结果表明,尽管Spark和Dask之间存在细微差异,但两种引擎都可以执行JavaScript。然而,Dask管道可能会受到Python GIL的限制,这取决于任务类型和集群配置。在所有情况下,主要的限制因素是数据传输。虽然这两种引擎都适用于神经成像管道,但需要更多的努力来减少数据传输时间。

英文摘要:

In the past few years, neuroimaging has entered the Big Data era due to the joint increase in image resolution, data sharing, and study sizes. However, no particular Big Data engines have emerged in this field, and several alternatives remain available. We compare two popular Big Data engines with Python APIs, Apache Spark and Dask, for their runtime performance in processing neuroimaging pipelines. Our evaluation uses two synthetic pipelines processing the 81GB BigBrain image, and a real pipeline processing anatomical data from more than 1,000 subjects. We benchmark these pipelines using various combinations of task durations, data sizes, and numbers of workers, deployed on an 8-node (8 cores ea.) compute cluster in Compute Canada's Arbutus cloud. We evaluate PySpark's RDD API against Dask's Bag, Delayed and Futures. Results show that despite slight differences between Spark and Dask, both engines perform comparably. However, Dask pipelines risk being limited by Python's GIL depending on task type and cluster configuration. In all cases, the major limiting factor was data transfer. While either engine is suitable for neuroimaging pipelines, more effort needs to be placed in reducing data transfer time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑