[Paper Review] Comparing Spark vs MPI/OpenMP On Word Count MapReduce
This paper proposes a high-performance MPI/OpenMP-based MapReduce implementation for the word count workload, comparing it directly with Apache Spark. Using in-memory computation and low-level parallelism, the MPI/OpenMP design achieves approximately 300% better performance than Spark on the same task, demonstrating the potential of traditional HPC frameworks for big data workloads.
Spark provides an in-memory implementation of MapReduce that is widely used in the big data industry. MPI/OpenMP is a popular framework for high performance parallel computing. This paper presents a high performance MapReduce design in MPI/OpenMP and uses that to compare with Spark on the classic word count MapReduce task. My result shows that the MPI/OpenMP MapReduce outperforms Apache Spark by about 300%.
Motivation & Objective
- To evaluate the performance of a custom MPI/OpenMP-based MapReduce implementation against Apache Spark for the classic word count workload.
- To investigate whether traditional high-performance computing (HPC) frameworks can outperform modern big data platforms like Spark in specific data-parallel workloads.
- To design and implement an efficient, in-memory MapReduce pipeline using MPI and OpenMP for optimal performance on shared-memory and distributed-memory systems.
- To provide a direct, controlled performance comparison under identical input and workload conditions.
- To challenge the assumption that Spark is the optimal choice for all data-parallel workloads by demonstrating superior performance with HPC-native frameworks.
Proposed method
- The author implemented a custom MapReduce pipeline using MPI for inter-node communication and OpenMP for intra-node parallelism on shared-memory systems.
- The implementation used in-memory data structures to minimize I/O overhead, similar to Spark’s approach.
- The word count task was parallelized across multiple processes using MPI for load distribution and OpenMP for thread-level parallelism within each node.
- The system was benchmarked on a cluster environment with controlled configurations to ensure fair comparison with Spark.
- Performance was measured in terms of end-to-end execution time for a standard word count workload on a large text corpus.
- The same dataset and hardware setup were used for both Spark and the MPI/OpenMP implementation to ensure a valid performance comparison.
Experimental results
Research questions
- RQ1Can an MPI/OpenMP-based MapReduce implementation outperform Apache Spark in terms of execution time for the word count workload?
- RQ2What performance advantages does a low-level HPC framework offer over a high-level big data framework like Spark for data-parallel workloads?
- RQ3To what extent does in-memory computation and fine-grained parallelism contribute to performance gains in MapReduce-style workloads?
- RQ4How does the performance of a hand-optimized HPC implementation compare to a production-grade big data platform like Spark under identical conditions?
- RQ5Is there a scenario where traditional HPC frameworks are more efficient than modern big data frameworks for batch data processing tasks?
Key findings
- The MPI/OpenMP-based MapReduce implementation achieved approximately 300% better performance than Apache Spark on the word count workload.
- The performance gain was attributed to reduced runtime overhead and more efficient memory management in the HPC implementation.
- The MPI/OpenMP system demonstrated superior scalability and lower latency due to fine-grained control over parallelism and data distribution.
- The results indicate that for compute-intensive, data-parallel workloads like word count, HPC-optimized frameworks can significantly outperform general-purpose big data platforms.
- The study challenges the dominance of Spark in big data workloads by showing that hand-optimized HPC solutions can achieve substantially better performance on specific tasks.
- The performance difference highlights the trade-off between developer productivity (Spark) and raw performance (HPC frameworks), especially for well-defined, compute-heavy workloads.
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.