Skip to main content
QUICK REVIEW

[论文解读] Long-term Monitoring of Kernel and Hardware Events to Understand Latency Variance

Fang Zhou, Huang, Yuyang|arXiv (Cornell University)|Jan 15, 2026
Software System Performance and ReliabilityComputer Science被引用 0
一句话总结

本文介绍 VarMRI,一种长期监控工具链,记录选择性的内核和硬件事件以分析延迟方差和尾部延迟,并报告六个应用的3,000小时研究。

ABSTRACT

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.

研究动机与目标

  • 理解由应用层不可见的内核和硬件事件所引起的延迟方差的需要 Motivate the need to understand latency variance caused by kernel and hardware events that are invisible at the application level.
  • 提出 VarMRI 作为一个选择性、线程粒度的记录系统,以在最小化开销的同时实现有意义的分析。
  • 开发一种高效的离线分析方法,在不强依赖数据假设的情况下量化事件对延迟的影响。

提出的方法

  • 以线程粒度记录内核和硬件事件的累计值,以最小化 I/O 开销。
  • 维护每线程和每核心的影子结构以跟踪记录状态和事件长度,包括复杂的中断抢占。
  • 计算一个影响值,用于估计减少某事件高值对降低延迟方差的程度。
  • 基于事件值的CDF执行逐线拟合,并结合领域知识规则推断事件之间的因果关系。
  • 允许选择性记录并基于时期切换,以在开销与数据有用性之间取得平衡。
Figure 1 . The architecture of VarMRI.
Figure 1 . The architecture of VarMRI.

实验结果

研究问题

  • RQ1哪些内核和硬件事件会在长时间运行的工作负载中对延迟方差和尾部延迟产生影响?
  • RQ2在保持对数据缺失具有鲁棒性的同时,如何以低开销地记录和分析这些事件?
  • RQ3在不强模型假设的情况下,如何量化单个事件对延迟方差的影响?

主要发现

  • VarMRI 在 CloudLab 上对六个应用进行了3,000小时研究,揭示了导致尾部延迟的多样事件,以及简单优化可将尾部延迟降低多达31%。
  • 中断抢占、Java GC、流水线停滞和 NUMA 调度等事件对延迟方差有影响。
  • 某些事件的影响在不同实验中存在差异,强调需要长期监控和选择性记录。
  • 选择性记录(如 Memcached 请求的1%)在减少跟踪开销的同时对 p99 延迟或吞吐量几乎无观察到的影响。
  • 先记录累计值,再对有问题的事件进行详细时间或栈采样,大幅降低开销同时保留分析价值。
Figure 5 . Loop bench experiments.
Figure 5 . Loop bench experiments.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。