[Paper Review] A Benchmarking Study to Evaluate Apache Spark on Large-Scale Supercomputers
This paper evaluates Apache Spark's performance on large-scale supercomputers using a standardized dataflow benchmark, comparing it with traditional MPI/C workloads across strong and weak scaling. Despite Spark being ~30× slower than MPI/C due to JVM and networking overheads, the study demonstrates Spark's viability for HPC workloads when properly tuned, especially for co-processing and post-processing in mixed environments.
As dataset sizes increase, data analysis tasks in high performance computing (HPC) are increasingly dependent on sophisticated dataflows and out-of-core methods for efficient system utilization. In addition, as HPC systems grow, memory access and data sharing are becoming performance bottlenecks. Cloud computing employs a data processing paradigm typically built on a loosely connected group of low-cost computing nodes without relying upon shared storage and/or memory. Apache Spark is a popular engine for large-scale data analysis in the cloud, which we have successfully deployed via job submission scripts on production clusters. In this paper, we describe common parallel analysis dataflows for both Message Passing Interface (MPI) and cloud based applications. We developed an effective benchmark to measure the performance characteristics of these tasks using both types of systems, specifically comparing MPI/C-based analyses with Spark. The benchmark is a data processing pipeline representative of a typical analytics framework implemented using map-reduce. In the case of Spark, we also consider whether language plays a role by writing tests using both Python and Scala, a language built on the Java Virtual Machine (JVM). We include performance results from two large systems at Argonne National Laboratory including Theta, a Cray XC40 supercomputer on which our experiments run with 65,536 cores (1024 nodes with 64 cores each). The results of our experiments are discussed in the context of their applicability to future HPC architectures. Beyond understanding performance, our work demonstrates that technologies such as Spark, while typically aimed at multi-tenant cloud-based environments, show promise for data analysis needs in a traditional clustering/supercomputing environment.
Motivation & Objective
- To assess the feasibility of deploying Apache Spark in high-performance computing (HPC) environments traditionally dominated by MPI.
- To compare Spark's performance with MPI/C on large-scale supercomputers using standardized benchmarks.
- To evaluate the impact of programming languages (Python vs. Scala) on Spark performance in HPC settings.
- To identify performance bottlenecks—especially networking and JVM overheads—in Spark deployments on leadership-class systems.
- To demonstrate that Spark can be effectively used for co-processing and post-processing in mixed MPI/Spark HPC workflows.
Proposed method
- Developed a data processing pipeline benchmark based on map-reduce patterns, representative of real-world analytics workloads.
- Implemented the benchmark in MPI/C, Spark with Python, and Spark with Scala to enable cross-framework comparison.
- Executed strong and weak scaling experiments on the Theta supercomputer (65,536 cores) at Argonne National Laboratory.
- Measured performance using logarithmic scaling plots to compare ideal vs. actual scaling behavior across frameworks.
- Tuned Spark configurations minimally, adjusting only key properties for HPC compatibility without modifying the Spark runtime.
- Used job submission scripts and custom launch frameworks to deploy benchmarks on production supercomputing clusters.
Experimental results
Research questions
- RQ1Can Apache Spark achieve acceptable performance for data-intensive HPC workloads on large-scale supercomputers?
- RQ2How does Spark’s performance compare to traditional MPI/C in terms of strong and weak scaling?
- RQ3Does the choice of programming language (Python vs. Scala) significantly affect Spark performance in HPC environments?
- RQ4What are the primary performance bottlenecks when running Spark on HPC systems, particularly regarding networking and JVM overhead?
- RQ5To what extent can Spark be integrated into existing HPC workflows, especially in mixed MPI/Spark execution models?
Key findings
- Spark-based workloads were approximately 30× slower than MPI/C in both strong and weak scaling experiments on the Theta supercomputer.
- Weak scaling showed similar trends across all three frameworks, indicating that Spark scales reasonably well in theory, though with high absolute runtime.
- Strong scaling results also showed poor scaling relative to ideal, with all frameworks deviating from inverse-core proportionality.
- No significant performance difference was observed between Spark Python and Spark Scala, indicating that language choice did not impact performance in this study.
- The primary performance degradation was traced to Spark heartbeat traffic overwhelming the network, which was mitigated by disabling heartbeats in experiments.
- Despite performance overheads, Spark demonstrated feasibility for large-scale data processing on supercomputers, especially for co-processing and post-processing tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.