[Paper Review] Serving DNNs like Clockwork: Performance Predictability from the Bottom Up
Clockwork shows that DNN inference has deterministic execution on GPUs and designs a centralized controller plus per-GPU workers to achieve predictable end-to-end latency, meeting tight SLOs for thousands of models. It debuts a predictive, bottom-up architecture that minimizes tail latency by constraining where variability can occur.
Machine learning inference is becoming a core building block for interactive web applications. As a result, the underlying model serving systems on which these applications depend must consistently meet low latency targets. Existing model serving architectures use well-known reactive techniques to alleviate common-case sources of latency, but cannot effectively curtail tail latency caused by unpredictable execution times. Yet the underlying execution times are not fundamentally unpredictable - on the contrary we observe that inference using Deep Neural Network (DNN) models has deterministic performance. Here, starting with the predictable execution times of individual DNN inferences, we adopt a principled design methodology to successively build a fully distributed model serving system that achieves predictable end-to-end performance. We evaluate our implementation, Clockwork, using production trace workloads, and show that Clockwork can support thousands of models while simultaneously meeting 100ms latency targets for 99.9999% of requests. We further demonstrate that Clockwork exploits predictable execution times to achieve tight request-level service-level objectives (SLOs) as well as a high degree of request-level performance isolation.
Motivation & Objective
- Demonstrate that DNN inference exhibits deterministic execution times on GPUs.
- Propose a design principle of consolidating choice to preserve predictability in a distributed serving system.
- Present Clockwork's architecture with a centralized controller and predictable workers.
- Evaluate Clockwork on production-like workloads and compare to prior systems on latency and throughput.
Proposed method
- Argue and quantify the determinism of individual DNN inferences on GPUs.
- Propose consolidating choices in upper layers to constrain lower-layer variability (restricting scheduling and memory management decisions).
- Implement Clockwork with a central controller and per-GPU workers that execute one Load and one Infer action at a time.
- Use a model-runtime built atop TVM to compile and run user models with pre-allocated memory and static workspaces.
- Enforce a strict action-based interface (Load, Unload, Infer) with earliest/latest execution windows and no best-effort remediation.
- Evaluate with production trace workloads, measuring latency targets and model count scalability.
Experimental results
Research questions
- RQ1Can DNN inferences be treated as predictable, deterministic executions on GPUs in a distributed serving setting?
- RQ2How can system design choices be consolidated to preserve predictable performance as workloads scale across many models?
- RQ3Does Clockwork achieve tight end-to-end latency SLOs and strong per-request isolation while supporting thousands of models per GPU?
- RQ4What is the trade-off between predictability and modularity when centralizing scheduling decisions?
- RQ5How does Clockwork compare to prior model serving systems in latency, goodput, and model sharing?
Key findings
- Inference latency in isolation is highly predictable (99.99th percentile within a small delta of median on a v100 GPU).
- A centralized controller with one-at-a-time Infer actions greatly reduces variability caused by GPUs, OS, and other layers, improving tail latency.
- Clockwork can support thousands of models per GPU while meeting sub-100 ms latency for 99.9999% of requests under realistic workloads.
- Consolidating choice reduces need for best-effort mechanisms and enables proactive, schedulable execution.
- Clockwork compares favorably to Clipper and INFaaS in meeting latency goals while achieving similar or better goodput and resource sharing.
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.