Abstract
Parallel scripting is a loosely-coupled programming model in which applications are composed of highly parallel scripts of program invocations that process and exchange data via files. We characterize here the applications that can benefit from parallel scripting on petascale-class machines, describe the mechanisms that make this feasible on such systems, and present results achieved with parallel scripts on currently available petascale computers.
Introduction
As high-performance computing (HPC) enters the petascale era, the dominant programming paradigm remains the Message Passing Interface (MPI). While MPI is ideal for tightly coupled simulations, a growing class of scientific workloads—including parameter sweeps, ensemble studies, and massive data processing pipelines—are "loosely coupled." These "many-task" applications involve running thousands or millions of independent tasks that communicate primarily through file exchange.
Executing these workloads on petascale systems faces two primary challenges. First, traditional batch schedulers are optimized for a small number of long-running jobs; submitting millions of short tasks causes these schedulers to fail. Second, the lightweight kernels typically found on supercomputer compute nodes (such as the IBM Blue Gene/P) often lack standard POSIX features like fork() and exec(), which are essential for standard scripting languages to launch external programs.
The Three-Layer Architecture for Parallel Scripting
To address these hurdles, the authors developed a hierarchical architecture that enables high-level scripting to scale to hundreds of thousands of cores. This system consists of three integrated layers:
- ZeptoOS (The POSIX Foundation): By replacing or augmenting native compute node kernels with ZeptoOS, the researchers provide a high-performance Linux environment. This environment supports the full
fork/execsemantics required to dynamically launch application binaries. - Falkon (The Multi-level Scheduler): Falkon serves as a resource provisioner and high-throughput task dispatcher. Instead of overwhelming the system scheduler, Falkon requests a large block of nodes as a single job. It then deploys persistent agents across these nodes to rapidly pull and execute tasks from a lightweight queue, bypassing the overhead of the primary batch system.
- Swift (The Scripting Language): Swift provides a functional, dataflow-driven interface for users. It treats external programs as functions and files as variables. By utilizing "single-assignment" variables, Swift automatically determines data dependencies and parallelizes independent tasks without requiring the user to write complex synchronization code.
Applications and Evaluation
The framework was evaluated using both synthetic stress tests and real-world scientific applications across diverse fields. Key application domains include:
- Biochemistry: Protein-folding simulations using the DOCK application.
- Astronomy: Creating large-scale image montages.
- Bioinformatics: Metagenomic modeling and integer programming.
- Climate Science: Analyzing ensemble model outputs.
- Neuroscience: Processing functional MRI (fMRI) datasets.
These applications demonstrate the versatility of the parallel scripting model, allowing scientists to achieve petascale parallelism by simply wrapping their existing, single-core legacy codes in Swift scripts.
Performance and Scaling Results
The integration of Swift and Falkon demonstrated remarkable performance on the Blue Gene/P (BG/P) supercomputer. The system achieved task dispatch rates exceeding 3,000 tasks per second and proved capable of launching 160,000 tasks across a 160,000-core scale in less than one minute.
In a significant real-world test using the DOCK biochemistry application, the system executed approximately 913,000 tasks on 116,000 cores within a two-hour window. This run represented over 21 CPU years of computation, achieved with 99.7% efficiency and 99.6% utilization of the allocated resources.
To further test the limits of the architecture, the researchers successfully executed one billion trivial tasks over an 18-hour period, confirming the system's stability and minimal management overhead.
Conclusion and Future Directions
This research demonstrates that parallel scripting is a viable and highly efficient programming model for petascale computing. By decoupling task management from the underlying hardware constraints, researchers can leverage massive computational power without the need for extensive code refactoring.
The primary remaining challenge is data movement. As task counts scale, the shared global filesystem can become a bottleneck. Future work focuses on "collective" data management techniques to coordinate I/O operations more effectively, ensuring that data-intensive "many-task" applications can continue to scale alongside compute capacity.
Summary updated