Re:The Linux perf command rocks
by sciurus on Thursday April 28, 2011 @02:50PM
(#2494575)
As a sysadmin. I don't love any other tool nearly as much as I love atop. It comes close to making all other interactive general-purpose performance monitoring tools redundant. The logging, too, is fantastic. There's nothing like looking through the graphs of my metrics gathered by collectd, wondering why a certain spike or pattern occurred, and being able to step through previous days per-process resource usage via atop and figure it out. There's a great introduction to it at https://lwn.net/Articles/387202/
Re:The Linux perf command rocks
by dkarl on Thursday April 28, 2011 @01:25PM
(#2494171)
Do you know of any manual or book-style treatment about using those tools for investigating the performance of Linux systems? Every once in a while I have to look at performance problems on Linux systems, but I always start from zero. I need a place where I can study the topic and refresh myself when necessary, because I'm apparently not capable of mastering it via occasional piecemeal experience.
Re:The Linux perf command rocks
by ghshephard on Thursday April 28, 2011 @01:46PM
(#2494247)
The closest I've found (and spent 10s, if not hundred+ hours reading) are: System Performance Tuning, 2nd Edition (O'Reilly System Administration) by Gian-Paolo D. Musumeci [1] and the somewhat dated (and Solaris centric) Sun Performance and Tuning: Java and the Internet (2nd Edition) [2]
I'd love to hear that there were better book out there - if anyone has read either of those two, and has found a better one, I'll be one-clicking it in 30 seconds.
Re:The Linux perf command rocks
by lutorm on Thursday April 28, 2011 @02:12PM
(#2494380)
cachegrind is extremely useful, but unfortunately it seems that it's not updated with the current generation processors. Every time I run it, it complains about "unrecognized architecture" or something similar.
Re:The Linux perf command rocks
by hallmark on Friday April 29, 2011 @04:08AM
(#2496702)
Are these tools (perf, atop, etc) useful and accurate in virtualized environments? For example, under Xen. Fine, I'll say it: on an EC2 or Linode instance. Would there be any skewing or clock issues due to virtualization?
Collecting the comments of HN readers with deep experience in this matter, on this thread, would be preferable to me trying to give a brief and uninformed Google search summary.
Re:The Linux perf command rocks
by JoshTriplett on Friday April 29, 2011 @06:33AM
(#2496938)
Some features of perf will work perfectly in an emulated environment. Perf's kernel tracing uses tracepoints in the kernel (built-in or dynamically patched in), and those will work just fine. However, perf's use of CPU performance counters will only handle those the virtual environment emulates; I don't know if Xen implements those.
Re:The Linux perf command rocks
by EventHorizon on Thursday April 28, 2011 @10:56AM
(#2493558)
Is there a better viewer for lttng than the lttv gui? I got spoiled by QNX's amazing tracing infrastructure and analysis tools and long for something similar on Linux.
http://thread.gmane.org/gmane.comp.version-control.git/17228...
http://sysprof.com
The 1.1.6 release uses the same kernel API as perf, but displays full call trees. Screenshot:
http://sysprof.com/screen-shot-4.png
I'll install it separately; thanks!
I'd love to hear that there were better book out there - if anyone has read either of those two, and has found a better one, I'll be one-clicking it in 30 seconds.
[1] http://www.amazon.com/System-Performance-Tuning-OReilly-Admi...
[2] http://www.amazon.com/Sun-Performance-Tuning-Java-Internet/d...
Collecting the comments of HN readers with deep experience in this matter, on this thread, would be preferable to me trying to give a brief and uninformed Google search summary.
http://lttng.org