Skip to main content
QUICK 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 Science被引用 3
一句话总结

FaaSwap 是一个基于 GPU 的无服务器推理平台,通过延迟绑定和模型切换实现按 GPU 使用量计费并提升 GPU 利用率。通过使用异步 API 重定向、流水线执行和高效的内存管理,在主机内存与共享 GPU 资源池之间动态切换模型,FaaSwap 实现了低延迟推理,并在 6 个节点的测试环境中满足了超过 1,000 个函数的严格服务等级目标(SLO)。

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.

研究动机与目标

  • 为解决当前无服务器平台中缺乏高效 GPU 支持的问题,该问题导致启动开销高且 GPU 利用率低。
  • 通过避免长期绑定 GPU 来实现按 GPU 使用量计费,降低空闲 GPU 成本。
  • 在动态模型切换和共享 GPU 资源的条件下,仍能满足单个推理函数的延迟 SLO。
  • 设计一种系统,无需了解模型特定知识,以应对保密性约束。
  • 通过智能调度和系统级优化,实现高 GPU 效率和低端到端延迟。

提出的方法

  • FaaSwap 将推理模型保留在主内存中,并在请求到达时动态将其切换到共享 GPU 池,实现延迟绑定。
  • 它使用异步 API 重定向,将推理执行与模型加载解耦,降低同步开销。
  • 流水线执行将模型切换与推理计算重叠,隐藏切换延迟,提升吞吐量。
  • 在有利且可行的情况下,利用 GPU 之间的高速 NVLink 互连实现快速模型传输。
  • 一种干扰感知的请求调度器根据 SLO 和 GPU 负载优先处理请求,确保低延迟执行。
  • GPU 运行时组件在函数间共享,以减少每个函数的运行时开销,提升资源效率。

实验结果

研究问题

  • RQ1无服务器推理平台能否在不为单个函数专用 GPU 的情况下实现低延迟性能?
  • RQ2在共享 GPU 环境中,如何优化主机内存与 GPU 之间的模型切换,以最小化端到端延迟?
  • RQ3在仍满足严格延迟 SLO 的前提下,通过动态模型切换能将 GPU 利用率提升到何种程度?
  • RQ4系统能否在不依赖模型架构或参数详细知识的情况下实现 SLO 合规?
  • RQ5异步 API 重定向、流水线处理和智能调度的组合对整体系统吞吐量和延迟有何影响?

主要发现

  • FaaSwap 可在单个工作节点(配备 4 块 V100 GPU)上同时服务数百个推理函数,推理性能与专用 GPU 上的原生执行相当。
  • 在 6 个节点的生产环境测试平台中,FaaSwap 对超过 1,000 个函数成功满足了延迟 SLO,达到测试平台的最大容量。
  • 在 NonSwap(从 800 个函数下降)和 SimpleSwap(出现严重 SLO 违规)下,SLO 合规函数的比例显著下降,而 FaaSwap 维持了接近 100% 的合规率。
  • 在 1,000 个并发函数下,FaaSwap 相较于 SimpleSwap 和 NonSwap,将端到端延迟尾部降低超过 4 倍和 7 倍。
  • FaaSwap 的每工作节点 GPU 负载方差显著低于 NonSwap 和 SimpleSwap,表明 GPU 和节点间的负载均衡更优。
  • 通过异步 API 重定向和流水线执行,平台实现了低延迟 GPU 资源池化和模型切换,有效隐藏了切换开销。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。