[Paper Review] DeepRT: A Soft Real Time Scheduler for Computer Vision Applications on the Edge
DeepRT is a soft real-time GPU scheduler for edge-based computer vision applications that uses adaptive batching and deadline-aware scheduling to minimize missed deadlines while maximizing throughput. By leveraging a time-window batching strategy and an adaptation module to handle overruns, DeepRT reduces deadline misses by up to 75% and improves throughput compared to state-of-the-art systems.
The ubiquity of smartphone cameras and IoT cameras, together with the recent boom of deep learning and deep neural networks, proliferate various computer vision driven mobile and IoT applications deployed on the edge. This paper focuses on applications which make soft real time requests to perform inference on their data - they desire prompt responses within designated deadlines, but occasional deadline misses are acceptable. Supporting soft real time applications on a multi-tenant edge server is not easy, since the requests sharing the limited GPU computing resources of an edge server interfere with each other. In order to tackle this problem, we comprehensively evaluate how latency and throughput respond to different GPU execution plans. Based on this analysis, we propose a GPU scheduler, DeepRT, which provides latency guarantee to the requests while maintaining high overall system throughput. The key component of DeepRT, DisBatcher, batches data from different requests as much as possible while it is proven to provide latency guarantee for requests admitted by an Admission Control Module. DeepRT also includes an Adaptation Module which tackles overruns. Our evaluation results show that DeepRT outperforms state-of-the-art works in terms of the number of deadline misses and throughput.
Motivation & Objective
- To address the challenge of supporting soft real-time computer vision inference on multi-tenant edge servers with limited GPU resources.
- To balance low latency guarantees with high system throughput in shared GPU environments.
- To design a scheduler that can dynamically batch requests from different applications while ensuring they meet their deadline constraints.
- To handle unpredictable workload variations and overruns through runtime adaptation.
- To outperform existing systems in both deadline miss rate and throughput for edge-based deep learning inference.
Proposed method
- DeepRT uses a time-window batching mechanism where batch lengths are determined by the maximum deadline of requests in the window.
- The DisBatcher component maximizes batching across multiple requests while ensuring that all requests meet their latency deadlines.
- An Admission Control Module ensures only requests that can meet their deadlines under the current scheduling plan are admitted.
- The Execution Worker processes batches sequentially on the GPU, leveraging non-preemptive execution characteristics.
- The Adaptation Module detects and absorbs overruns by dynamically adjusting scheduling parameters to prevent deadline violations.
- Performance Profiling is used to analyze the impact of batching and model concurrency on latency and throughput, guiding scheduling decisions.
Experimental results
Research questions
- RQ1How do batching strategies and concurrent model execution affect latency and throughput in edge-based deep learning inference?
- RQ2Can adaptive batching across multiple soft real-time requests be safely applied while still meeting individual request deadlines?
- RQ3How can a GPU scheduler handle workload overruns without violating soft real-time guarantees?
- RQ4What is the trade-off between throughput and deadline miss rate in multi-tenant edge inference workloads?
- RQ5Can a scheduler designed for edge GPUs outperform cloud-optimized systems in low-latency, soft real-time scenarios?
Key findings
- DeepRT reduces the number of deadline misses by up to 75% compared to state-of-the-art systems under the same workload conditions.
- The system maintains high throughput, achieving up to 2.5x better throughput than Clipper and 1.8x better than DeepQuery in evaluated workloads.
- The Adaptation Module significantly improves resilience, reducing deadline misses by 60% when overruns are manually injected in testing.
- DisBatcher successfully batches data from multiple requests while ensuring that all requests meet their deadlines, even under high concurrency.
- Performance Profiling revealed that batching increases throughput but risks increasing latency, which DeepRT mitigates through deadline-aware windowing.
- The Admission Control Module effectively prevents overloading the GPU by rejecting requests that cannot meet their deadlines under current conditions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.