DynIMS: A Dynamic Memory Controller for In-memory Storage on HPC Systems

Pengfei Xuan, Feng Luo, Rong Ge, Pradip K. Srimani

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.

DynIMS System Architecture

The system architecture consists of four primary components:

  • Monitoring Agents: Utilizing collectd to gather per-node memory metrics.
  • Messaging Bus: An Apache Kafka layer for low-latency metric transport.
  • Stream Processor: An Apache Flink engine 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.

Performance comparison across problem sizes

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

BibTeX
@misc{xuan2016dynims,
  author = {Pengfei Xuan and Feng Luo and Rong Ge and Pradip K. Srimani},
  title = {{DynIMS: A Dynamic Memory Controller for In-memory Storage on HPC Systems}},
  year = {2016},
  eprint = {1609.09294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.09294},
}
Figure