...
首页> 外文期刊>Operating systems review >Lockless Multi-Core High-Throughput Buffering Scheme for Kernel Tracing
【24h】

Lockless Multi-Core High-Throughput Buffering Scheme for Kernel Tracing

机译:内核跟踪的无锁多核高吞吐量缓冲方案

获取原文
获取原文并翻译 | 示例

摘要

Studying execution of concurrent real-time online systems, to identify far-reaching and hard to reproduce latency and performance problems, requires a mechanism able to cope with voluminous information extracted from execution traces. Furthermore, the workload must not be disturbed by tracing, thereby causing the problematic behavior to become unreproducible. In order to satisfy this low-disturbance constraint, we created the LTTng kernel tracer. It is designed to enable safe and race-free attachment of probes virtually anywhere in the operating system, including sites executed in non-maskable interrupt context. In addition to being reentrant with respect to all kernel execution contexts, LTTng offers good performance and scalability, mainly due to its use of per-CPU data structures, local atomic operations as main buffer synchronization primitive, and RCU (Read-Copy Update) mechanism to control tracing. Given that kernel infrastructure used by the tracer could lead to infinite recursion if traced, and typically requires non-atomic synchronization, this paper proposes an asynchronous mechanism to inform the kernel that a buffer is ready to read. This ensures that tracing sites do not require any kernel primitive, and therefore protects from infinite recursion. This paper presents the core of LTTng's buffering algorithms and measures its performance.
机译:研究并发实时在线系统的执行以识别影响深远且难以重现的延迟和性能问题,需要一种能够处理从执行跟踪中提取的大量信息的机制。此外,一定不能通过跟踪来干扰工作负载,从而使有问题的行为变得不可重现。为了满足这种低干扰的约束,我们创建了LTTng内核跟踪器。它旨在在操作系统的几乎任何位置(包括在不可屏蔽的中断上下文中执行的站点)实现安全,无竞争的探针连接。除了在所有内核执行上下文方面都是可重入的,LTTng还提供了良好的性能和可伸缩性,这主要是因为它使用了按CPU的数据结构,作为主缓冲区同步原语的本地原子操作以及RCU(读-复制更新)机制。控制跟踪。考虑到跟踪程序使用的内核基础结构如果被跟踪可能导致无限递归,并且通常需要非原子同步,因此本文提出了一种异步机制来通知内核缓冲区已准备就绪。这样可以确保跟踪站点不需要任何内核原语,因此可以防止无限递归。本文介绍了LTTng缓冲算法的核心并衡量其性能。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号