News for hackers. Stuff that matters.
Re:LTTng: An open-source tracing framework for Linux by dmix on Thursday October 16, 2014 @02:00PM (#8466291)
Wow, open source sites are getting nice designs these days. Is there a business behind this project or is it via donation?

The documentation is excellent.

Re:LTTng: An open-source tracing framework for Linux by cbab on Thursday October 16, 2014 @02:01PM (#8466295)
Thanks, we worked quite hard on this new redesign!

edit: Yes, EfficiOS [1] is the open source business behind the LTTng project :).

[1] - https://www.efficios.com/

Re:LTTng: An open-source tracing framework for Linux by dmix on Thursday October 16, 2014 @02:46PM (#8466645)
Some UX feedback after attempting to install it on Fedora:

1) Clicked Fedora on install docs

2) Installed lttng-tools and lttng-ust RPMs

3) Clicked Getting Started in docs. Ran "lttng list --kernel".

3a) Got an error saying I need to run the systemd service.

4) Started systemd service (didn't see this mentioned in the docs?)

5) Reran "lttng list --kernel".... error saying I'm missing a module

5a) Reread docs, realized I need to build LTTng-modules. Which led me to find out I need to also build liburcu

6) Installed liburcu but got an error building lttng-modules https://gist.github.com/dmix/d2d4c3c1b823e82486bf (I could submit this as a bug report?)

So I gave up to attempt the install another time.

Re:LTTng: An open-source tracing framework for Linux by cbab on Thursday October 16, 2014 @03:04PM (#8466806)
Thanks for reporting your issues on Fedora.

4) We will definitely fix that omission.

5a) liburcu is a dependency of the lttng-ust and lttng-tools. The dependency should be accounted for in the respective Fedora packages.

6) Yes please submit a bug for this at [1]. We will investigate that failure to build on Fedora.

[1] - http://bugs.lttng.org/projects/lttng-modules

Re:LTTng: An open-source tracing framework for Linux by mtdewcmu on Thursday October 16, 2014 @04:43PM (#8467568)
But the website looks excellent.
Re:LTTng: An open-source tracing framework for Linux by jpfr on Thursday October 16, 2014 @05:14PM (#8467785)
LTTng is closely related to liburcu (now on http://urcu.so/).

It provides lockless datastructures for screaming fast concurrency on multicore machines. You will be pleasantly surprised by the concurrent hash-map implementation that comes with it [1].

[1] here's the paper for background: https://www.usenix.org/conference/usenixatc11/resizable-scal...

Re:LTTng: An open-source tracing framework for Linux by wrl on Thursday October 16, 2014 @07:56PM (#8468619)
In the event LGPL is too restrictive, there's also concurrencykit (http://concurrencykit.org/), which provides similar mechanisms (both for concurrent memory reclamation and various datastructures built on top).
Re:LTTng: An open-source tracing framework for Linux by jordigh on Thursday October 16, 2014 @02:17PM (#8466391)
Here is a pretty cool presentation about it, in French:

https://www.youtube.com/watch?v=9XokHJadkq4

The slides are in English, if that helps:

http://lttng.org/files/papers/presentations/lttng20tracingfo...

Re:LTTng: An open-source tracing framework for Linux by cbab on Thursday October 16, 2014 @02:37PM (#8466556)
You can also find all the presentations/publications that we did through the years here [1].

[1] - http://lttng.org/publications/

Re:LTTng: An open-source tracing framework for Linux by rasur on Thursday October 16, 2014 @02:44PM (#8466617)
So how does this compare to somerthing like Sysdig, for example?
Re:LTTng: An open-source tracing framework for Linux by mvlad on Thursday October 16, 2014 @03:14PM (#8466899)
"Excluding proprietary solutions, a few competing software tracers exist for Linux. ftrace is the de facto function tracer of the Linux kernel. strace is able to record all system calls made by a user process. SystemTap is a Linux kernel and user space tracer which uses custom user scripts to produce plain text traces. sysdig also uses scripts, written in Lua, to trace and analyze the Linux kernel.

The main distinctive features of LTTng is that it produces correlated kernel and user space traces, as well as doing so with the lowest overhead amongst other solutions. It produces trace files in the CTF format, an optimized file format for production and analyses of multi-gigabyte data. LTTng is the result of close to 10 years of active development by a community of passionate developers. It is currently available on all major desktop and embedded Linux distributions."

Further down you'll discover that your application(s) are linked with a library provided by the project.

Most of them rely on kprobes [1], or like ftrace on [2]. But there is also oprofile [3], and almighty perf [4], which rely on CPU extensions to implement tracing, (also implemented and by the HW manufacturer as well -- but in a OS-agnostic way).

[1] http://lxr.free-electrons.com/source/Documentation/kprobes.t...

[2] http://lxr.freeelectrons.com/source/Documentation/filesystem...

[3] http://oprofile.sourceforge.net/doc/internals/index.html

[4] https://perf.wiki.kernel.org/index.php/Main_Page

Re:LTTng: An open-source tracing framework for Linux by hitlin37 on Thursday October 16, 2014 @02:44PM (#8466616)
how different is this from oprofile?
Re:LTTng: An open-source tracing framework for Linux by abusque on Thursday October 16, 2014 @03:00PM (#8466774)
Well, I've never used OProfile myself, so please take this answer with a grain of salt, but from a quick perusal of their website, and as the project's name seems to suggest, OProfile is a sampling profiler, which usually means it will collect data from counters at given intervals of time, producing a number of statistics over time. This generally implies a somewhat significant overhead, and consequent performance drop.

LTTng, on the other hand, is a tracer, which means it collects events from the kernel (using the built-in tracepoint facilities) as they happen. It's also possible to trace userspace apps (with lttng-ust), or define your own tracepoints. This has the benefit of being much more detailed, and also has a much smaller overhead.

You might be interested in reading the "What is Tracing?" section of the lttng docs [0], which does a far better job at explaining this than I do.

[0] - http://lttng.org/docs/#doc-nuts-and-bolts

Re:LTTng: An open-source tracing framework for Linux by hitlin37 on Thursday October 16, 2014 @03:36PM (#8467093)
thanks for explaining. it sure looks interesting. i'm going to read now.
Re:LTTng: An open-source tracing framework for Linux by krakensden on Thursday October 16, 2014 @05:58PM (#8468057)
oprofile has been abandoned, and no longer works on recent distributions. 'perf', I think, is the usual replacement, though the tooling is not as nice.