Deepin Linux
Author

Deepin Linux

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

441
Articles
1
Likes
1.7k
Views
0
Comments
Recent Articles

Latest from Deepin Linux

100 recent articles max
Deepin Linux
Deepin Linux
May 12, 2026 · Backend Development

From Zero to One: Mastering Linux NAPI High‑Concurrency Packet Reception

This article explains why traditional interrupt‑driven network I/O stalls under high traffic, introduces the NAPI (New API) mechanism that combines interrupt wake‑up with batch polling, details its core data structures and scheduling functions, and provides step‑by‑step configuration and tuning guidance to achieve efficient, low‑latency packet processing on Linux servers.

LinuxNAPIPerformance tuning
0 likes · 35 min read
From Zero to One: Mastering Linux NAPI High‑Concurrency Packet Reception
Deepin Linux
Deepin Linux
May 11, 2026 · Fundamentals

Eliminate Memory Fragmentation: Understanding Memory Pools

The article explains how frequent dynamic allocations cause external and internal memory fragmentation, illustrates the problem with C++ examples, and shows that pre‑allocating a large contiguous block as a memory pool—managed via block division, free‑list tracking, and thread‑safe operations—significantly reduces fragmentation, improves allocation speed, and boosts concurrency performance.

CMemory FragmentationPerformance Optimization
0 likes · 30 min read
Eliminate Memory Fragmentation: Understanding Memory Pools
Deepin Linux
Deepin Linux
May 10, 2026 · Fundamentals

Do You Really Understand pthread Internals? Master Linux Multithreading Basics

This article dives deep into Linux pthread fundamentals, covering process‑vs‑thread concepts, the POSIX API, kernel implementation via the clone syscall, thread lifecycle, synchronization primitives, common pitfalls such as deadlocks, stack overflows and thread leaks, and provides practical debugging and mitigation techniques with real code examples.

Linuxclone syscalldeadlock
0 likes · 55 min read
Do You Really Understand pthread Internals? Master Linux Multithreading Basics
Deepin Linux
Deepin Linux
May 7, 2026 · Operations

Don’t Claim You Can Troubleshoot Networks Until You Understand Packet Loss

This article explains what network packet loss is, its common causes—from hardware faults to congestion and misconfiguration—and provides a step‑by‑step, production‑ready methodology for diagnosing and resolving loss using tools such as ping, traceroute, Wireshark and tcpdump.

LinuxTCP/IPTroubleshooting
0 likes · 31 min read
Don’t Claim You Can Troubleshoot Networks Until You Understand Packet Loss
Deepin Linux
Deepin Linux
May 6, 2026 · Fundamentals

Master Linux Memory Performance: From Theory to Real‑World Optimization

This article systematically breaks down Linux's core memory mechanisms, identifies common performance bottlenecks, and demonstrates how to use tools like numastat, perf, and Valgrind together with kernel parameters such as swappiness and min_free_kbytes to achieve practical memory optimizations.

LinuxMemoryNUMA
0 likes · 55 min read
Master Linux Memory Performance: From Theory to Real‑World Optimization
Deepin Linux
Deepin Linux
May 5, 2026 · Fundamentals

Master Linux Memory Performance with HugePages

Linux’s default 4 KB pages cause massive page tables and TLB misses in high‑memory workloads; this article explains the HugePage mechanism, its types, how it reduces page‑table entries, improves TLB hit rates, lowers fragmentation, and provides step‑by‑step configuration for static and transparent huge pages in production.

LinuxMemory OptimizationPerformance tuning
0 likes · 39 min read
Master Linux Memory Performance with HugePages
Deepin Linux
Deepin Linux
May 4, 2026 · Fundamentals

Deep Dive into Linux VMA: Core Mechanisms of Virtual Memory Areas

Linux’s Virtual Memory Area (VMA) is the kernel’s core structure for managing a process’s address space, and this article explains its definition, key fields, linked‑list and red‑black‑tree organization, allocation, protection, page‑fault handling, copy‑on‑write, and practical usage examples.

Copy-on-WriteLinuxVMA
0 likes · 26 min read
Deep Dive into Linux VMA: Core Mechanisms of Virtual Memory Areas
Deepin Linux
Deepin Linux
May 3, 2026 · Backend Development

Master Lock‑Free Queues: Unlock the Core of High‑Concurrency Programming

This article demystifies lock‑free queues by explaining their low‑level implementation, atomic operations, memory barriers, and the four SPSC/MPMC models, while also covering ABA problems, false sharing avoidance, and practical C++ code examples to help developers truly understand high‑concurrency fundamentals.

CCASMPMC
0 likes · 44 min read
Master Lock‑Free Queues: Unlock the Core of High‑Concurrency Programming
Deepin Linux
Deepin Linux
May 1, 2026 · Fundamentals

Mastering Linux Kernel Threads: Core Mechanisms and Scheduling

This article explains Linux kernel threads from basic concepts to deep internals, covering their data structures, creation, execution flow, scheduling strategies, context‑switch overhead, synchronization primitives, interrupt handling, and a practical kswapd memory‑reclaim case study, providing concrete code examples and step‑by‑step analysis.

LinuxMemory ManagementScheduling
0 likes · 42 min read
Mastering Linux Kernel Threads: Core Mechanisms and Scheduling