Kernel Tracing With LTTng On Ubuntu Maverick 88
francis-giraldeau writes "Linux Tracing Toolkit (LTTng) provides high-performance kernel tracing for Linux. This is the killer app for system level debugging and performance tuning. It's now easier than ever to install, with packages released for Ubuntu Maverick. The short introduction to kernel tracing shows how to interpret a simple kernel trace and relate it to strace. I would like to ask Slashdot readers what they would expect as features for a kernel tracing analysis tool, because I'm starting my PhD on this topic and looking for ideas. Also, I wonder why LTTng is not mainline yet. Will Linus Torvalds see the light in 2011?"
Crowd-sourcing a degree... (Score:2, Funny)
Re: (Score:1, Interesting)
I look forward to being the opponent.
Re: (Score:3, Insightful)
Well, I guess his PhD would not be about imagining those features, but about implementing them. He asked for ideas what to implement, not for ideas how to implement it.
Re: (Score:1)
Ummm, a PhD is about original contribution. Implementing a "feature" that someone else imagines is about algorithm implementation. An original contribution is about recognizing a hard problem and at least coming up with a novel solution. Ideally, the candidate also provides a thorough description of the problem in the language of her/his discipline. For the most part, if someone can describe a "feature" they'd like to see for LTtng, then they know the problem they want to solve. Defining the problem is ofte
Re:Crowd-sourcing a degree... (Score:5, Insightful)
Re: (Score:2)
What people really need is dtrace. its the gold standard in this arena. Experiment with each of them for a day. Lttng is ok, but like the apostles, a bit thick and ordinary.
Goal of the PhD work? (Score:3, Insightful)
What is the goal of your work? Do you want to compare kernel tracing solutions and identify critical features in the process of coming up with a reasonable taxonomy? Do you want to implement something? Do you have a specific application for kernel tracing (e.g. informing performance tuning measures in enterprise environments which would probably be of interest to businesses)? Just throwing together a list of desired features is not going to be of interest to anyone, I guess. You have to come up with a motivation for each of the features, argue why this feature is necessary for the application at hand or for any application of kernel tracing in general, cite literature that gives evidence for your assumptions and conclusions. Maybe if you told the people what kind of work you're interested in and what the interest of your advisor(s) is, in which reasearch context (department, university) you are working, they could make sensible suggestions as to which features might be interesting to you.
Re:Goal of the PhD work? (Score:4, Informative)
Re: (Score:3, Interesting)
Re: (Score:1)
Re: (Score:3, Informative)
Hello, I couldn't find another way to contact you, so here we are.
I'm finishing up a PhD in scalability & performance analysis, and have done a lot of work in instrumentation. A userland instrumentation tool is part of my final research. Instrumentation is in a terrible, terrible state -- save a few points of light -- and I'm happy to see someone else in this area!!
So, as you're starting out, some tips:
1) If you haven't already done so, investigate dtrace. While available on Mac OS & FreeBSD, it
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Linus doesn't see lights, he IS the light.
Re: (Score:1)
Linus doesn't see lights, he IS the light.
I see. On the first day, God said: Let there be Linus ...
Re: (Score:2)
On the first day, God said: make; make install
That it is safe to use in a production environment (Score:5, Insightful)
A problem already solved with DTrace on Solaris http://docs.sun.com/app/docs/doc/817-6223 [dpp]
Re: (Score:2, Informative)
http://docs.sun.com/app/docs/doc/817-6223 [sun.com]
Re: (Score:2)
Not much point in having a tracing tool if it is owned by Oracle :)
I really liked solaris, I have an Ultra 5 as upgraded as it can be running an old version of solaris 10. Oracle has since decided I don't even deserve to be able to download bios updates, nevermind the OS. Stuff like that makes me want to avoid anything that says SUN on it.
Re: (Score:1)
Re: (Score:2, Interesting)
Re: (Score:1)
Re: (Score:2)
Right. Because everyone knows the best place to develop, debug, and profile code is on a production machine, and the person doing the development should be a system administrator, preferably with minimal experience.
Re:That it is safe to use in a production environm (Score:5, Interesting)
Right. Because everyone knows the best place to develop, debug, and profile code is on a production machine, and the person doing the development should be a system administrator, preferably with minimal experience.
I would say many people do know that the best place to understand the performance of a system in production is in production. If the vendors support techs can give an admin commands to run and know that a typo here or there will not result in a panic then that is a very useful feature.
Re: (Score:2)
Re: (Score:2)
The profiling/tracing issue is moot. Either way the ability to have robust tracing/profiling/debugging tools that can start from the beginning or attach to a process in progress and safely report as much as possible is great for production environments.
The quickest way to characterize any problem is with low level trace information. Trying to think through all the possible differences between a test and production environment *usually* can produce results eventually, but stack traces, syscalls, and more s
Re: (Score:1)
Re: (Score:2)
As is LTT-ng, so I guess your "point" is pointless. Furthermore, more details can easily be found on the lttng website, including a comparison to DTrace, and it doesn't do Linux, making it completely useless as a competitor to LTT-ng. Also, it was your ridiculous claim that such a tool is of no value unless it can be used by an inexperienced system administrator that I was rebutting.
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
Re: (Score:1)
Re: (Score:2)
Ubuntu Only? (Score:3, Insightful)
Why does the OP mention the Ubuntu package when the project releases a tarball?
There is no need to make news distro-centric when it does not need to be. The submitter should check to see what other binary packages are available or not mention them at all.
Re: (Score:2, Insightful)
Re: (Score:3, Informative)
So far, LTTng has been mainly integrated in embedded distros: WindRiver Linux, Montavista Linux and STLinux currently ship with LTTng. The interesting news that is particular about Ubuntu here is that, by installing the LTTng packages from PPA, it is now possible to easily deploy the LTTng kernel and userspace tracers on a desktop-oriented distribution.
See the light? (Score:5, Insightful)
Re: (Score:2, Insightful)
Re: (Score:3, Insightful)
"if Linux wants to be taken seriously..."
Funny the one thing needed to be taken seriously is, by magic, the subject of your thesis.
Had you been working on, say, resizable ramdisks (I'm just making this up), then resizable ramdisks would have been the one thing needed in Linux for Linux to be taken seriously.
Ever considered humility?
Re: (Score:1)
Re: (Score:3, Insightful)
Linux is taken quite seriously and to use this sort of tool and not be an expert is pointless.
Re: (Score:2)
Yea because Linux will never be taken seriously, give me a break. If I want to trace the performance or a particular chunk of code within linux I don't need a tool to do it I have the source code and the ability to modify it. If my boss comes to me ant tells me hey I need this to run faster than competitor xyz you had better believe I am going to make that happen with or without LLT. Sure it may make it easier to do so but if shooting for performance it would also be the first thing I disable.
Re: (Score:2, Interesting)
Actually ... While I was the maintainer, IBM's had a team of people working on LTT for a period of 3 years before pulling the plug on their involvement because they saw that all the money they were pouring in there wasn't leading to a mainlining.
Why were they interested in kernel tracing? Well ... When a customer of theirs has one of his 10,000 servers misbehaving in production, they can't afford telling him to just take it offline for diagnostics. They have to find (and fix) the problem in the field. There
Re: (Score:2)
Oh and another thing what the hell good is event tracing in windows anyhow? It may give me visibility to a issue but I have no way to solve it. Not like I can crack open the windows source and fix it.
Re: (Score:1)
Re: (Score:1, Insightful)
Linux isn't taken seriously at all! It only has close to 50% of the server market-share and a near monopoly on supercomputers. Look, when you have something workable we might talk, but until then you're just another PHD that has produced absolutely nothing of value.
academic hyperbole (Score:2)
We are waiting for decent kernel tracing since a decade, while LTTng is readily available today. It's better than any other tools like perf, ftrace and dtrace. Microsoft Windows has the Event Tracing for Windows since 2003, and if Linux wants to be taken seriously, it has to be mainline and available without kernel patching. And, I think that users should not be experts to use that kind of tools.
You might be Ph.D student, but apparently you are disconnected from industrial reality. Linux not being taken seriously? Are you f* kidding me? Is that going to be part of your problem statement at the start of your dissertation?
Seriously. You take the cake in the academic hyperbole department.
Re: (Score:1)
Re: (Score:1, Interesting)
Sorry, I'm not going to bother registering - I read /. quite steadily but don't usually ever feel the need to add more than what's already said. You can google me around, though, I'm easy to find.
FWIW, I introduced LTT in 1999 and lobbied kernel developers for inclusion for 6 years before giving maintainership to someone else. LTTng is in fact a complete rewrite of LTT and I've got little do with the project these days. I had little to do with its authoring and it likely has none of my code.
I do take issue,
Re: (Score:1)
see the light? (Score:1)
"see the light" - you are making the assumption of it being something that casts light; I suspect Linus Torvalds judges on presented evidence and so far apparently judges the argument hasn't been carried.
Re: (Score:1)
Re: (Score:2)
Or just maybe he disagrees with you. Maybe you can write your own OS, then you can make these decisions.
Re: (Score:2)
Maybe he cares about kernel bloat.
Maybe he cares that a feature that few people would use might have side effects for all.
LD_AUDIT anyone?
Some googling (Score:5, Insightful)
Also, I wonder why LTTng is not mainline yet
Well, a bit of searching [lkml.org] would have answered your question [lttng.org]
The LTTng maintainer has been working for months (years?) to get the kernel tracing into a decent shape. These days the Linux tracing support is wonderful, and not just for LTT - perf, ftrace and systemtap are awesome tools (and more powerful than LTTng in some ways). In fact perf can do all what the web page says and it seems to be more simple for my taste
Re: (Score:1)
Re: (Score:3, Informative)
Well, ftrace has a lockless ring buffer. And eventually all the ring buffers are going to be unified [lwn.net]...
Re: (Score:1)
trace or analysis tool? (Score:2, Insightful)
Re: (Score:1)
Because (Score:2)
Re: (Score:2)
That post is over ten years old.
Re: (Score:2)
Re: (Score:2)
It's irrelevant unless you can show that Linus still holds such an opinion today.
Re: (Score:2)
Re: (Score:2)
What a stupid statement. Of course the onus isn't on me. Do I also need to come up with evidence to show Bill Gates doesn't think we still need more then 640KB of ram?
Newsflash for you, people change their opinions all the time.
Re: (Score:2, Interesting)
He has expressed similar sentiments more recently as well (eg from 2007 on git's use of c vs c++)
C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do *nothing* but keep the C++ programmers out, that in itself would be a huge reason to use C.
Great! Maybe Linux can regain usefulness in media (Score:2)
Yea, maybe it's just un Ubuntu problem, but on both my laptop (Inspiron 700m) and my desktop (with an Nvidia card) crash about 10% on the desktop and 40% on the laptop, when viewing videos and occasionally when listening to music. It's pretty sad, as I need this stuff for my classwork. I pulled an old celeron XP box out of the closet, tranplanted some ram into it, and everything works fine. Pretty sad.
A scripting/domain-specific language for LTTng ? (Score:1)
Re: (Score:1)