Skip to main content
QUICK REVIEW

[Paper Review] Model-based optimization of MPDATA on Intel Xeon Phi through load imbalancing

Alexey Lastovetsky, Łukasz Szustak|arXiv (Cornell University)|Jul 5, 2015
Parallel Computing and Optimization TechniquesComputer Science25 references6 citations
TL;DR

This paper proposes a model-based optimization technique that improves MPDATA performance on Intel Xeon Phi by intentionally creating workload imbalance, challenging the conventional wisdom that load balancing always maximizes performance. By using functional performance models to find non-uniform data partitioning, the method achieves a 15% performance gain over a previously optimized load-balanced configuration.

ABSTRACT

Load balancing is a widely accepted technique for performance optimization of scientific applications on parallel architectures. Indeed, balanced applications do not waste processor cycles on waiting at points of synchronization and data exchange, maximizing this way the utilization of processors. In this paper, we challenge the universality of the load-balancing approach to optimization of the performance of parallel applications. First, we formulate conditions that should be satisfied by the performance profile of an application in order for the application to achieve its best performance via load balancing. Then we use a real-life scientific application, MPDATA, to demonstrate that its performance profile on a modern parallel architecture, Intel Xeon Phi, significantly deviates from these conditions. Based on this observation, we propose a method of performance optimization of scientific applications through load imbalancing. We also propose an algorithm that finds the optimal, possibly imbalanced, configuration of a data parallel application on a set of homogeneous processors. This algorithm uses functional performance models of the application to find the partitioning that minimizes its computation time but not necessarily balances the load of the processors. We show how to apply this algorithm to optimization of MPDATA on Intel Xeon Phi. Experimental results demonstrate that the performance of this carefully optimized load-balanced application can be further improved by 15\% using the proposed load-imbalancing optimization.

Motivation & Objective

  • To challenge the assumption that load balancing always optimizes performance in parallel scientific applications.
  • To identify conditions under which load balancing minimizes computation time, and to show that real-world applications like MPDATA on Xeon Phi do not satisfy these conditions.
  • To develop a new optimization method that uses performance modeling to find optimal, possibly imbalanced, data partitioning for homogeneous processors.
  • To apply this method to MPDATA on Intel Xeon Phi and demonstrate measurable performance improvements beyond load-balanced configurations.

Proposed method

  • Formulate conditions under which load balancing minimizes computation time, based on performance profile characteristics.
  • Build functional performance models of MPDATA on Intel Xeon Phi to capture non-uniform performance behavior across different workloads.
  • Design a partitioning algorithm that minimizes total computation time by distributing data unevenly across processors, using performance models to guide the choice.
  • Apply the algorithm to MPDATA with varying domain offsets (Δm) to explore imbalanced configurations and identify the optimal one.
  • Validate the model predictions experimentally by measuring execution times across different partitioning schemes on the Xeon Phi.
  • Use theoretical predictions and experimental measurements to compare performance of balanced vs. imbalanced configurations, focusing on total execution time and speedup.

Experimental results

Research questions

  • RQ1Under what conditions does load balancing minimize computation time in parallel applications?
  • RQ2To what extent does the performance profile of MPDATA on Intel Xeon Phi deviate from the ideal conditions required for load balancing to be optimal?
  • RQ3Can performance be further improved beyond a load-balanced configuration by intentionally introducing workload imbalance?
  • RQ4How accurately can a functional performance model predict the optimal non-uniform partitioning for minimizing computation time?
  • RQ5What is the maximum performance gain achievable through model-based load imbalancing in MPDATA on Intel Xeon Phi?

Key findings

  • The performance profile of MPDATA on Intel Xeon Phi significantly deviates from the ideal conditions required for load balancing to minimize computation time.
  • A model-based optimization method that allows for workload imbalance achieves a 15% performance improvement over a carefully optimized load-balanced configuration.
  • For a 480×480×128 domain, the optimal imbalanced configuration (Δm = 20) reduced execution time from 6.140 seconds (balanced) to 5.338 seconds, achieving a 1.15x speedup.
  • The theoretical performance model predicted the optimal configuration accurately, with prediction errors not exceeding 3%.
  • Even when the model predicted a non-optimal configuration, experimental results showed consistent performance gains from imbalanced partitioning, with maximum speedup at Δm = 9 for a smaller domain.
  • The total execution time was always slightly longer than the maximum individual team time, due to measurement overheads not including inter-team synchronization delays.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.