Tagged articles
Kernel Module
14 articles · Page 1 of 1
This article provides a comprehensive guide to Linux kernel tracing using Ftrace and kprobe, covering static and dynamic instrumentation, practical command workflows, kernel module examples, real-world debugging case studies for network latency and memory errors, and critical performance overhead considerations.
DebuggingFtraceKernel Module
0 likes · 24 min read

TencentOS analyzes zombie memcg root causes — page cache, shmem, and swap entries — reviews existing solutions' limitations, and proposes a dual-track approach: upstream patches for new kernels (obj_cgroup binding, swap entry fix) and a kernel module for old kernels that asynchronously reparents dying memcg pages and swap entries to online parents, preserving cache while enabling zero-restart deployment.
Kernel ModuleLinux kernelPage Cache
0 likes · 31 min read

This article explains the concept, architecture, key data structures, registration process, implementation details, limitations, configuration steps, and practical examples of using Kprobes to dynamically instrument and debug Linux kernel functions without recompiling or rebooting the system.
Kernel InstrumentationKernel ModuleKprobes
0 likes · 25 min read

The article explains why nvidia-smi cannot display GPU processes when run inside a container, analyzes the underlying pid‑namespace isolation and kernel‑level restrictions, and provides three practical solutions—including using hostPid, custom kernel interception modules, and the nvitop tool—plus a workaround for gpu‑operator deployments.
GPUHelmKernel Module
0 likes · 8 min read

This article explains the principles of GPU kernel virtualization by analyzing the cgpu project's source code, detailing kernel interception of device operations, the driver’s file_operations, module initialization and cleanup, procfs interfaces, scheduling logic, and compilation steps on Ubuntu 22.04.
GPU virtualizationKernel ModuleLinux kernel
0 likes · 5 min read

This tutorial walks through the motivation for Nvidia GPU kernel interception, explains Linux kernel module basics and privilege rings, shows how to set up an Ubuntu environment, write and compile a minimal LKM, load and test it, then create a fake GPU character device and mount it into a Docker container for verification.
C++DockerGPU
0 likes · 8 min read

This article traces the evolution from real‑mode segmentation to modern paging, explains segment and page‑table structures on x86 and ARM, dissects kernel macros such as PGDIR_SHIFT and PUD_SHIFT, and demonstrates a kernel module that translates a process's virtual address to its physical address.
Kernel ModuleLinuxPage Table
0 likes · 24 min read

This guide explains how to download, compile, and install the Kube-OVN FastPath kernel module on CentOS, showing steps for both 3.x and 4.x kernels, how to verify the installation with dmesg, and notes on module loading and removal.
FastPathKernel ModuleKube-OVN
0 likes · 4 min read

This guide explains what a Linux driver is, classifies character, block and network devices, walks through the open() system call flow from user space to the kernel’s VFS and driver list, and shows how to write, compile, and load a simple character device driver module.
Kernel ModuleLinuxVFS
0 likes · 20 min read


21CTOMay 13, 2022 · Fundamentals
Nvidia’s release of the open‑source R515 GPU driver for Linux, supporting data‑center and consumer GPUs under a dual GPL/MIT license, marks a pivotal shift that eases integration for AI/ML developers, gamers, and cloud users while fostering community‑driven improvements to driver quality and security.
AI/MLAmpereGPU Driver
0 likes · 7 min read


21CTONov 11, 2021 · Fundamentals
This tutorial explains why kernel modules are needed, walks through preparing a Linux environment, installing required headers, creating and compiling a simple "Hello, World" module, extending it to a character device driver, and shows how to load, test, and unload the module safely.
Kernel ModuleLinuxMakefile
0 likes · 13 min read

CPU power consumption comprises static leakage and dynamic switching energy, so modern SoCs use low‑power C‑states and core‑control isolation to shut down idle cores, with the kernel’s corectl module dynamically evaluating load and task counts each scheduler tick to decide how many CPUs to activate or deactivate, configurable via sysfs.
CPU powerDynamic ScalingKernel Module
0 likes · 11 min read

This article explains the KVM architecture, its interaction with QEMU, the step‑by‑step process of creating and running a virtual machine using ioctl calls, and the underlying source code structure that enables hardware‑assisted virtualization on Linux.
KVMKernel ModuleLinux virtualization
0 likes · 9 min read

This article explains why traditional function‑hooking tricks fail on modern Linux due to executable‑memory protections, and presents a step‑by‑step method using page‑table remapping and the kernel's text_poke utilities to replace kernel functions safely, complete with code examples and a diagram.
Kernel Modulefunction hookingkernel
0 likes · 10 min read
