Millipede: Easy Parallel Programming in Available Distributed Environments (Extended Abstract)

Roy Friedman, Maxim Goldin, Ayal Itzkovitz, Assaf Schuster

Abstract

Millipede is a generic run-time system designed to bridge the gap between high-level parallel programming languages and distributed workstation clusters. By acting as a "virtual machine" layer, Millipede decouples high-level languages from underlying hardware, providing a unified set of runtime constructs for memory management and task synchronization. This architecture allows developers to port diverse languages—including Java, C++, and Fortran—to workstation clusters with minimal compiler modifications. This paper outlines the system's design, its support for multiple consistency models, and its performance across various computational benchmarks.

Introduction

In the mid-1990s, the increasing speed of local area networks (LANs) made clusters of workstations a viable alternative to traditional supercomputers. However, the software ecosystem for these "poor man’s supercomputers" remained fragmented. Most run-time systems were vertically integrated, supporting only a single parallel programming language. Developers wishing to use a different language were often forced to either rewrite their applications or build complex, low-level run-time systems from scratch to handle distributed shared memory (DSM), load balancing, and synchronization.

Millipede addresses this fragmentation by providing a generic, language-independent system that supports multiple parallel paradigms under a single framework.

System Architecture and Methods

The core philosophy of Millipede is to provide a "flexible interface" of basic constructs sufficient for most parallel programming requirements. Rather than building a language-specific runtime, the authors developed a library of routines that handle the fundamental complexities of distributed computing:

  • Distributed Shared Memory (DSM): Millipede supports multiple consistency models, including strong, weak, and release consistency, allowing developers to choose the model that best fits their application's performance and complexity needs.
  • Parallel Activity Management: The system provides primitives for task creation and termination, such as pparblock for explicit task definition and pparfor for parallelizing loops.
  • Synchronization: Millipede includes atomic operations such as fetch-and-add (faa) and test-and-set (tss), alongside standard semaphores.
  • Load Balancing: To maximize cluster utilization, the system employs various schemes to migrate tasks dynamically between nodes.

To integrate a language with Millipede, a developer only needs to modify the language's compiler or preprocessor to map native parallel primitives to these standardized library calls.

Performance Evaluation

The system was evaluated using several computational benchmarks to test different data access and communication patterns:

  1. Matrix Multiplication: A compute-heavy task used to measure raw throughput.
  2. Shortest Distance in Graphs: A test of irregular data access patterns.
  3. Traveling Salesperson Problem (TSP): A combinatorial optimization problem.
  4. Linear Equation Solver: A test of communication-heavy synchronization.

Key Results

The evaluation revealed a "threshold effect," where the overhead of the generic runtime became negligible as problem sizes increased. For matrix multiplication and shortest-path algorithms, Millipede achieved nearly linear speedup (e.g., 4x faster on 4 nodes) once the problem size exceeded 400 elements. The Traveling Salesperson Problem achieved a 60% speedup on 3 nodes.

However, the linear equation solver showed only marginal speedup. This result highlights a persistent challenge for generic distributed run-times: communication-heavy tasks often struggle with the latency inherent in workstation clusters compared to specialized supercomputing hardware.

Portability and Implementation

A primary success of the Millipede project is its versatility. The authors successfully demonstrated support for a wide range of languages, including ParC, CParPar (C++), Java, and Par-Fortran 90. While the system was initially fully implemented on the MACH microkernel, development for Windows-NT was also undertaken to broaden its applicability to common office environments.

Conclusion and Future Work

Millipede demonstrates that the "heavy lifting" of parallel computing—managing memory consistency and load balancing—is largely independent of language syntax. By abstracting these concerns into a generic library, the system makes distributed computing significantly more accessible.

Future work focuses on reducing implementation-level overhead and introducing fault tolerance, a critical requirement for maintaining stability in very large clusters where node failures are common. Additionally, the team aims to extend support to other parallel frameworks such as Cilk and Split-C.

Summary updated

BibTeX
@inproceedings{friedman1996millipede,
  author = {Roy Friedman and Maxim Goldin and Ayal Itzkovitz and Assaf Schuster},
  title = {{Millipede: Easy Parallel Programming in Available Distributed Environments (Extended Abstract)}},
  booktitle = {Euro-Par, Vol. I},
  year = {1996},
  doi = {10.1007/3-540-61626-8\_10},
}
Figure