Introduction
Modern High-Performance Computing (HPC) environments face a growing conflict between traditional compute-heavy simulations and modern data-intensive frameworks like Apache Spark. Compute jobs require large amounts of DRAM to avoid performance degradation from disk swapping, while data frameworks utilize local DRAM as a high-speed storage layer (e.g., via Alluxio) to accelerate processing. Currently, static memory partitioning is the norm, leading to either memory starvation for compute tasks or wasted "white space" when compute jobs are not at peak usage.
The DynIMS Architecture
To address this, we present DynIMS (Dynamic In-Memory Storage controller), a system that treats memory allocation as a control theory problem. DynIMS dynamically adjusts in-memory storage capacity in real-time based on the immediate needs of HPC applications.
The system architecture consists of four primary components:
- Monitoring Agents: Utilizing
collectdto gather per-node memory metrics. - Messaging Bus: An
Apache Kafkalayer for low-latency metric transport. - Stream Processor: An
Apache Flinkengine that aggregates data and calculates optimal storage limits. - Memory Controller: A
Vert.x-based service that instructs the storage layer (Alluxio) to resize its cache.
Control Methodology
DynIMS employs a feedback-based control loop. It monitors the memory utilization ratio ($r_i$) against a target threshold (typically 95%). When an HPC job's memory pressure increases, the controller aggressively shrinks the Alluxio cache to prevent the system from hitting the "performance cliff"—a state where swapping to disk causes performance to plummet by orders of magnitude. Conversely, when pressure subsides, DynIMS expands the cache to maximize data-intensive task performance.
Key Results and Performance
Evaluation on the Palmetto HPC cluster demonstrated that DynIMS effectively exploits idle memory "white space." By dynamically borrowing unused memory for data caching, DynIMS achieved up to a 5x performance improvement for Spark applications compared to static configurations.
Key findings include:
- Cache Efficiency: In-memory hit rates reached up to 75%, compared to ~31% with static allocation.
- Robust Protection: The sub-second response time of the controller successfully protected compute jobs from crashing during memory bursts.
- Low Overhead: The distributed architecture (Kafka/Flink) allows for cluster-wide management with less than 10% CPU overhead on a single core.
Conclusion
DynIMS resolves the resource contention between HPC and big data workloads by replacing static partitioning with a responsive, feedback-driven controller. Future work will focus on scaling to larger clusters and integrating more sophisticated cache eviction policies.
Summary updated