Skip to main content
QUICK REVIEW

[论文解读] Llama: A Heterogeneous & Serverless Framework for Auto-Tuning Video Analytics Pipelines

Francisco Romero, Mark Zhao|arXiv (Cornell University)|Feb 3, 2021
Advanced Neural Network ApplicationsComputer Science参考文献 50被引用 17
一句话总结

Llama 是一个异构的无服务器框架,通过根据端到端延迟目标动态分配每次操作调用的配置,自动调优视频分析流水线以实现最低延迟和最低成本。它通过基于松弛度的优化、早期推测和跨 CPU 与 GPU 的动态资源分配,相比最先进系统实现 7.8 倍的延迟降低和 16 倍的成本减少。

ABSTRACT

The proliferation of camera-enabled devices and large video repositories has led to a diverse set of video analytics applications. These applications rely on video pipelines, represented as DAGs of operations, to transform videos, process extracted metadata, and answer questions like, "Is this intersection congested?" The latency and resource efficiency of pipelines can be optimized using configurable knobs for each operation (e.g., sampling rate, batch size, or type of hardware used). However, determining efficient configurations is challenging because (a) the configuration search space is exponentially large, and (b) the optimal configuration depends on users' desired latency and cost targets, (c) input video contents may exercise different paths in the DAG and produce a variable amount intermediate results. Existing video analytics and processing systems leave it to the users to manually configure operations and select hardware resources. We present Llama: a heterogeneous and serverless framework for auto-tuning video pipelines. Given an end-to-end latency target, Llama optimizes for cost efficiency by (a) calculating a latency target for each operation invocation, and (b) dynamically running a cost-based optimizer to assign configurations across heterogeneous hardware that best meet the calculated per-invocation latency target. This makes the problem of auto-tuning large video pipelines tractable and allows us to handle input-dependent behavior, conditional branches in the DAG, and execution variability. We describe the algorithms in Llama and evaluate it on a cloud platform using serverless CPU and GPU resources. We show that compared to state-of-the-art cluster and serverless video analytics and processing systems, Llama achieves 7.8x lower latency and 16x cost reduction on average.

研究动机与目标

  • 解决在不同硬件和延迟目标下手动调优视频流水线配置的挑战。
  • 实现在异构无服务器后端上复杂、输入依赖的视频流水线的低成本、低延迟执行。
  • 在无需为每个流水线或输入变化重复性能分析的情况下,自动化配置调优。
  • 在保持端到端延迟保证的前提下,支持视频分析 DAG 中的动态、条件执行流程。
  • 通过消除手动调整控制参数和资源容量规划,减轻用户负担。

提出的方法

  • Llama 将流水线执行划分为离线指定阶段和在线优化阶段。
  • 它对每个操作进行一次性能分析,以建立用于配置预测的性能模型。
  • 在在线执行期间,Llama 根据端到端延迟目标和操作依赖关系计算调用级别的松弛度。
  • 它使用早期推测和延迟提交,安全地延迟批处理,减少资源浪费。
  • 基于优先级的提交机制通过优先处理松弛约束更紧的操作,实现高效的调度。
  • 基于成本的优化器为每次调用选择硬件和配置(例如,批处理大小、GPU/CPU),以满足其松弛目标。

实验结果

研究问题

  • RQ1如何在异构无服务器后端上自动调优视频分析流水线,以满足端到端延迟和成本目标?
  • RQ2在自动调优过程中,如何高效处理视频流水线中动态的、依赖输入的执行流程和条件分支?
  • RQ3无服务器框架是否能在无需手动配置或重复性能分析的情况下,实现低延迟和高成本效率的视频处理?
  • RQ4哪些优化技术能够在可变输入工作负载和硬件异构性下实现高效的配置选择?
  • RQ5动态松弛度计算和推测执行如何提升复杂 DAG 中流水线的性能?

主要发现

  • 与最先进的集群和无服务器视频分析系统相比,Llama 将平均延迟降低了 7.8 倍。
  • 在相同延迟目标下,Llama 相比现有系统实现了平均 16 倍的成本降低。
  • 该框架每次调用仅引入 483 微秒的开销,支持每秒超过 2000 次调用。
  • 推测仅需 5 微秒,使配置决策极为高效。
  • Llama 的在线阶段具有良好的可扩展性:当资源从 6 CPU/1 GPU 增加到 15 CPU/3 GPU 实例时,性能提升 25%。
  • 单次操作性能分析(平均耗时 257 秒)消除了在输入或流水线变更时重新分析的需求。

阅读本论文

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

在 Nubint 中阅读本论文

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