Tagged articles
12 articles
Page 1 of 1
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
Deepin Linux
Deepin Linux
Jan 6, 2026 · Operations

Unlock Linux Performance: Master Memory Watermarks and OOM Killer

This article explains how Linux memory watermarks, kswapd, direct reclaim, and the OOM Killer interact, provides detailed code examples, shows real‑world case studies, and offers practical tuning steps—including kernel parameters, cgroup limits, and monitoring tools—to prevent system stalls and crashes.

LinuxOOM killerWatermarks
0 likes · 41 min read
Unlock Linux Performance: Master Memory Watermarks and OOM Killer
Linux Kernel Journey
Linux Kernel Journey
Mar 23, 2025 · Fundamentals

Efficient Dynamic Memory Reclamation Techniques in Linux

The article provides an in‑depth technical analysis of Linux’s memory reclamation system, covering zones, watermarks, page flags, LRU lists, the shrink_zone workflow, kswapd, direct reclaim, OOM handling, page‑cache structures, and practical tuning tips for optimal performance.

LRULinuxSwap
0 likes · 97 min read
Efficient Dynamic Memory Reclamation Techniques in Linux
Linux Kernel Journey
Linux Kernel Journey
Sep 14, 2024 · Fundamentals

Understanding Linux Page Reclaim: LRU, Second‑Chance, and Direct Reclaim Walkthrough

This article explains Linux's page reclamation mechanisms, covering the LRU list algorithm, the second‑chance method with PG_active and PG_referenced flags, and the direct reclaim path triggered by alloc_page, including the role of kswapd, waiting queues, and key kernel functions such as lru_cache_add, mark_page_accessed, try_to_free_pages, and throttle_direct_reclaim.

LRULinuxMemory Management
0 likes · 12 min read
Understanding Linux Page Reclaim: LRU, Second‑Chance, and Direct Reclaim Walkthrough
Liangxu Linux
Liangxu Linux
May 29, 2022 · Operations

Why Linux Triggers OOM Killer and How to Manage Memory Reclamation

This article explains Linux virtual memory, the page‑fault allocation process, the two memory‑reclaim paths (kswapd and direct reclaim), OOM killer scoring, swappiness tuning, NUMA‑aware reclamation, and practical steps to protect critical processes from being killed.

LinuxNUMAOOM killer
0 likes · 19 min read
Why Linux Triggers OOM Killer and How to Manage Memory Reclamation
Kuaishou Tech
Kuaishou Tech
Jan 14, 2022 · Operations

Analysis of Linux System Crash Caused by Memory Leak and the Role of min_free_kbytes

This article documents a system crash triggered by a memory‑leak in a network‑chip SDK, explains how low free memory and the kswapd process lead to deadlock, and shows how adjusting the kernel parameter min_free_kbytes can prevent the freeze while highlighting the importance of resource monitoring and tuning.

LinuxPerformance Monitoringkswapd
0 likes · 11 min read
Analysis of Linux System Crash Caused by Memory Leak and the Role of min_free_kbytes
ITPUB
ITPUB
Jun 2, 2017 · Fundamentals

How Linux Swaps Memory: Inside Swap, Swappiness, and kswapd Mechanics

This article explains Linux’s swap subsystem in the 4.4 kernel, covering what swap does, the role of swappiness, memory watermarks, kswapd’s operation, swap partition priority, and how the kernel balances anonymous page swapping with file‑cache reclamation.

kswapdswappiness
0 likes · 12 min read
How Linux Swaps Memory: Inside Swap, Swappiness, and kswapd Mechanics
Efficient Ops
Efficient Ops
Jun 5, 2016 · Operations

Mastering Linux Swap: How Swappiness, kswapd, and Watermarks Control Memory

This article explains Linux swap fundamentals, the role of swappiness, kswapd behavior, memory watermarks, and related kernel parameters, providing practical guidance on configuring swap priority, zone reclaim, and other settings to optimize system performance under various workloads.

LinuxMemory ManagementSwap
0 likes · 20 min read
Mastering Linux Swap: How Swappiness, kswapd, and Watermarks Control Memory