Deepin Linux
Author

Deepin Linux

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

419
Articles
1
Likes
1.4k
Views
0
Comments
Recent Articles

Latest from Deepin Linux

100 recent articles max
Deepin Linux
Deepin Linux
Dec 31, 2025 · Fundamentals

Unlocking Linux Signal Stacks: Why They Exist and How to Use Them Safely

This article explains the purpose of Linux's separate signal stack, how it differs from the regular process stack, the mechanics of signal delivery, practical code examples for enabling and using it, and why it matters for stability, real‑time processing, multithreading, and performance optimization.

C programmingLinuxSIGSTKSZ
0 likes · 28 min read
Unlocking Linux Signal Stacks: Why They Exist and How to Use Them Safely
Deepin Linux
Deepin Linux
Dec 30, 2025 · Operations

Detecting and Fixing Linux Interrupt Stack Overflows

This article explains why interrupt stack overflows are dangerous in Linux, outlines their root causes, shows how to locate them using logs and debugging tools, and provides practical strategies to prevent and resolve the issue for stable kernel operation.

Linuxinterrupt stacksystem stability
0 likes · 41 min read
Detecting and Fixing Linux Interrupt Stack Overflows
Deepin Linux
Deepin Linux
Dec 28, 2025 · Fundamentals

Understanding Linux User Stacks: How Threads Manage Memory and Calls

This article explains the role of the Linux user stack in multithreaded programs, covering its memory layout, how each thread gets a private stack, stack frame mechanics, growth and overflow handling, and practical examples of creating and debugging stacks with pthreads and gdb.

C++LinuxStack Overflow
0 likes · 24 min read
Understanding Linux User Stacks: How Threads Manage Memory and Calls
Deepin Linux
Deepin Linux
Dec 27, 2025 · Operations

Master Linux Kernel Stack Tracing: From GDB Basics to Advanced ftrace & eBPF

This practical guide walks you through Linux kernel stack backtracing, covering GDB installation, core dump analysis, handling corrupted stacks, and advanced tracing techniques using ftrace and eBPF, with step‑by‑step commands, code examples, and troubleshooting tips to pinpoint the root cause of crashes.

GDBKernel DebuggingLinux
0 likes · 32 min read
Master Linux Kernel Stack Tracing: From GDB Basics to Advanced ftrace & eBPF
Deepin Linux
Deepin Linux
Dec 25, 2025 · Operations

How to Optimize Linux Thread Stack Memory for High‑Concurrency Services

This article explains the fundamentals of Linux thread stack memory, identifies why default stack sizes can cause waste or overflow in high‑concurrency scenarios, and provides practical techniques—including stack‑size tuning, code refactoring, and memory‑mapping—to reduce memory usage and improve service stability.

C++LinuxPOSIX
0 likes · 34 min read
How to Optimize Linux Thread Stack Memory for High‑Concurrency Services
Deepin Linux
Deepin Linux
Dec 24, 2025 · Fundamentals

Why Linux Threads Crash: Uncovering Thread‑Stack Pitfalls and Fixes

This article explains how Linux thread stacks work, why improper stack size or unchecked recursion can cause crashes and memory leaks, and provides practical debugging tools, stack‑size tuning methods, and optimization techniques—including thread‑pool usage and real‑world case studies—to keep concurrent programs stable and efficient.

Stackdebuggingthread
0 likes · 28 min read
Why Linux Threads Crash: Uncovering Thread‑Stack Pitfalls and Fixes
Deepin Linux
Deepin Linux
Dec 22, 2025 · Fundamentals

Mastering Linux Process Stacks: Theory, Debugging, and Stack Overflow Prevention

This comprehensive guide explains the Linux process stack architecture, stack frame layout, function call mechanics, dynamic growth limits, common pitfalls such as stack overflow and memory leaks, and demonstrates debugging techniques with gdb, pstack, and perf, plus a real‑world C++ example.

C programmingLinuxStack Overflow
0 likes · 37 min read
Mastering Linux Process Stacks: Theory, Debugging, and Stack Overflow Prevention
Deepin Linux
Deepin Linux
Dec 21, 2025 · Fundamentals

Unlocking the Linux Kernel: A Beginner’s Roadmap to Core Architecture and Modules

This guide walks readers through the fundamentals of the Linux kernel, explaining its core subsystems, source tree layout, process management, memory handling, file systems, networking, device drivers, debugging tools, and practical learning resources, while providing code examples and command‑line utilities for hands‑on exploration.

Device DriversKernelLinux
0 likes · 54 min read
Unlocking the Linux Kernel: A Beginner’s Roadmap to Core Architecture and Modules
Deepin Linux
Deepin Linux
Dec 14, 2025 · Fundamentals

Why Linux Kernel Memory Layout Is the Hidden Key to Preventing OOM Crashes

This article reveals how Linux kernel memory layout—its partitions, address allocation, and resource scheduling—directly impacts system stability, explains the roles of each memory region, demonstrates common pitfalls like fragmentation and dentry leaks, and provides practical debugging and optimization techniques for developers and operators.

Buddy systemKernel MemoryLinux
0 likes · 60 min read
Why Linux Kernel Memory Layout Is the Hidden Key to Preventing OOM Crashes
Deepin Linux
Deepin Linux
Dec 12, 2025 · Fundamentals

Unlocking ARM64 Memory: How Virtual Addresses Map to Physical Memory

This article explains the fundamentals of Linux arm64 memory management, covering virtual and physical memory concepts, MMU operation, page table structures, address translation steps, page fault handling, and practical C++ examples for allocation, mapping, and performance optimization using huge pages and pre‑paging techniques.

ARM64LinuxPage Tables
0 likes · 38 min read
Unlocking ARM64 Memory: How Virtual Addresses Map to Physical Memory