Linux Plumbers Conference 2012 LTTngTop: Human-Readable Trace Viewer - - PowerPoint PPT Presentation

linux plumbers conference 2012
SMART_READER_LITE
LIVE PREVIEW

Linux Plumbers Conference 2012 LTTngTop: Human-Readable Trace Viewer - - PowerPoint PPT Presentation

Linux Plumbers Conference 2012 LTTngTop: Human-Readable Trace Viewer Julien Desfossez <jdesfossez@efficios.com> J u l i e n D e s f o s s e z A u g u s t 3 0 t h , 2 0 1 2 1 > Presenter Julien


slide-1
SLIDE 1

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 1

Linux Plumbers Conference 2012

LTTngTop: Human-Readable Trace Viewer Julien Desfossez <jdesfossez@efficios.com>

slide-2
SLIDE 2

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 2

> Presenter

  • Julien Desfossez
  • EfficiOS Inc.
  • http://www.efficios.com
  • Part of the LTTng Team :
  • lttng-tools, lttng-modules, lttng-ust, babeltrace
  • Author of LttngTop
slide-3
SLIDE 3

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 3

> Content

  • LTTng 2.0 features
  • LTTngTop overview
  • Work in progress
  • Demo
  • Future
slide-4
SLIDE 4

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 4

> LTTng 2.x features

  • Low-impact kernel and user-space tracer
  • TRACE_EVENT support
  • Perf PMU counters support
  • Kprobes support
slide-5
SLIDE 5

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 5

> LTTngTop Overview

  • Sysadmin-oriented kernel trace viewer
  • Gather statistics only from kernel events (no

constant /proc hammering)

  • Lightweight and console-based (ncurses)
  • top-like look and feel
  • CPU usage, I/O statistics, Perf PMU counters

evolution per-process

slide-6
SLIDE 6

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 6

> LTTngTop Overview

  • Replay the recorded trace at the same rate it

happened

  • Pause and navigate back and forth in the

history

  • Display the state of the system at any point in

time (CPU usage, opened files, bandwidth, process creation/termination, etc)

slide-7
SLIDE 7

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 7

> LTTngTop use-cases

  • Sysadmin

– Hard to reproduce bugs (happens sometimes,

disappears by itself)

– Detailled statistics per-process at any point in

time (including opened files)

  • Developper

– Quickly isolate interesting events from a given

trace and then read its text dump?

slide-8
SLIDE 8

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 8

  • Live tracing/viewing !
  • Containers support (LXC) :

– vpid/vtid/vppid – nesting and hierarchy support

  • Viewer-side filtering :

– selected processes (with/without childs) – selected container (with/without nesting)

> LTTngTop Work in Progress

slide-9
SLIDE 9

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 9

  • “Attach” to a live process (graphical and

textdump like strace without ptrace overhead)

  • CPU hotplug support
  • On-the-fly Perf PMU counters activation
  • On-the-fly kprobe registration (and hit stats)

> LTTngTop Work in Progress

slide-10
SLIDE 10

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 1

> LTTngTop Demo

slide-11
SLIDE 11

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 1 1

  • More analysis modules (feedbacks and

suggestions welcomed !)

– Separate disk vs network I/O – Disk latency analysis

  • Clean integration of the live tracing feature with

lttng-tools and babeltrace

> LTTngTop Future

slide-12
SLIDE 12

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 1 2

  • Separate the analysis modules from the core to

allow the use in “desktop widgets”, snmpd, etc.

  • Large-scale data center use-cases :

– Remote traces live analysis (monitoring,

trending and debugging)

– Distributed analysis computation – High-level to fine-grained view

> LTTngTop Future

slide-13
SLIDE 13

A u g u s t 3 t h , 2 1 2 J u l i e n D e s f

  • s

s e z 1 3

> Questions ?

http://www.efficios.com

git clone -b lttngtop-live git://git.dorsal.polymtl.ca/~jdesfossez/lttng-tools git clone -b lttngtop-live git://git.dorsal.polymtl.ca/~jdesfossez/babeltrace git clone -b live git://git.lttng.org/lttngtop.git

LTTngTop available at http://lttng.org