Introduction
Modern supercomputers represent massive capital investments, yet they frequently suffer from chronic underutilization. Traditional High-Performance Computing (HPC) relies on a batch scheduling model where users request fixed node allocations for set durations. This rigid structure leads to significant resource waste through both external fragmentation (idle nodes between jobs) and internal fragmentation (underutilized resources within an allocated node). This paper explores a software-based approach to "resource disaggregation" by leveraging serverless computing to harvest these "trapped" resources.
The Challenge of Resource Fragmentation
Resource waste in HPC environments is pervasive. External fragmentation occurs when nodes sit idle for short intervals between large batch jobs—windows often too brief for standard schedulers to fill. Internal fragmentation happens when a job occupies an entire node but fails to utilize all its CPU cores or memory, leaving them unusable by other tasks.
As shown in the utilization logs from the Piz Daint supercomputer, significant portions of CPU and memory remain idle even during active periods. While hardware-level disaggregation (e.g., using CXL) is a potential solution, it requires specialized, expensive hardware. The authors propose achieving similar flexibility through a software-defined approach that moves computation to where the resources are.
Harvesting Idle Resources with rFaaS
The core of the proposed solution is rFaaS, an HPC-optimized Function-as-a-Service (FaaS) platform. Unlike cloud-based FaaS, rFaaS is designed for microsecond-scale invocation latencies using high-speed interconnects (RDMA via libfabric and uGNI).
By integrating rFaaS with the SLURM batch scheduler, the system can "claim" idle resources instantly and release them the moment a new batch job arrives. This enables several disaggregation patterns:
- CPU/GPU Co-location: Running short-lived functions on spare cores of nodes already running heavy MPI jobs.
- Remote Memory Service: Utilizing idle RAM on one node as a high-speed remote cache or paging area for another node via RDMA.
The Short-Window Opportunity
A key insight of this research is the temporal nature of idle resources. Analysis of system logs reveals that the vast majority of idle periods are extremely short, making them unsuitable for traditional batch scheduling but ideal for serverless workloads.
As illustrated in the histograms, approximately 70-80% of idle events last less than 10 minutes. Serverless functions, which can spin up and down in milliseconds, are perfectly suited to exploit these transient windows of availability. To prevent interference with primary workloads, the system uses performance modeling and containers (Singularity/Sarus) for isolation.
Key Results and Impact
The evaluation using standard HPC benchmarks (NAS, LULESH, MILC) and real-world simulations (OpenMC, Black-Scholes) demonstrated significant system-wide gains:
- Throughput Boost: Overall system throughput improved by up to 53%.
- Minimal Interference: Co-locating functions with primary MPI jobs resulted in negligible performance degradation for the main workload.
- Cost Efficiency: The authors demonstrated core-hour cost reductions of 11% to 25% by utilizing "spare" capacity.
- High-Performance I/O: The system supported remote memory traffic at speeds up to 1 GB/s with single-digit microsecond latency.
Conclusion and Future Work
Software-based resource disaggregation via rFaaS offers a cost-effective path to maximizing supercomputer efficiency without requiring hardware overhauls. While challenges remain regarding the manual refactoring of legacy code and potential network contention, the proposed "opt-in" symbiotic model provides a compelling framework for future high-efficiency HPC environments.
Summary updated