Re: Kernel profiles anyone?

From: Lee Revell
Date: Tue Sep 06 2005 - 23:28:03 EST


On Tue, 2005-09-06 at 21:35 -0400, John Richard Moser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Are there any recent kernel profiles? I think from an acedemic
> perspective it'd be nice to see some graphs and numbers nobody
> understands showing where the longest running code paths in the kernel
> occur. It might also be nice for those latency whores (*runs to the
> back and raises hand*) and those who want to increase overall
> performance and efficiency; then there'd be a map showing . . .
> something that only kernel hackers could possibly understand or care about.

There's a latency histogram option in the -rt patch set. You can pipe
the output through gnuplot and get some cool graphs. Then you can
use /proc/latency_trace to try and guess what code paths the peaks on
the graphs correspond to. The timer interrupt will be the biggest peak,
around 23 usecs last time I checked.

I haven't done it lately so it would be interesting to see the current
graphs. Someone could make a really good presentation out of it at some
kernel development conference.

Lee

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/