Tagged articles

kernel module

13 articles · Page 1 of 1
Tencent Architect
Tencent Architect
Aug 26, 2026 · Cloud Native

Zombie Memcg Exhausting Node Memory? TencentOS's Cross-Kernel Fix

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.

Linux kernelTencentOScloud-native
0 likes · 31 min read
Zombie Memcg Exhausting Node Memory? TencentOS's Cross-Kernel Fix
Deepin Linux
Deepin Linux
Jun 4, 2025 · Fundamentals

Understanding and Using Kprobes for Dynamic Kernel Debugging

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 InstrumentationKprobesLinux kernel
0 likes · 25 min read
Understanding and Using Kprobes for Dynamic Kernel Debugging
Infra Learning Club
Infra Learning Club
Mar 9, 2025 · Cloud Native

How to Fix nvidia-smi Missing GPU Process Info Inside Containers

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.

GPUHelmKubernetes
0 likes · 8 min read
How to Fix nvidia-smi Missing GPU Process Info Inside Containers
Infra Learning Club
Infra Learning Club
Jan 20, 2025 · Fundamentals

How GPU Kernel Virtualization Works: A Deep Dive into the cgpu Project

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 virtualizationLinux kernelcgpu
0 likes · 5 min read
How GPU Kernel Virtualization Works: A Deep Dive into the cgpu Project
21CTO
21CTO
May 13, 2022 · Fundamentals

Why Nvidia’s Open‑Source GPU Driver Could Transform Linux and AI Development

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
Why Nvidia’s Open‑Source GPU Driver Could Transform Linux and AI Development
21CTO
21CTO
Nov 11, 2021 · Fundamentals

Why Write Linux Kernel Modules? A Step‑by‑Step Guide to Building Your First LKM

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.

C ProgrammingLinuxMakefile
0 likes · 13 min read
Why Write Linux Kernel Modules? A Step‑by‑Step Guide to Building Your First LKM
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jun 18, 2021 · Operations

CPU Power Consumption, Low‑Power Modes, and Core Control Framework

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 ScalingLow Power Mode
0 likes · 11 min read
CPU Power Consumption, Low‑Power Modes, and Core Control Framework
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Sep 21, 2020 · Cloud Computing

How KVM and QEMU Work Together to Power Linux Virtualization

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.

KVMLinux virtualizationQEMU
0 likes · 9 min read
How KVM and QEMU Work Together to Power Linux Virtualization
MaGe Linux Operations
MaGe Linux Operations
Dec 13, 2018 · Operations

How to Hook Kernel Functions Safely on Modern Linux Systems

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.

function hookingkernelkernel module
0 likes · 10 min read
How to Hook Kernel Functions Safely on Modern Linux Systems