OPPO Kernel Craftsman
Author

OPPO Kernel Craftsman

Sharing Linux kernel-related cutting-edge technology, technical articles, technical news, and curated tutorials

237
Articles
0
Likes
691
Views
0
Comments
Recent Articles

Latest from OPPO Kernel Craftsman

100 recent articles max
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jun 7, 2024 · Fundamentals

Understanding the F2FS File System Structure and Operations

The article walks through the Flash Friendly File System’s on‑disk layout—zones, sections, segments, blocks, SuperBlock, checkpoint, SIT, NAT, and SSA—showing how formatting, mounting, creating, modifying, and deleting files updates these structures, offering a practical guide for kernel and storage engineers.

F2FSFilesystem AnalysisLinux
0 likes · 26 min read
Understanding the F2FS File System Structure and Operations
OPPO Kernel Craftsman
OPPO Kernel Craftsman
May 31, 2024 · Operations

An Overview of the Extensible Scheduler Class (sched_ext) in the Linux Kernel

The Linux kernel’s extensible scheduler class sched_ext introduces a new ext_sched_class with eBPF‑driven callbacks and dispatch queues, allowing developers to plug custom scheduling policies via struct sched_ext_ops without recompiling the kernel, while integrating into the existing hierarchy and exposing trade‑offs such as central‑CPU load and community adoption challenges.

CPU schedulingKernel DevelopmenteBPF
0 likes · 16 min read
An Overview of the Extensible Scheduler Class (sched_ext) in the Linux Kernel
OPPO Kernel Craftsman
OPPO Kernel Craftsman
May 24, 2024 · Fundamentals

Linux Kernel Preemption Mechanism: Principles, Implementation, and Performance Analysis

The article examines Linux 6.1’s preemption mechanism, explaining latency sources, the three preemption configurations (none, voluntary, full), the TIF_NEED_RESCHED flag and preempt_count tracking, and how preempt_enable/disable affect real‑time responsiveness, illustrated by a case where RT threads cannot preempt CFS due to disabled preemption in critical driver code.

Linux kernelPerformance optimizationPreemption
0 likes · 21 min read
Linux Kernel Preemption Mechanism: Principles, Implementation, and Performance Analysis
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 26, 2024 · Fundamentals

Introduction to V4L2 and Its Role in Video Codec Development

V4L2 is the Linux kernel framework that unifies video device access, abstracts complex multi‑IC hardware into sub‑devices, and provides core, platform, and sensor driver layers, while supporting capture, output, and M2M codec operations with sophisticated buffer management—including mmap, userptr, and DMA‑Buf for zero‑copy processing on Android.

DMABUFM2MV4L2
0 likes · 13 min read
Introduction to V4L2 and Its Role in Video Codec Development
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 19, 2024 · Fundamentals

Large Folios in the Linux Kernel: Benefits, Implementations, and Future Directions

Large folios in the Linux kernel combine multiple pages to reduce TLB misses, page faults, and reclamation cost while enabling more efficient compression; they are supported by filesystems like XFS and bcachefs, and recent patches add multi‑size THP, swap‑in/out handling, TAO allocation, NUMA balancing, and debug tools, with OPPO’s production deployment showing performance gains and motivating broader adoption and fragmentation mitigation.

NUMASwapTLB
0 likes · 17 min read
Large Folios in the Linux Kernel: Benefits, Implementations, and Future Directions
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Mar 29, 2024 · Artificial Intelligence

InternLM Model Research and XTuner Practical Guide (Part 1): DataLoader, Model Conversion, Merging, and Inference

The guide walks through fine‑tuning InternLM‑Chat‑7B with XTuner, showing how to build a DataLoader from a HuggingFace Dataset, convert a LoRA .pth checkpoint to HuggingFace format, merge the adapter into the base model, run inference, and adapt the process for custom datasets and 4‑bit quantization experiments.

DataLoaderFineTuningInternLM
0 likes · 27 min read
InternLM Model Research and XTuner Practical Guide (Part 1): DataLoader, Model Conversion, Merging, and Inference
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Mar 22, 2024 · Artificial Intelligence

InternLM Model Fine-Tuning Tutorial with XTuner: Chat Format and Practical Implementation Guide

This tutorial walks through fine‑tuning Shanghai AI Lab’s open‑source InternLM models with XTuner, explaining chat‑format conventions, loading and inference (including multimodal InternLM‑XComposer), dataset preparation, configuration sections, DeepSpeed acceleration, and memory‑efficient QLoRA details for 7‑B‑parameter chat models.

Chat FormatDeepSpeedFine-tuning
0 likes · 22 min read
InternLM Model Fine-Tuning Tutorial with XTuner: Chat Format and Practical Implementation Guide
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Mar 8, 2024 · Operations

Evolution and Mechanisms of Linux I/O Schedulers (Kyber, MQ‑Deadline, BFQ)

From legacy spinning-disk optimizations to modern SSD-focused QoS, Linux’s I/O scheduler landscape has evolved through noop, deadline, cfq and now multiqueue designs such as Kyber, MQ-Deadline, and BFQ, each employing distinct latency, deadline, and budget-fairness algorithms, supporting cgroup/ionice priorities, and complemented by numerous experimental out-of-tree implementations.

BFQI/O schedulerKyber
0 likes · 10 min read
Evolution and Mechanisms of Linux I/O Schedulers (Kyber, MQ‑Deadline, BFQ)
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Mar 1, 2024 · Mobile Development

GPU Frequency Scaling on Qualcomm Adreno Using the Linux devfreq Framework

Using Qualcomm’s Adreno GPU as a case study, the article explains how the Linux devfreq framework enables GPU frequency scaling by creating a kgsl devfreq device and an msm‑adreno‑tz governor, detailing their initialization, event handling, target‑frequency computation, and the kernel callbacks that apply the new rates.

AdrenoGPULinux kernel
0 likes · 5 min read
GPU Frequency Scaling on Qualcomm Adreno Using the Linux devfreq Framework