BPF Performance Tools

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Use BPF Tools to Optimize Performance, Fix Problems, and See Inside Running Systems BPF-based performance tools give you unprecedented visibility into systems and applications, so you can optimize performance, troubleshoot code, strengthen security, and reduce costs. BPF Performance Tools: Linux System and Application Observability is the definitive guide to using these tools for observability. Pioneering BPF expert Brendan Gregg presents more than 150 ready-to-run analysis and debugging tools, expert guidance on applying them, and step-by-step tutorials on developing your own. You’ll learn how to analyze CPUs, memory, disks, file systems, networking, languages, applications, containers, hypervisors, security, and the kernel. Gregg guides you from basic to advanced tools, helping you generate deeper, more useful technical insights for improving virtually any Linux system or application. • Learn essential tracing concepts and both core BPF front-ends: BCC and bpftrace • Master 150+ powerful BPF tools, including dozens created just for this book, and available for download • Discover practical strategies, tips, and tricks for more effective analysis • Analyze compiled, JIT-compiled, and interpreted code in multiple languages: C, Java, bash shell, and more • Generate metrics, stack traces, and custom latency histograms • Use complementary tools when they offer quick, easy wins • Explore advanced tools built on BPF: PCP and Grafana for remote monitoring, eBPF Exporter, and kubectl-trace for tracing Kubernetes • Foreword by Alexei Starovoitov, creator of the new BPF BPF Performance Tools will be an indispensable resource for all administrators, developers, support staff, and other IT professionals working with any recent Linux distribution in any enterprise or cloud environment.

Author(s): Brendan Gregg
Series: Addison-Wesley Professional Computing Series
Publisher: Addison-Wesley Professional
Year: 2019

Language: English
Pages: 880

Foreword
Preface
Acknowledgments
About the Author

Part I: Technologies
1 Introduction
2 Technology Background
3 Performance Analysis
4 BCC
5 bpftrace

Part II: Using BPF Tools
6 CPUs
7 Memory
8 File Systems
9 Disk I/O
10 Networking
11 Security
12 Languages
13 Applications
14 Kernel
15 Containers
16 Hypervisors

Part III: Additional Topics
17 Other BPF Performance Tools
18 Tips, Tricks, and Common Problems

Part IV: Appendixes
A: bpftrace One-Liners
B: bpftrace Cheat Sheet
C: BCC Tool Development
D: C BPF
E: BPF Instructions

Glossary
Bibliography
Index