Abstract
Nonblocking collective operations in MPI-3.0 aim to overlap communication with computation. However, traditional user-space implementations often require manual polling, leading to stalled communication during CPU-intensive tasks. This paper proposes a kernel-level offload mechanism using the Group Operation Assembly Language (GOAL). By executing collective dependency graphs within the Linux kernel, the system achieves true asynchronous progression via hardware interrupts. Experimental results on a 530-node cluster show that this approach provides near-perfect overlap and significantly reduces CPU overhead while maintaining competitive latency.
Introduction
In High-Performance Computing (HPC), collective operations like Barrier, All-to-All, and Reduce are critical for parallel application performance. While nonblocking versions of these collectives were introduced to allow background communication, their real-world performance is often limited by the need for application-level progression (polling). If an application is busy with a long, non-MPI-aware computation, communication stalls. Hardware offloading to Network Interface Cards (NICs) offers a solution but often lacks the flexibility needed for complex or custom communication patterns. This work explores moving the progression logic into the operating system kernel to bridge the gap between inflexible hardware and inefficient user-space polling.
System Architecture and Implementation
The core of the proposed system is the Group Operation Assembly Language (GOAL), which describes collectives as local dependency graphs of basic actions such as sends, receives, and local computations. The architecture consists of a user-space library to define these graphs and a kernel-level interpreter to execute them.
As shown in the workflow, the application compiles a GOAL schedule and passes it to the kernel via an ioctl() call. The kernel interpreter then manages the execution, reacting to incoming data via the network stack's receive hooks. This integration allows the kernel to trigger subsequent operations in the dependency graph immediately upon receiving required data, independent of the user-space application's state.
The GOAL network stack (Figure 5b) sits directly above the device driver, utilizing the Ethernet Streaming Protocol (ESP) for reliable transport. By bypassing the standard socket layers and hooking into the low-level recv_hook(), the GOAL interpreter ensures that progression is driven by hardware interrupts. This architecture enables true asynchrony, as the kernel can progress the collective even when the user-space process is 100% occupied with computation.
Evaluation and Results
The researchers evaluated the "ESPGOAL" implementation on the CHiC Cluster System (530 nodes) using NBCBench to measure overlap and CPU overhead.
- Superior Overlap: For
All-to-allandBarrieroperations, ESPGOAL achieved near-perfect overlap (approaching 1.0). In contrast, the user-space LibNBC library showed near-zero overlap because it could not progress during computation phases. - Reduced CPU Overhead: By moving protocol management to the kernel, ESPGOAL significantly lowered the absolute CPU overhead. This frees the host CPU to focus on scientific computation.
- Competitive Latency: Despite a minor latency penalty (~1.6 µs) introduced by Linux workqueues, the kernel-based barrier latency outperformed standard TCP and remained competitive with highly-tuned transports like Open-MX.
- Kernel-Level Math: Performing floating-point reductions inside the kernel using specialized macros actually outperformed user-space implementations for larger vector sizes.
Conclusion
Offloading collective operations to the OS kernel provides a flexible and efficient path to true asynchronous communication. By leveraging the kernel's inherent ability to handle interrupts, the GOAL framework ensures that communication progresses even during dense computation phases. While transport latency and workqueue overhead remain areas for optimization, the results demonstrate that kernel-level progression is a viable alternative to inflexible hardware offloading for modern HPC workloads.
Summary updated