CARMA: Collocation-Aware Resource Manager with GPU Memory Estimator

Ehsan Yousefzadeh-Asl-Miandoab, Reza Karimzadeh, Bulat Ibragimov, Florina M. Ciorba, Pinar TözünarXiv 2025 · DOI · arXiv

Abstract

Modern deep learning (DL) clusters often suffer from significant GPU underutilization due to exclusive resource allocation policies. CARMA (Collocation-Aware Resource Manager) addresses this by safely packing multiple DL training tasks onto a single GPU. By integrating real-time hardware telemetry, predictive memory estimation, and a lightweight "catch-and-retry" recovery system, CARMA increases GPU utilization by over 50%, reduces total makespan by 35%, and lowers energy consumption by 15% without requiring code modifications from developers.

Introduction

Modern GPUs, such as the NVIDIA A100, provide immense parallel processing power and memory capacity. However, many standard DL tasks—particularly those involving smaller models or transfer learning—fail to fully utilize these resources. Conventional cluster managers like SLURM or Kubernetes typically allocate GPUs exclusively to one task at a time to avoid performance interference and Out-of-Memory (OOM) crashes. While collocation (sharing a GPU among multiple tasks) is a logical solution, the risk of system crashes and unpredictable performance degradation has historically limited its adoption in production environments.

System Architecture and Design

CARMA acts as an intermediary layer between users and hardware, managing task placement through four primary mechanisms:

  1. Fine-grained Telemetry: The system monitors low-overhead hardware metrics, including compute busy time (SMACT), warp occupancy (SMOCC), and memory bandwidth pressure (DRAMA). These metrics inform a "risk score" used to filter out GPUs that are too congested for additional tasks.
  2. TTFK-Awareness: Deep learning frameworks often involve a CPU-heavy data preparation phase before GPU kernels are launched. CARMA tracks this "Time-to-First-Kernel" (TTFK) to prevent the scheduler from over-packing a GPU during a task's initial idle period.
  3. Memory Estimation: To mitigate OOM risks, CARMA integrates estimators like Horus and FakeTensor to predict a model's memory footprint prior to execution.
  4. Lightweight Recovery: Recognizing that estimators are not infallible, CARMA implements a recovery loop. If a collocated task triggers an OOM, it is immediately moved to a high-priority recovery queue and relaunched on an exclusive, idle GPU.
The CARMA architecture, featuring real-time monitoring, task parsing, memory estimation, and a recovery mechanism.

Experimental Setup

The system was evaluated using workloads derived from the Philly Trace, a production dataset from Microsoft Research. The evaluation included two distinct traces (4 and 5 hours long) comprising 60 tasks each, covering architectures such as ResNet, EfficientNet, BERT, and GPT-2. Testing was conducted on a server with three NVIDIA A100 (40GB) GPUs.

Performance Evaluation

Compared to the standard "Exclusive" allocation approach, CARMA demonstrated substantial improvements across all key performance indicators. It increased Streaming Multiprocessor (SM) utilization by 54% and memory utilization by 62%.

Makespan and Total Energy consumption across different collocation policies and memory estimators for Trace 2.

Key Insights

  • Effectiveness of Recovery: A simple "try-and-recover" strategy proved remarkably effective. Since most OOMs occur early during the model warm-up phase, the cost of restarting a failed task is negligible compared to the throughput gains of successful collocation.
  • Estimator Pessimism: While memory estimators prevent crashes, they often overestimate requirements. This pessimism can occasionally block beneficial collocation opportunities, suggesting that a balance between estimation and recovery is optimal.
  • Energy Efficiency: Although collocation increases instantaneous power draw, the significant reduction in total execution time (makespan) results in a net energy saving of approximately 15%.
  • Quality of Service: While individual execution times may increase slightly due to resource sharing, the 95th percentile Job Completion Time (JCT) improved because tasks spent significantly less time waiting in the queue.

Conclusion

CARMA demonstrates that automated, risk-aware collocation is a viable path toward maximizing GPU efficiency in DL clusters. By combining predictive estimation with a robust recovery mechanism, it achieves significant gains in throughput and energy efficiency. Future work will focus on scaling these mechanisms to multi-server clusters and optimizing for latency-sensitive inference workloads.

Summary updated

BibTeX
@misc{yousefzadehaslmiandoab2025carma,
  author = {Ehsan Yousefzadeh-Asl-Miandoab and Reza Karimzadeh and Bulat Ibragimov and Florina M. Ciorba and Pinar Tözün},
  title = {{CARMA: Collocation-Aware Resource Manager with GPU Memory Estimator}},
  year = {2025},
  eprint = {2508.19073},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.19073},
}
Figure