Skip to main content
QUICK REVIEW

[Paper Review] Torpor: GPU-Enabled Serverless Computing for Low-Latency, Resource-Efficient Inference

Minchen Yu, Ao Wang|arXiv (Cornell University)|Jun 6, 2023
Network Security and Intrusion DetectionComputer Science3 citations
TL;DR

FaaSwap is a GPU-enabled serverless inference platform that uses late binding and model swapping to enable pay-per-GPU-use billing and high GPU utilization. By dynamically swapping models between host memory and a shared GPU pool using asynchronous API redirection, pipelined execution, and efficient memory management, FaaSwap achieves low-latency inference and meets strict service-level objectives (SLOs) for over 1,000 functions on a 6-node testbed.

ABSTRACT

Serverless computing offers a compelling cloud model for online inference services. However, existing serverless platforms lack efficient support for GPUs, hindering their ability to deliver high-performance inference. In this paper, we present Torpor, a serverless platform for GPU-efficient, low-latency inference. To enable efficient sharing of a node's GPUs among numerous inference functions, Torpor maintains models in main memory and dynamically swaps them onto GPUs upon request arrivals (i.e., late binding with model swapping). Torpor uses various techniques, including asynchronous API redirection, GPU runtime sharing, pipelined model execution, and efficient GPU memory management, to minimize latency overhead caused by model swapping. Additionally, we design an interference-aware request scheduling algorithm that utilizes high-speed GPU interconnects to meet latency service-level objectives (SLOs) for individual inference functions. We have implemented Torpor and evaluated its performance in a production environment. Utilizing late binding and model swapping, Torpor can concurrently serve hundreds of inference functions on a worker node with 4 GPUs, while achieving latency performance comparable to native execution, where each model is cached exclusively on a GPU. Pilot deployment in a leading commercial serverless cloud shows that Torpor reduces the GPU provisioning cost by 70% and 65% for users and the platform, respectively.

Motivation & Objective

  • To address the lack of efficient GPU support in current serverless platforms, which leads to high startup overhead and poor GPU utilization.
  • To enable pay-per-GPU-use billing by avoiding long-lived GPU bindings and reducing idle GPU costs.
  • To meet individual inference functions' latency SLOs despite dynamic model swapping and shared GPU resources.
  • To design a system that operates without requiring detailed model-specific knowledge due to confidentiality constraints.
  • To achieve high GPU efficiency and low end-to-end latency through intelligent scheduling and system-level optimizations.

Proposed method

  • FaaSwap maintains inference models in main memory and dynamically swaps them onto a shared GPU pool upon request arrival, enabling late binding.
  • It uses asynchronous API redirection to decouple inference execution from model loading, reducing synchronization overhead.
  • Pipelined execution overlaps model swapping with inference computation, hiding swapping latency and improving throughput.
  • It leverages high-speed NVLink interconnects between GPUs for fast model transfers when beneficial and feasible.
  • An interference-aware request scheduler prioritizes requests based on SLOs and GPU load to ensure low-latency execution.
  • GPU runtime components are shared across functions to reduce per-function runtime overhead and improve resource efficiency.

Experimental results

Research questions

  • RQ1Can a serverless inference platform achieve low-latency performance without dedicating GPUs to individual functions?
  • RQ2How can model swapping between host memory and GPUs be optimized to minimize end-to-end latency in a shared GPU environment?
  • RQ3To what extent can GPU utilization be improved through dynamic model swapping while still meeting strict latency SLOs?
  • RQ4Can a system achieve SLO compliance without requiring detailed knowledge of model architectures or parameters?
  • RQ5How does the combination of asynchronous API redirection, pipelining, and intelligent scheduling impact overall system throughput and latency?

Key findings

  • FaaSwap can concurrently serve hundreds of inference functions on a single worker node with 4 V100 GPUs, achieving inference performance comparable to native execution on dedicated GPUs.
  • On a 6-node production testbed, FaaSwap successfully met the latency SLOs for over 1,000 functions, the maximum capacity of the testbed.
  • The ratio of SLO-compliant functions dropped significantly under NonSwap (from 800 functions) and SimpleSwap (with severe SLO violations), while FaaSwap maintained near-100% compliance.
  • FaaSwap reduced end-to-end latency tail by over 4× and 7× compared to SimpleSwap and NonSwap, respectively, under 1,000 concurrent functions.
  • FaaSwap achieved significantly lower per-worker GPU load variance than NonSwap and SimpleSwap, indicating superior load balancing across GPUs and nodes.
  • The platform achieved low-latency GPU pooling and model swapping through asynchronous API redirection and pipelined execution, effectively concealing swapping overhead.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.