PERSEUS: Characterizing Performance and Cost of Multi-Tenant Serving for CNN Models

Matthew LeMay, Shijian Li, Tian Guo · DOI

Abstract

Cloud-based AI inference often suffers from high costs due to GPU underutilization. This paper presents PERSEUS, a measurement framework designed to characterize the performance and cost trade-offs of multi-tenant serving for Convolutional Neural Network (CNN) models. By hosting multiple models on shared hardware, PERSEUS demonstrates that serving costs can be reduced by up to 12% while maintaining performance guarantees.

Introduction

Deploying deep learning models at scale typically involves expensive hardware accelerators like GPUs. Standard industry practice often allocates a single model to a dedicated server. However, dynamic or "bursty" real-world workloads frequently leave these resources under-capacity, leading to inflated operational costs.

The challenge lies in multi-tenant inference serving: allowing different models to share the same underlying hardware. This requires a deep understanding of the complex interactions between latency, throughput, and monetary cost when multiple models compete for resources.

The Perseus Framework

To address these challenges, the authors developed PERSEUS, a comprehensive measurement suite built upon the Nvidia TensorRT Inference Server.

The PERSEUS architecture integrates benchmark clients with industry-standard monitoring tools.

The architecture utilizes Docker containers for reproducibility and includes benchmark clients to simulate realistic traffic patterns. It integrates cAdvisor and Node exporter for hardware utilization tracking, with data aggregated in Prometheus and visualized via Grafana. The framework enables a rigorous comparison between CPU-only, dedicated GPU, and multi-tenant GPU serving scenarios.

Experimental Methodology

Experiments were conducted on Google Cloud Platform using n1-standard-8 instances with Nvidia Tesla P4 and T4 GPUs.

  • Workload: A subset of 6,908 images from the Open Images V3 Validation Dataset.
  • Models: Two representative CNNs—Inception-V3 (TensorFlow) and ResNet50 (Caffe2)—were used to evaluate how different architectures and frameworks interact under shared resource conditions.

Performance Insights

The study revealed several critical insights into CNN serving:

  • Static Specs vs. Runtime Reality: Model file size and parameter counts are unreliable predictors of actual runtime performance.
  • The "Cold Start" Penalty: Loading a model from disk to GPU memory is 67x to 1168x slower than executing an inference on a cached model. This underscores the necessity of efficient model caching strategies.
  • CPU vs. GPU Trade-offs: For single-request batches, Intel CPUs outperformed T4 GPUs by 3x for Inception-V3. However, GPUs dominate in throughput once batching is applied, achieving up to 12x higher peak performance.
  • Workload Balance: Multi-tenancy is most effective when models have similar request rates. Dominant traffic from one model can cause overhead that negates the benefits of sharing.

Cost and Scalability Analysis

The primary goal of multi-tenancy is cost optimization. PERSEUS provides a detailed view of how throughput relates to the cost per request across different hardware configurations.

Cost per request versus throughput for various GPU configurations and models.

Key findings include:

  • Cost Efficiency: Multi-tenant serving achieved up to a 12% cost reduction by mixing workloads on dual Nvidia P4 GPUs.
  • Resource Amortization: Increasing the number of GPUs per server can actually lower the cost per million requests (by ~14%) by better amortizing the fixed costs of CPU and RAM.
  • Framework Bottlenecks: Inefficiencies were noted in certain frameworks; for instance, Caffe2's CPU implementation struggled with batched requests, highlighting the importance of GPU-optimized paths.

Discussion and Future Directions

While PERSEUS successfully characterizes the benefits of multi-tenancy, it also identified scaling limits. At four GPUs, the server's gRPC endpoint became a bottleneck, rather than the GPUs themselves. Furthermore, the current study is limited to image classification CNNs.

Future work will focus on expanding model variety, including Large Language Models (LLMs), and developing dynamic orchestration systems that automatically balance model placement based on real-time traffic to maximize utilization and minimize cost.

Summary updated

Abstract

Deep learning models are increasingly used for end-user applications, supporting both novel features such as facial recognition, and traditional features, e.g. web search. To accommodate high inference throughput, it is common to host a single pre-trained Convolutional Neural Network (CNN) in dedicated cloud-based servers with hardware accelerators such as Graphics Processing Units (GPUs). However, GPUs can be orders of magnitude more expensive than traditional Central Processing Unit (CPU) servers. These resources could also be under-utilized facing dynamic workloads, which may result in inflated serving costs. One potential way to alleviate this problem is by allowing hosted models to share the underlying resources, which we refer to as multi-tenant inference serving. One of the key challenges is maximizing the resource efficiency for multi-tenant serving given hardware with diverse characteristics, models with unique response time Service Level Agreement (SLA), and dynamic inference workloads. In this paper, we present PERSEUS, a measurement framework that provides the basis for understanding the performance and cost trade-offs of multi-tenant model serving. We implemented PERSEUS in Python atop a popular cloud inference server called Nvidia TensorRT Inference Server. Leveraging PERSEUS, we evaluated the inference throughput and cost for serving various models and demonstrated that multi-tenant model serving led to up to 12% cost reduction.
BibTeX
@misc{lemay2019perseus,
  author = {Matthew LeMay and Shijian Li and Tian Guo},
  title = {{PERSEUS: Characterizing Performance and Cost of Multi-Tenant Serving for CNN Models}},
  year = {2019},
  eprint = {1912.02322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.02322},
}
Figure