I/O threads to reduce checkpoint blocking for an electromagnetics solver on Blue Gene/P and Cray XK6

Jing Fu, Robert Latham, Misun Min, Christopher D. CarothersRoss@ics 2012

TL;DR

This paper introduces "threaded reduced-blocking I/O" (threaded rbIO), a novel application-level checkpointing technique that uses dedicated I/O threads to overlap computation with data writing. This approach significantly reduces checkpoint blocking, leading to substantial performance improvements for large-scale scientific simulations on supercomputers like Blue Gene/P and Cray XK6.

What Problem Does This Paper Address?

Modern supercomputers are pushing the boundaries of computational power, with hundreds of thousands of cores. This immense scale, however, brings a critical challenge: fault tolerance. Application-level checkpointing is a common strategy to save the state of a computation and resume it after a failure. However, the massive datasets generated by these simulations create enormous I/O loads, often leading to "I/O bottlenecks" that severely slow down or even halt computations during checkpointing. This paper addresses the problem of reducing this I/O blocking overhead to improve the overall efficiency and throughput of large-scale scientific applications.

Methods

The authors propose and evaluate a new I/O approach called "threaded reduced-blocking I/O" (threaded rbIO). This method builds upon the "reduced-blocking I/O" (rbIO) concept, which divides processors into "workers" that perform computations and "writers" that handle I/O. The key innovation in threaded rbIO is the use of a separate I/O thread on the writer nodes.

Here's how it works:

  • Workers: Compute and send their data to designated writer nodes. Crucially, they can then immediately return to computation without waiting for the data to be written to disk.
  • Writers: Receive data from workers and aggregate it into a memory buffer.
  • I/O Thread: A dedicated thread on the writer node handles the actual disk I/O operations in the background. This allows the main MPI thread on the writer node to also return to computation or prepare for the next data aggregation phase.

This contrasts with:

  • Collective I/O (coIO): A standard MPI-IO approach where all processors participate in a synchronized write operation, often leading to significant blocking.
  • Regular rbIO: Where the writer node's main thread blocks on I/O operations after aggregating data.

The threaded rbIO approach aims to achieve near-asynchronous checkpointing by effectively hiding I/O latency behind computation.

Datasets

The study uses the NekCEM (Nekton for Computational Electromagnetics) code, a large-scale, parallel electromagnetic solver. The "datasets" in this context refer to the checkpoint files generated by NekCEM. The paper describes experiments with varying problem sizes and numbers of processors, resulting in checkpoint file sizes ranging from 13GB to 52GB. No new benchmarks were introduced; rather, existing supercomputing systems were used to evaluate the proposed I/O technique.

Key Insights and Ideas

  • The Power of Asynchronicity: The core insight is that by offloading I/O to a separate thread, the main computation threads (both worker and writer) can continue their work, effectively masking the I/O latency. This is a significant departure from traditional synchronized I/O operations.
  • Threaded rbIO Outperforms: The threaded rbIO approach consistently shows superior performance compared to both regular rbIO and tuned collective I/O (coIO) across different scales and systems.
  • Perceived vs. Raw Bandwidth: The paper highlights the difference between raw I/O bandwidth (actual data transfer rate to disk) and "perceived" bandwidth (the rate at which worker nodes can send data, effectively hiding I/O latency). Threaded rbIO achieves a much higher perceived bandwidth, which is what directly impacts application performance.
  • Minimal Impact on Computation: The threaded rbIO approach, when implemented correctly (e.g., using separate physical cores on systems like Blue Gene/P), has minimal impact on the computation time itself, allowing applications to run much faster overall.
  • Scalability is Key: The effectiveness of threaded rbIO is demonstrated across a wide range of processor counts, from 8K to 32K, showcasing its suitability for future exascale systems.

Key Results

  • Significant Performance Gains: Threaded rbIO achieved an application-perceived I/O performance of over 70 GB/s on Blue Gene/P and 50 GB/s on Cray XK6 (with raw bandwidths of 15 GB/s and 17 GB/s, respectively).
  • Reduced Simulation Time: The threaded rbIO approach significantly reduced the total simulation time by minimizing checkpoint blocking. On Jaguar (Cray XK6), the application speedup was estimated to be around 50% on 32K processors.
  • I/O Time Reduction: The I/O time per checkpoint step was dramatically reduced, with threaded rbIO taking less than 1 second compared to over 30 seconds for coIO (nf=1) on Blue Gene/P.
  • I/O Speedup: The I/O speedup of threaded rbIO over coIO was substantial, ranging from 7x to 13x on Jaguar.

Limitations and Future Work

  • Overhead on Writer Nodes: While threaded rbIO minimizes blocking, there is still some overhead associated with thread management and data aggregation on the writer nodes. The paper notes that on Jaguar, the compute time for threaded rbIO was slightly longer due to thread context switching overhead.
  • Tuning and Implementation Complexity: While the approach is described as straightforward to implement, achieving optimal performance may still require careful tuning of parameters like the number of I/O aggregators and files.
  • Future Work: The authors plan to further investigate the worker computation overhead in threaded rbIO and test the approach at even larger scales. They also suggest exploring the potential of this approach with the Scalable Checkpoint Restart (SCR) library and on future operating systems like Blue Gene/Q. The paper also mentions the potential for this approach to align with future storage architectures like burst buffers.

Summary updated

BibTeX
@inproceedings{fu2012i,
  author = {Jing Fu and Robert Latham and Misun Min and Christopher D. Carothers},
  title = {{I/O threads to reduce checkpoint blocking for an electromagnetics solver on Blue Gene/P and Cray XK6}},
  booktitle = {Ross@ics},
  year = {2012},
  doi = {10.1145/2318916.2318919},
}

Loading related content...

Figure