FACT

Jidong Zhai, Tianwei Sheng, Jiangzhou He, Wenguang Chen, Weimin Zheng2009

TL;DR

This paper introduces FACT, a novel technique for efficiently collecting communication traces of large-scale parallel applications. By employing program slicing to reduce the application's complexity, FACT enables trace collection on smaller systems, drastically cutting down on time and resource requirements while preserving crucial communication pattern information.

What Problem Does This Paper Address?

Understanding the communication patterns of parallel applications is vital for optimizing their performance and designing efficient communication subsystems. These patterns are typically analyzed by examining communication traces. However, generating these traces traditionally requires executing the entire parallel application on full-scale, often massive, computing systems. This process is prohibitively time-consuming and expensive, limiting the ability to analyze large-scale applications, perform sensitivity analyses, or even conduct basic debugging and optimization on smaller hardware. The core challenge is to obtain meaningful communication trace data without the need for extensive computational resources and time.

Methods

The paper proposes FACT (Fast Communication Trace collection), a technique that leverages program slicing. The core idea is to reduce the original parallel program into a "program slice" by statically analyzing it. This slice preserves only the statements and variables relevant to spatial and volume communication attributes, effectively removing computation and message content that don't impact these attributes.

The process involves two main components:

  1. Compilation Framework:
    • Intra-procedural Analysis: Identifies communication routines and their relevant arguments (Comm Variables).
  2. Inter-procedural Analysis: Builds a program call graph and employs a novel Live-Propagation Slicing Algorithm (LPSA). LPSA uses data, control, and communication dependence analysis to identify variables and statements that directly or indirectly affect communication patterns. This results in a program slice and runtime directives.
  3. Runtime Environment:
    • A custom MPI communication library is used.
  4. The program slice is linked with this library and executed on a small-scale system.
  5. The library uses the directives generated during compilation to selectively execute MPI routines and collect communication trace information (message size, source, destination, tag, communicator ID).

Datasets

The paper evaluates FACT using:

  • 7 NAS Parallel Benchmarks (NPB) programs (Class D): BT, CG, EP, FT, LU, MG, SP.
  • ASCI Sweep3D: A benchmark used for solving a three-dimensional particle transport problem.

These are standard benchmarks in the parallel computing community, used to evaluate the performance and characteristics of parallel applications.

Key Insights and Ideas

  • Program Slicing for Communication Traces: The fundamental insight is that most computation and message content in parallel applications are irrelevant to their communication patterns (spatial and volume attributes). By removing these irrelevant parts, the program can be significantly simplified.
  • Decoupling Trace Collection from Full-Scale Execution: FACT breaks the dependency on large-scale systems for trace collection. This democratizes the process, allowing researchers and developers to analyze complex applications on more accessible hardware.
  • Preservation of Key Attributes: The program slicing approach is designed to specifically preserve spatial and volume communication attributes, which are crucial for many optimization and analysis tasks. Temporal attributes are sacrificed for efficiency.
  • Efficiency Gains: The method promises significant reductions in both memory consumption and execution time, enabling analysis that was previously infeasible.

Key Results

FACT demonstrated substantial improvements in resource utilization and collection time:

  • Memory Consumption: Reduced by up to two orders of magnitude compared to original programs. For example, Sweep3D for 512 processes consumed 0.13 GB with FACT versus 213.83 GB for the original program. FACT's memory usage was comparable to a "Null" benchmark (only MPI_Init/Finalize), indicating minimal overhead.
  • Execution Time: Significantly reduced. For instance, collecting traces for BT with 64 processes took only 0.28 seconds with FACT, compared to 1175.65 seconds for the original program (though the latter was run on a much larger validation platform).
  • Validation: The communication traces collected by FACT were found to be identical to those collected by traditional methods (excluding timestamps), validating the accuracy of the preserved attributes.
  • Scalability: FACT showed good scalability with the number of nodes, with execution time decreasing as more nodes were utilized on the test platform.

Limitations and Future Work

  • Absence of Temporal Attributes: FACT explicitly sacrifices temporal information (e.g., message timestamps, generation rates) to achieve its efficiency. This means it cannot be used for performance analysis that critically relies on timing, such as overhead analysis or critical path analysis.
  • Non-Determinism: The paper acknowledges that removing computation might subtly affect the load balancing and thus the communication patterns of non-deterministic applications. Further investigation is needed here.
  • Future Work: The authors plan to study more MPI applications, define annotation constructs for programmers to tag matching communication operations, and potentially extend support to other languages. They also aim to further investigate the impact on non-deterministic applications.

Summary updated

Abstract

A proper understanding of communication patterns of parallel applications is important to optimize application performance and design better communication subsystems. Communication patterns can be obtained by analyzing communication traces. However, existing approaches to generate communication traces need to execute the entire parallel applications on full-scale systems that are time-consuming and expensive.
BibTeX
@misc{zhai2009fact,
  author = {Jidong Zhai and Tianwei Sheng and Jiangzhou He and Wenguang Chen and Weimin Zheng},
  title = {{FACT}},
  year = {2009},
  doi = {10.1145/1654059.1654087},
}

Loading related content...

Figure