Brendan D. Gregg 维护了一份Linux性能调优工具的蓝图Linux Performance Tools,针对Linux系统的各个组件都有相应的分析工具,一目了然。
Linux Performance
Observability:
sar, benchmarking, tuning:
Images license: creative commons Attribution-ShareAlike 4.0.
This page links to various Linux performance material I‘ve created, including the tools maps on the right. These show:Linux observability tools, Linux benchmarking tools, Linux tuning tools, and Linux sar. For more diagrams, see my slide decks below.
Tools
- perf_events: perf one-liners, examples, visualizations.
- perf-tools: perf analysis tools using perf_events and ftrace (github).
- ktap: one-liners, examples, and scripts.
- Flame Graphs: using perf, SystemTap, and ktap.
Documentation
- My post Performance Tuning Linux Instances on EC2includes the tunables we‘re using at Netflix (2015).
- My lwn.net article Ftrace: The Hidden Light Switchshows a use case for Linux ftrace (Aug, 2014).
- Posts about ftrace-based perf-tools: iosnoop for Linux,iosnoop Latency Heat Maps, opensnoop for Linux,execsnoop for Linux, tcpretrans, Page Cache Hit Ratio(2014).
- Posts about perf-based perf-tools: perf Hacktogram.
- Posts about perf_events: perf CPU Sampling, perf Static Tracepoints, perf Heat Maps, perf Counting, perf Kernel Line Tracing, perf off-CPU Time Flame Graphs, Linux Profiling at Netflix (2014-5).
- The blog post strace Wow Much Syscall discusses strace(1) for production use, and compares it to advanced tracing tools (2014).
- USE Method: Linux Performance Checklist; also see the USE Method page for the description of this methodology.
- Systems Performance: Enterprise and the Cloud (Prentice Hall, 2013) uses Linux distributions as the primary example.
时间: 2024-10-10 18:22:48