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
Dec 8, 2024 · Fundamentals

Linux Kernel Source Analysis: Understanding Heap Memory Management

This article explains how the Linux kernel implements heap memory management, covering the heap data structure, the mm_struct fields start_brk and brk, the brk/sbrk and malloc/free allocation methods, the brk and mmap system calls, and the internal glibc structures heap_info and malloc_state that track heap state.

Heap Memorybrkkernel
0 likes · 17 min read
Linux Kernel Source Analysis: Understanding Heap Memory Management
Linux Kernel Journey
Linux Kernel Journey
Dec 4, 2024 · Operations

How rtla timerlat Measures Kernel Latency: Principles and Analysis

This article explains the inner workings of rtla timerlat’s latency testing, contrasting it with cyclictest, detailing kernel‑mode tracer setup, timer handling, context differentiation, and how the collected trace events are processed by the user‑space rtla application to produce detailed IRQ and thread latency metrics.

cyclictestkernel latencylinux
0 likes · 12 min read
How rtla timerlat Measures Kernel Latency: Principles and Analysis
Linux Kernel Journey
Linux Kernel Journey
Dec 2, 2024 · Operations

Getting Started with rtla timerlat: Cross‑Compilation and Usage Guide

This article introduces rtla timerlat, a Linux scheduling‑latency analysis tool that breaks latency into detailed phases, explains how to cross‑compile its libtracefs and libtraceevent dependencies, compile the tool, enable the kernel timerlat tracer, configure common parameters, and run a typical command with sample output.

cross-compilationkernel tracinglinux
0 likes · 11 min read
Getting Started with rtla timerlat: Cross‑Compilation and Usage Guide
Linux Kernel Journey
Linux Kernel Journey
Nov 30, 2024 · Fundamentals

How a SIGPIPE Signal Crashed Our Service and the Fix We Applied

During a gray‑release, a Go‑Rust service repeatedly crashed when a dependent process was hot‑upgraded; the root cause was an unhandled SIGPIPE signal generated by the kernel on a broken TCP connection, which terminated the process without a core dump, and the article explains the kernel mechanics and the solution of ignoring SIGPIPE.

CGOGoLinux signals
0 likes · 16 min read
How a SIGPIPE Signal Crashed Our Service and the Fix We Applied
Linux Kernel Journey
Linux Kernel Journey
Nov 27, 2024 · Operations

How to Resolve Linux Out‑of‑Memory Issues with a Swap Partition

When a small 2 CPU / 2 GB Alibaba Cloud instance runs Java, Nginx, MySQL, and Redis, memory quickly exhausts; this guide shows how to create and configure a swap file, set appropriate permissions, enable it at boot, and tune the swappiness parameter to mitigate out‑of‑memory failures.

Memory managementddlinux
0 likes · 4 min read
How to Resolve Linux Out‑of‑Memory Issues with a Swap Partition
Linux Kernel Journey
Linux Kernel Journey
Nov 25, 2024 · Fundamentals

Simulating MDIO Communication with GPIO on Linux

This guide explains why and how to implement MDIO over GPIO on a Linux system, covering MDIO fundamentals, Clause22/Clause45 frame structures, YT8521 PHY pinout, required kernel drivers, device‑tree configuration, log verification, and command‑line usage.

Device TreeEmbedded LinuxEthernet PHY
0 likes · 8 min read
Simulating MDIO Communication with GPIO on Linux
Linux Kernel Journey
Linux Kernel Journey
Nov 20, 2024 · Operations

eBPF Talk: Who Modified My BPF Map?

This article demonstrates how to use eBPF together with BTF to trace BPF map update and delete functions, shows concrete command‑line output, explains the code that identifies target kernel functions, and details the data‑dumping logic for debugging map contents.

BPF mapBTFDebugging
0 likes · 8 min read
eBPF Talk: Who Modified My BPF Map?
Linux Kernel Journey
Linux Kernel Journey
Nov 14, 2024 · Artificial Intelligence

Deep Dive: How DeepFlow Collects Business Metrics for Large‑Model Services

This article explains how China Mobile built a hybrid‑cloud production environment for its customer‑service LLM, using eBPF and WebAssembly plugins from DeepFlow to achieve zero‑intrusion observability, automatically capture full‑stack topology, application/network metrics, and key LLM business indicators such as TTFT, TPOT, and token throughput.

DeepFlowGrafanaLLM
0 likes · 19 min read
Deep Dive: How DeepFlow Collects Business Metrics for Large‑Model Services
Linux Kernel Journey
Linux Kernel Journey
Nov 12, 2024 · Operations

eBPF Talk: Fixing a 7‑Year‑Old Bug in bpftool

The article details how a long‑standing bug that displayed incorrect call‑address information in bpftool’s JIT disassembly was reproduced, analyzed, and fixed by correcting the PC parameter to use the function’s kernel symbol address, with patches applied to both LLVM and libbfd back‑ends.

LLVMPATCHbpftool
0 likes · 9 min read
eBPF Talk: Fixing a 7‑Year‑Old Bug in bpftool
Linux Kernel Journey
Linux Kernel Journey
Nov 7, 2024 · Information Security

Using eBPF to Protect, Detect, and Audit Malicious eBPF Programs

The article analyzes how attackers can abuse eBPF to steal data, elevate privileges, execute commands, and hide processes, then presents concrete eBPF code for such attacks and outlines practical protection, detection, and auditing techniques—including file analysis, bpftool usage, and kernel tracing—to mitigate these threats.

bpftooleBPFkernel security
0 likes · 27 min read
Using eBPF to Protect, Detect, and Audit Malicious eBPF Programs