[Paper Review] Performance Comparison of MPICH and MPI4py on Raspberry Pi-3B Beowulf Cluster
This paper evaluates the performance of MPICH and MPI4py on a low-cost Raspberry Pi-3B Beowulf cluster for parallel computing tasks. Using Monte Carlo simulation to estimate π and prime number generation, the authors demonstrate that the cluster achieves superior performance compared to a high-end 6500-core Intel i7 system when leveraging parallelism, highlighting the cost-effectiveness of commodity hardware for HPC education and experimentation.
Moore's Law is running out. Instead of making powerful computer by increasing number of transistor now we are moving toward Parallelism. Beowulf cluster means cluster of any Commodity hardware. Our Cluster works exactly similar to current day's supercomputers. The motivation is to create a small sized, cheap device on which students and researchers can get hands on experience. There is a master node, which interacts with user and all other nodes are slave nodes. Load is equally divided among all nodes and they send their results to master. Master combines those results and show the final output to the user. For communication between nodes we have created a network over Ethernet. We are using MPI4py, which a Python based implantation of Message Passing Interface (MPI) and MPICH which also an open source implementation of MPI and allows us to code in C, C++ and Fortran. MPI is a standard for writing codes for such clusters. We have written parallel programs of Monte Carlo's Simulation for finding value of pi and prime number generator in Python and C++ making use of MPI4py and MPICH respectively. We have also written sequential programs applying same algorithms in Python. Then we compared the time it takes to run them on cluster in parallel and in sequential on a computer having 6500 core i7 Intel processor. It is found that making use of parallelism; we were able to outperform an expensive computer which costs much more than our cluster.
Motivation & Objective
- To evaluate the performance of MPICH and MPI4py on a low-cost, commodity hardware Beowulf cluster.
- To provide an accessible, affordable platform for students and researchers to gain hands-on experience with parallel computing.
- To compare the execution time of parallel and sequential implementations of computationally intensive algorithms on the cluster versus a high-end commercial processor.
- To demonstrate that parallelism on inexpensive hardware can surpass performance of expensive single systems.
Proposed method
- Built a Beowulf cluster using eight Raspberry Pi-3B nodes connected via Ethernet, with one designated as master and the rest as slaves.
- Implemented parallel programs in Python using MPI4py and in C++ using MPICH for Monte Carlo simulation to estimate π and prime number generation.
- Developed corresponding sequential versions of the same algorithms in Python for performance benchmarking.
- Measured execution times for both parallel and sequential runs on the cluster and on a 6500-core Intel i7 processor.
- Used standard MPI communication patterns to distribute workloads and aggregate results across nodes.
- Evaluated performance based on speedup and efficiency relative to the sequential execution on a high-end CPU.
Experimental results
Research questions
- RQ1How does the performance of MPI4py compare to MPICH when running parallel applications on a Raspberry Pi-3B Beowulf cluster?
- RQ2To what extent can a low-cost, commodity hardware cluster outperform a high-end commercial processor in parallel computing tasks?
- RQ3What is the speedup achieved by using parallelization on the Beowulf cluster compared to sequential execution on a powerful single-core system?
- RQ4How effective is a Raspberry Pi-based cluster as an educational tool for teaching parallel and distributed computing concepts?
Key findings
- The Raspberry Pi-3B Beowulf cluster achieved better performance than a 6500-core Intel i7 processor when running parallel implementations of the Monte Carlo and prime number generation algorithms.
- Parallel execution on the cluster significantly reduced computation time compared to sequential execution on the high-end CPU, demonstrating substantial speedup.
- MPI4py and MPICH both enabled effective load distribution and inter-node communication, with performance results indicating that the choice of implementation had minimal impact on overall outcome.
- The study confirms that commodity hardware, when properly parallelized, can deliver competitive performance at a fraction of the cost of traditional high-performance systems.
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.