[논문 리뷰] Llama: A Heterogeneous & Serverless Framework for Auto-Tuning Video Analytics Pipelines
Llama는 종단 간 지연 시간 목표를 기반으로 각 작업 호출에 대해 동적으로 구성 설정을 할당함으로써 최적의 지연 시간과 비용을 달성하는 이종적이고 서버리스 프레임워크이다. Llama는 여유 시간 기반 최적화, 일찍 시작하는 추측, CPU 및 GPU 간의 동적 자원 할당을 통해 최신 기술 시스템 대비 평균 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.
연구 동기 및 목표
- 다양한 하드웨어와 지연 시간 목표 간 수동으로 비디오 파이프라인 설정을 최적화하는 도전 과제를 해결하기 위해.
- 이종적 서버리스 백엔드에서 복잡하고 입력에 따라 달라지는 비디오 파이프라인을 비용 효율적이고 낮은 지연 시간으로 실행하기 위해.
- 각 파이프라인이나 입력 변형마다 반복적인 프로파일링이 필요 없이 설정 최적화를 자동화하기 위해.
- 종단 간 지연 시간 보장을 유지하면서도 비디오 분석 DAG 내 동적이고 조건부 실행 흐름을 처리하기 위해.
- 수동으로 제어 장치 설정을 조정하거나 자원을 적절히 크기 조정하는 사용자 부담을 줄이기 위해.
제안 방법
- Llama는 파이프라인 실행을 오프라인 사양 단계와 온라인 최적화 단계로 나눈다.
- 설정 예측을 위한 성능 모델을 구축하기 위해 각 작업에 대해 한 번만 프로파일링을 수행한다.
- 온라인 실행 중에 Llama는 종단 간 지연 시간 목표와 작업 간 의존성 기반으로 호출 수준의 여유 시간을 계산한다.
- 일찍 시작하는 추측과 늦은 커밋을 사용하여 배치를 안전하게 지연시키고 자원 낭비를 줄인다.
- 우선순위 기반 커밋은 여유 시간 제약이 더 엄격한 작업을 우선 처리함으로써 효율적인 스케줄링을 보장한다.
- 비용 기반 최적화기는 각 호출에 대해 지정된 여유 시간 목표를 충족시키기 위해 하드웨어 및 설정(예: 배치 크기, GPU/CPU)을 선택한다.
실험 결과
연구 질문
- RQ1종단 간 지연 시간과 비용 목표를 충족시키기 위해 이종적 서버리스 백엔드에서 비디오 분석 파이프라인을 자동으로 최적화하는 방법은 무엇인가?
- RQ2자동 최적화 과정에서 입력에 따라 달라지는 동적 실행 흐름과 조건부 분기 구조를 비디오 파이프라인에서 효율적으로 처리하는 방법은 무엇인가?
- RQ3반복적인 프로파일링 없이도 수동 설정 없이 저지연, 비용 효율적인 비디오 처리를 달성할 수 있는 서버리스 프레임워크는 가능한가?
- RQ4다양한 입력 워크로드와 하드웨어 이종성 조건 하에서 효율적인 설정 선택을 가능하게 하는 최적화 기법은 무엇인가?
- RQ5동적 여유 시간 계산과 추측 실행은 복잡한 DAG에서 파이프라인 성능을 어떻게 향상시키는가?
주요 결과
- Llama는 최신 기술 클러스터 및 서버리스 비디오 분석 시스템 대비 평균 7.8배 빠른 지연 시간을 달성한다.
- Llama는 동일한 지연 시간 목표 하에서 기존 시스템 대비 평균 16배 낮은 비용을 달성한다.
- 프레임워크는 호출당 오직 483 마이크로초의 오버헤드만 발생시켜 초당 2000회 이상의 호출을 처리할 수 있다.
- 추측에 필요한 시간은 단 5 마이크로초에 불과하여 설정 결정이 매우 효율적이다.
- Llama의 온라인 단계는 잘 스케일링된다: CPU 6대/GPU 1대에서 CPU 15대/GPU 3대로 자원을 증가시키면 성능이 25% 향상된다.
- 작업당 한 번만 수행되는 프로파일링(평균 257초) 덕분에 입력이나 파이프라인이 변경되더라도 재프로파일링이 필요 없다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.