arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2102.01887cs.DC
收藏

Llama:用于自动调整视频分析管道的异构和无服务器框架

Llama: A Heterogeneous & Serverless Framework for Auto-Tuning Video Analytics Pipelines

Francisco Romero, Mark Zhao, Neeraja J. Yadwadkar, Christos Kozyrakis

摘要:

支持摄像头的设备和大型视频存储库的激增导致了各种视频分析应用程序的出现。这些应用程序依赖于视频管道(表示为操作的DAG)来转换视频,处理提取的元数据,并回答诸如“这个十字路口拥挤吗?“管道的延迟和资源效率可以使用每个操作的可配置旋钮来优化(例如,采样率、批量大小或所用硬件的类型)。然而,确定有效的配置是具有挑战性的,因为(a)配置搜索空间是指数地大的,以及(b)最优配置取决于用户的期望延迟和成本目标,(c)输入视频内容可以运用DAG中的不同路径并且产生可变量的中间结果。现有的视频分析和处理系统让用户手动配置操作和选择硬件资源。我们提出了Llama:一个用于自动调整视频管道的异构和无服务器框架。给定端到端延迟目标,Llama通过以下方式优化成本效率:(a)计算每个操作调用的延迟目标,以及(b)动态运行基于成本的优化器,以跨异构硬件分配最符合计算出的每次调用延迟目标的配置。这使得自动调整大型视频管道的问题变得易于处理,并允许我们处理依赖于输入的行为、DAG中的条件分支和执行可变性。我们描述了Llama中的算法,并使用无服务器CPU和GPU资源在云平台上对其进行评估。我们表明,与最先进的集群和无服务器视频分析和处理系统相比,Llama平均实现了7.8倍的延迟和16倍的成本降低。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑