[Paper Review] Long-term Monitoring of Kernel and Hardware Events to Understand Latency Variance
This paper introduces VarMRI, a long-term monitoring tool chain that records selective kernel and hardware events to analyze latency variance and tail latencies, and reports a 3,000-hour study across six applications.
This paper presents our experience to understand latency variance caused by kernel and hardware events, which are often invisible at the application level. For this purpose, we have built VarMRI, a tool chain to monitor and analyze those events in the long term. To mitigate the "big data" problem caused by long-term monitoring, VarMRI selectively records a subset of events following two principles: it only records events that are affecting the requests recorded by the application; it records coarse-grained information first and records additional information only when necessary. Furthermore, VarMRI introduces an analysis method that is efficient on large amount of data, robust on different data set and against missing data, and informative to the user. VarMRI has helped us to carry out a 3,000-hour study of six applications and benchmarks on CloudLab. It reveals a wide variety of events causing latency variance, including interrupt preemption, Java GC, pipeline stall, NUMA balancing etc.; simple optimization or tuning can reduce tail latencies by up to 31%. Furthermore, the impacts of some of these events vary significantly across different experiments, which confirms the necessity of long-term monitoring.
Motivation & Objective
- Motivate the need to understand latency variance caused by kernel and hardware events that are invisible at the application level.
- Propose VarMRI as a selective, thread-granularity recording system to minimize overhead while enabling meaningful analysis.
- Develop an efficient offline analysis method to quantify the impact of events on latency without strong data assumptions.
Proposed method
- Record cumulative values of kernel and hardware events at thread granularity to minimize I/O overhead.
- Maintain per-thread and per-core shadow structures to track recording state and event lengths, including complex interrupt preemption.
- Compute an impact value that estimates how much reducing high values of an event would decrease latency variance.
- Use line-based curve fitting on event value CDFs and domain-specific rules to infer causal relationships among events.
- Allow selective recording with epoch-based switching to balance overhead and data usefulness.

Experimental results
Research questions
- RQ1What kernel and hardware events contribute to latency variance and tail latency in long-running workloads?
- RQ2How can we record and analyze these events with low overhead while remaining robust to missing data?
- RQ3How can we quantify the impact of individual events on latency variance without strong model assumptions?
Key findings
- VarMRI enables a 3,000-hour study across six applications on CloudLab, revealing diverse events that cause tail latencies and that simple optimizations can reduce tail latency by up to 31%.
- Interrupt preemption, Java GC, pipeline stalls, and NUMA balancing are among the events found to influence latency variance.
- The impact of certain events varies across experiments, underscoring the need for long-term monitoring and selective recording.
- Selective recording (e.g., 1% of Memcached requests) reduces trace overhead with minimal observable impact on p99 latency or throughput.
- Recording cumulative values first, then sampling detailed timing or stacks for problematic events, significantly reduces overhead while preserving analytical value.

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.