Linux Kernel Journey
Author

Linux Kernel Journey

Linux Kernel Journey

127
Articles
0
Likes
225
Views
0
Comments
Recent Articles

Latest from Linux Kernel Journey

100 recent articles max
Linux Kernel Journey
Linux Kernel Journey
Jan 1, 2025 · Backend Development

eBPF Tailcall: 6 Common Pitfalls and How to Detect Them

The article outlines six distinct kernel‑level bugs affecting the eBPF tailcall feature across multiple Linux versions, explains the underlying causes and the commits that fixed them, and introduces a detection tool to verify whether a running kernel is affected.

BPFLinux kernelbpf2bpf
0 likes · 7 min read
eBPF Tailcall: 6 Common Pitfalls and How to Detect Them
Linux Kernel Journey
Linux Kernel Journey
Dec 29, 2024 · Fundamentals

Extending Fair Scheduling: Inside Linux’s New EEVDF Algorithm

The article explains how the Earliest Eligible Virtual Deadline First (EEVDF) scheduler, introduced in Linux 6.6, replaces CFS by using virtual deadlines and a lag concept to achieve both fairness and interactivity, and walks through concrete formulas, parameter settings, and step‑by‑step scheduling examples.

CFSEEVDFInteractivity
0 likes · 11 min read
Extending Fair Scheduling: Inside Linux’s New EEVDF Algorithm
Linux Kernel Journey
Linux Kernel Journey
Dec 25, 2024 · Fundamentals

Stop Being a Linux Kernel Code Parrot: Think Like a Scheduler Designer

The author, with over two decades of development experience, argues that learning the Linux kernel requires understanding real-world scheduling problems rather than merely copying kernel code, and outlines key questions about task_struct management, priority, preemption, CPU placement, fairness, and universal scheduler design.

CPU schedulingLinux kernelScheduler
0 likes · 4 min read
Stop Being a Linux Kernel Code Parrot: Think Like a Scheduler Designer
Linux Kernel Journey
Linux Kernel Journey
Dec 24, 2024 · Operations

How to Use tcpw with eBPF to Capture Curl’s Five‑Tuple Information

This article introduces tcpw, a small eBPF‑based utility that traces TCP, UDP, and Unix‑domain sockets to display the five‑tuple of commands like curl or telnet, explains its command‑line options, shows concrete usage examples, and details the underlying BPF and Go implementation, including connect, accept, and fork tracing.

ForkGoLinux tracing
0 likes · 8 min read
How to Use tcpw with eBPF to Capture Curl’s Five‑Tuple Information
Linux Kernel Journey
Linux Kernel Journey
Dec 22, 2024 · Artificial Intelligence

Understanding GPU Monitoring: Utilization Metrics and Failure Scenarios

This article systematically reviews GPU monitoring for large‑scale AI training, covering MFU/HFU definitions, key DCGM metrics, NVLink bandwidth, common failure codes such as Xid and SXid, experimental insights on T4 and H100 GPUs, and practical case studies for diagnosing and mitigating performance drops.

DCGMGPU failuresGPU monitoring
0 likes · 26 min read
Understanding GPU Monitoring: Utilization Metrics and Failure Scenarios
Linux Kernel Journey
Linux Kernel Journey
Dec 21, 2024 · Fundamentals

Identify the Most Time‑Consuming Process Functions with eBPF

This tutorial shows how to use an eBPF program with the PERF_EVENT type to trace kernel activity, collect samples via performance counters, and pinpoint which processes and functions consume the most execution time, covering dynamic tracing concepts and overflow handling.

Linux profilingPerformance Monitoringdynamic tracing
0 likes · 3 min read
Identify the Most Time‑Consuming Process Functions with eBPF
Linux Kernel Journey
Linux Kernel Journey
Dec 18, 2024 · Operations

Tracing Linux Soft Interrupts with eBPF: Measuring Processing Time

This article demonstrates how to write an eBPF program that attaches to Linux soft‑interrupt entry and exit points, records timestamps in eBPF maps, computes handling duration, updates counters and histograms, and exposes the data to user space for performance analysis.

Performance MonitoringeBPFkernel tracing
0 likes · 5 min read
Tracing Linux Soft Interrupts with eBPF: Measuring Processing Time
Linux Kernel Journey
Linux Kernel Journey
Dec 16, 2024 · Fundamentals

eBPF Talk: Manually Performing Backtrace in arm64 fentry

The article explains why backtracing with eBPF fentry on arm64 is harder than on x86, details the stack layout differences, shows how recent commits changed register saving, and provides a practical detection routine to locate the frame pointer and retrieve the tracee's instruction pointer.

ARM64BPFbacktrace
0 likes · 5 min read
eBPF Talk: Manually Performing Backtrace in arm64 fentry