Tagged articles
bpftrace
13 articles · Page 1 of 1
This article provides a comprehensive six-step methodology for diagnosing high CPU usage on Linux servers, distinguishing between real, fake, and stolen CPU time, and demonstrating practical commands like mpstat, perf, and bpftrace through real-world scenarios including regex backtracking, GC storms, lock contention, and container throttling.
CPULinuxOperations
0 likes · 45 min read

When a Linux server shows high iowait and becomes unresponsive, this guide walks you through using iostat, iotop, blktrace, fio and bpftrace to pinpoint the offending process, understand the full I/O stack, and apply kernel‑level and filesystem tuning to resolve the bottleneck.
IO troubleshootingLinux I/Oblktrace
0 likes · 41 min read

When iowait jumps to 80% and commands stall, this guide walks through the Linux I/O stack, explains key iostat metrics, and shows how to pinpoint offending processes with iotop, then uses blktrace, btt, fio, and bpftrace to diagnose and tune storage performance.
Linux I/OPerformance Tuningblktrace
0 likes · 50 min read

This tutorial explains how to use eBPF and bpftrace to monitor the Intel NPU kernel driver on Lunar Lake and Meteor Lake CPUs, mapping Level Zero API calls to kernel ioctls, tracking memory allocation, IPC communication, and identifying performance bottlenecks through detailed function‑call statistics.
Intel NPUKernel DriverLevel Zero API
0 likes · 17 min read

This tutorial explains how to leverage Linux kernel tracepoints with eBPF and bpftrace to capture real‑time GPU driver activity—including job scheduling, memory management, and command submission—across Intel, AMD, Nouveau, and NVIDIA GPUs, providing detailed examples, scripts, and analysis of the resulting data.
DRMGPUPerformance Monitoring
0 likes · 20 min read

This article introduces bpftrace, an eBPF‑based dynamic tracing tool for Linux, explains its core concepts, technical architecture, installation methods, basic syntax, and demonstrates real‑world performance analysis, fault diagnosis, and security monitoring scenarios while comparing it with DTrace, SystemTap, and BCC.
System Tracingbpftracedebugging
0 likes · 24 min read

This tutorial shows how to use eBPF, bpftrace, and the funclatency tool to instrument key Nginx functions, measure their execution latency, analyze the distribution of request processing times, and identify performance bottlenecks for optimization.
Linux tracingNginxPerformance Monitoring
0 likes · 9 min read

This article explains why packets are dropped in Linux, introduces the kfree_skb_reason API added in kernel 5.17, and shows step‑by‑step how to use bpftrace to capture drop reasons, five‑tuple details, and stack traces for precise network debugging.
Linux kernelbpftraceeBPF
0 likes · 9 min read

This article explains how to monitor MySQL slow queries by attaching eBPF uprobe/uretprobe probes to the dispatch_command function, handling symbol mangling across MySQL versions, and processing the captured data in a Go program to display latency and SQL statements.
GoLinux tracingMySQL
0 likes · 16 min read

After upgrading an RDS MySQL instance from 5.6 to 8.0, the same ORDER BY query became dozens of times slower, and this article walks through step‑by‑step analysis, profiling, source‑code inspection, and the root cause behind the performance regression.
Database UpgradeMySQLRDS
0 likes · 11 min read

This article explains common memory errors, lists kernel and user‑space event sources for tracing memory activity, and demonstrates how to use BPFTrace, kprobes, and USDT probes to detect out‑of‑bounds accesses, use‑after‑free, memory leaks, OOM killer events, mmap/brk usage, shared memory operations, page faults, and reclaim processes on Linux.
OOM killerbpftracememory debugging
0 likes · 28 min read

bpftrace is a Linux eBPF‑based tracing tool that compiles scripts to BPF bytecode, offering kernel and user‑space probes; the guide covers its purpose, installation on major distros and Docker, and demonstrates built‑in example scripts for command logging, I/O latency, disk size, CPU usage, and TCP connection tracing.
Linux tracingPerformance Monitoringbpftrace
0 likes · 7 min read

This article walks through the high‑level components of eBPF programs—backend, loader, frontend, and data structures—showing how the original sock_example.c is split into separate files, how LLVM compiles restricted C to ELF, and how projects like BCC, BPFtrace, and IOVisor automate development, deployment, and cloud‑native observability while highlighting their trade‑offs for embedded environments.
BCCKernel TracingLinux
0 likes · 15 min read
