Deepin Linux
Author

Deepin Linux

Research areas: Windows & Linux platforms, C/C++ backend development, embedded systems and Linux kernel, etc.

478
Articles
1
Likes
3.9k
Views
0
Comments
Recent Articles

Latest from Deepin Linux

100 recent articles max
Deepin Linux
Deepin Linux
Aug 27, 2026 · Fundamentals

Understanding Linux Deadline Scheduler: Parameter Logic and Kernel Implementation

The article explains how the Linux Deadline real‑time scheduler works, detailing its three core parameters (runtime, period, deadline), the EDF algorithm, kernel data structures, CBS bandwidth control, task state transitions, common configuration pitfalls, and practical tuning and monitoring commands.

CBS mechanismDeadline schedulerEDF algorithm
0 likes · 39 min read
Understanding Linux Deadline Scheduler: Parameter Logic and Kernel Implementation
Deepin Linux
Deepin Linux
Aug 20, 2026 · Fundamentals

Mastering C++ Allocators and PMR: Build Robust, High‑Performance Memory Management

The article explains why ordinary heap allocation can cause fragmentation and slowdown, introduces the C++ allocator interface and its allocate/deallocate functions, shows how to implement a custom stack‑based allocator, compares traditional allocators with C++17 polymorphic memory resources (PMR), and provides practical code examples, performance benchmarks, and best‑practice guidelines.

C++Memory ManagementPMR
0 likes · 30 min read
Mastering C++ Allocators and PMR: Build Robust, High‑Performance Memory Management
Deepin Linux
Deepin Linux
Aug 16, 2026 · Fundamentals

Embedded Development Pitfall Guide: Are You Using Global Variables Correctly?

Global variables are convenient in embedded projects but can cause memory waste, tight module coupling, hard‑to‑track bugs, and portability issues, especially in RTOS multitasking; this article explains the underlying memory layout, common traps, and practical techniques to use globals safely.

Memory ManagementRTOSbest practices
0 likes · 19 min read
Embedded Development Pitfall Guide: Are You Using Global Variables Correctly?
Deepin Linux
Deepin Linux
Aug 15, 2026 · Fundamentals

Analyzing New Heap Allocation Overhead in Linux Virtual Address Space

This article explains Linux process virtual address spaces, details the multi‑step internals of the C++ new operator, and analyzes its memory‑fragmentation, time, and space overheads through code examples and benchmarks, then offers practical mitigation techniques such as memory pools and smart pointers.

C++LinuxPerformance Analysis
0 likes · 26 min read
Analyzing New Heap Allocation Overhead in Linux Virtual Address Space
Deepin Linux
Deepin Linux
Aug 11, 2026 · Backend Development

Big Tech C++ Interview: Deep Dive into Linux Signal Mechanism

This article explains Linux signal fundamentals—including generation, registration, dispatch, masking, and handling—covers standard and real‑time signals, common pitfalls like non‑reentrancy and EINTR, and provides concrete C/C++ code examples for each scenario.

C++LinuxPOSIX
0 likes · 44 min read
Big Tech C++ Interview: Deep Dive into Linux Signal Mechanism
Deepin Linux
Deepin Linux
Aug 7, 2026 · Operations

How to Use Linux cgroups to Prevent Process Memory Overflows

The article explains why process memory overflows are a critical issue in server operations and provides a step‑by‑step guide on using Linux cgroups to set precise memory limits, monitor usage, and avoid OOM crashes, illustrated with real‑world examples and troubleshooting tips.

LinuxMemory ManagementOOM killer
0 likes · 23 min read
How to Use Linux cgroups to Prevent Process Memory Overflows
Deepin Linux
Deepin Linux
Aug 4, 2026 · Fundamentals

Understanding Linux I2C Framework: A Layered Kernel Subsystem Walkthrough

This article provides a comprehensive analysis of the Linux I2C framework, detailing its physical bus characteristics, protocol specifics, comparison with SMBus, and the multi‑layer kernel architecture—including hardware, adapter, core, and driver layers—culminating in a step‑by‑step MPU6050 driver implementation and testing guide.

I2CKernelLinux
0 likes · 28 min read
Understanding Linux I2C Framework: A Layered Kernel Subsystem Walkthrough
Deepin Linux
Deepin Linux
Aug 2, 2026 · Fundamentals

10 Essential Linux Open‑Source Projects for Deep System Development

This guide lists ten pivotal Linux open‑source projects—from the kernel and musl libc to Docker and systemd—explaining what you can learn from each, offering concrete replication targets, and providing a structured learning path for mastering low‑level system development.

KernelLinuxcontainers
0 likes · 32 min read
10 Essential Linux Open‑Source Projects for Deep System Development
Deepin Linux
Deepin Linux
Jul 29, 2026 · Fundamentals

Why Stack Memory Allocation Is Faster Than Heap Allocation

The article explains that stack memory allocation is quicker than heap allocation because the stack uses a simple pointer move and LIFO order, while the heap must search for free blocks, manage fragmentation, and often requires explicit deallocation, leading to higher overhead and potential leaks.

C++heap memoryinterview
0 likes · 65 min read
Why Stack Memory Allocation Is Faster Than Heap Allocation
Deepin Linux
Deepin Linux
Jul 27, 2026 · Fundamentals

Master C++ Inc/Dec, Move, Copy, Reset, Destroy to Avoid Interview Pitfalls

This article systematically explains C++ reference‑count changes, the precise moments when ++/-- operators trigger in shared_ptr, move, copy, reset and destroy operations, and illustrates common mistakes with concrete code examples, helping developers and interviewees avoid subtle bugs and logic errors.

C++copy constructorincrement operator
0 likes · 20 min read
Master C++ Inc/Dec, Move, Copy, Reset, Destroy to Avoid Interview Pitfalls