Tales of the Tail
Authors:
Open Access
- 3 November 2014
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-14
Abstract
Interactive services often have large-scale parallel implementations. To deliver fast responses, the median and tail latencies of a service's components must be low. In this paper, we explore the hardware, OS, and application-level sources of poor tail latency in high throughput servers executing on multi-core machines. We model these network services as a queuing system in order to establish the best-achievable latency distribution. Using fine-grained measurements of three different servers (a null RPC service, Memcached, and Nginx) on Linux, we then explore why these servers exhibit significantly worse tail latencies than queuing models alone predict. The underlying causes include interference from background processes, request re-ordering caused by poor scheduling or constrained concurrency models, suboptimal interrupt routing, CPU power saving mechanisms, and NUMA effects. We systematically eliminate these factors and show that Memcached can achieve a median latency of 11 μs and a 99.9th percentile latency of 32 μs at 80% utilization on a four-core system. In comparison, a naïve deployment of Memcached at the same utilization on a single-core system has a median latency of 100 μs and a 99.9th percentile latency of 5 ms. Finally, we demonstrate that tradeoffs exist between throughput, energy, and tail latency.Keywords
Funding Information
- Division of Computer and Network Systems (CNS-1217597)
This publication has 15 references indexed in Scilit:
- Speeding up distributed request-response workflows2013
- The tail at scaleCommunications of the ACM, 2013
- Chronos2012
- Jockey2012
- Better never than late2011
- Wikipedia workload analysis for decentralized hostingComputer Networks, 2009
- Factored operating systems (fos)ACM SIGOPS Operating Systems Review, 2009
- Event-driven programming for robust software2002
- The part-time parliamentACM Transactions on Computer Systems, 1998
- Lazy receiver processing (LRP)1996