1 |
So, I've been looking to get kernel shark onto gentoo, |
2 |
for a long time....[1] Look at this link to wet your |
3 |
appetite! |
4 |
|
5 |
KernelShark(gui) is a very, very functional way to look at just about |
6 |
every aspect of kernel performance. It needs trace-cmd to run. |
7 |
Guess what just made it into the portage tree? |
8 |
(dev-util/trace-cmd) THANKS to Patrick McLean <chutzpah@g.o>! |
9 |
|
10 |
You'll have to make some adjustments to your kernel settings (maybe) |
11 |
to activate ftrace. |
12 |
|
13 |
I wrote extensively about KernelShark/trace-cmd/ftrace in this bug, |
14 |
which is still looking for a gentoo dev to complete (please?). |
15 |
BGO 517428. |
16 |
|
17 |
|
18 |
Now to wet those appetites, look here [2,3] at section 3.7 and 3.8. |
19 |
It seems our 'pals' at RedHat offer there most optimized servers |
20 |
that are extremely tweaked in the kernel (real-time) by using these |
21 |
tools; particularly for their cluster offerings that cost big_bucks. |
22 |
|
23 |
[2] |
24 |
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_ |
25 |
|
26 |
MRG/1.3/html/Realtime_Tuning_Guide/sect-Realtime_Tuning_Guide- |
27 |
|
28 |
Realtime_Specific_Tuning-Using_the_ftrace_Utility_for_Tracing_Latencies.html |
29 |
|
30 |
[3] |
31 |
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_ |
32 |
|
33 |
MRG/1.3/html/Realtime_Tuning_Guide/sect-Realtime_Tuning_Guide- |
34 |
|
35 |
Realtime_Specific_Tuning-Latency_Tracing_Using_trace_cmd.html |
36 |
|
37 |
MRG (messaging, realtime, grid) version guide 1.3 has tons of performance |
38 |
tuning ideas for servers that are well worth a glance. If you just want |
39 |
the pdf, search for: |
40 |
|
41 |
Red_Hat_Enterprise_MRG-1.3-Realtime_Tuning_Guide-en-US.pdf |
42 |
|
43 |
KernelShark on top of trace-cmd using ftrace activated in the kernel, |
44 |
is one bad ars tool; so as soon as some sympathetic dev (ebuild hacker) |
45 |
puts together an ebuild (overlay is fine) for KernelShark, we be |
46 |
jammin on da kernel optimizations! |
47 |
|
48 |
It'll even allow folks to evaluate ram performance with a real timing |
49 |
chart style data sets. |
50 |
|
51 |
TEQUILA! for all my pals........ |
52 |
|
53 |
|
54 |
enjoy, |
55 |
James |
56 |
repeated from BGO-517428! |
57 |
|
58 |
[1] https://www.kernel.org/doc/Documentation/trace/ftrace.txt |
59 |
|
60 |
[2] http://lwn.net/Articles/410200/ |
61 |
|
62 |
[3] http://www.linux-kvm.org/page/Tracing |
63 |
|
64 |
[4] http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git |
65 |
|
66 |
[5] http://rostedt.homelinux.com/kernelshark/ |
67 |
|
68 |
[6] http://pkgs.org/download/kernelshark |
69 |
|
70 |
[7] http://www.youtube.com/watch?v=ABRtzVtUVBo |
71 |
|
72 |
[8] |
73 |
http://crtags.blogspot.com/2012/04/dtrace-ftrace-ltrace-strace-so-many-to.html |
74 |
|
75 |
[9] |
76 |
https://wiki.linaro.org/LEG/Engineering/TOOLS/tracing-and-profiling-tools#ftrace |